This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Shell | |
x:Class="MauiApp5.AppShell" | |
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:MauiApp5" | |
Shell.FlyoutBehavior="Disabled"> | |
<TabBar> | |
<ShellContent Title="Hello, World!" ContentTemplate="{DataTemplate local:MainPage}" Route="MainPage" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Shell | |
x:Class="MauiApp5.AppShell" | |
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:MauiApp5" | |
Shell.FlyoutBehavior="Flyout"> | |
<ShellContent Title="Hello, World!" ContentTemplate="{DataTemplate local:MainPage}" Route="MainPage" /> | |
<ShellContent Title="Page1" ContentTemplate="{DataTemplate local:Page1}" Route="Page1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="MauiApp5.Page1" | |
Title="Page1"> | |
<StackLayout> | |
<Label Text="1" FontSize="72" VerticalOptions="Center" HorizontalOptions="Center" /> | |
</StackLayout> | |
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Shell | |
x:Class="MauiApp5.AppShell" | |
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:MauiApp5" | |
Shell.FlyoutBehavior="Disabled"> | |
<ShellContent | |
Title="Hello, World!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CommunityToolkit.Mvvm.ComponentModel; | |
using CommunityToolkit.Mvvm.Input; | |
namespace MauiApp3 { | |
internal class MainViewModel : ObservableObject { | |
public RelayCommand IncrementCounterCommand { get; } | |
private int Counter; | |
public MainViewModel() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MauiApp1; | |
public partial class MainPage : ContentPage { | |
public MainPage() { | |
InitializeComponent(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local ="clr-namespace:MauiApp1" | |
x:Class="MauiApp1.MainPage"> | |
<ContentPage.BindingContext> | |
<local:MainViewModel /> | |
</ContentPage.BindingContext> | |
<ScrollView> | |
<VerticalStackLayout Spacing="25" Padding="30"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
using System.Windows.Input; | |
namespace MauiApp1 { | |
internal class MainViewModel : INotifyPropertyChanged { | |
public event PropertyChangedEventHandler PropertyChanged; | |
public ICommand CounterCommand { private set; get; } | |
private int Counter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
namespace MauiApp1 { | |
internal class MainViewModel : INotifyPropertyChanged { | |
public event PropertyChangedEventHandler PropertyChanged; | |
#region プロパティ | |
private string _CounterText; | |
public string CounterText { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MauiApp2; | |
public partial class MainPage : ContentPage { | |
int count = 0; | |
public MainPage() { | |
InitializeComponent(); | |
} | |
private void OnCounterClicked(object sender, EventArgs e){ |
NewerOlder