<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="XFEExtension.NetCore.WinUIHelper.TestApp.Views.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converter="using:XFEExtension.NetCore.WinUIHelper.Utilities.Converter"
xmlns:local="using:XFEExtension.NetCore.WinUIHelper.TestApp.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<converter:StringFormatConverter x:Key="StringFormatConverter"/>
</Page.Resources>
<Grid>
<StackPanel Orientation="Vertical" Spacing="20">
<TextBlock Text="Welcome to the Main Page!" FontSize="24" HorizontalAlignment="Center" Margin="20"/>
<TextBlock Text="{x:Bind ViewModel.ClickCount, Mode=OneWay, Converter={StaticResource StringFormatConverter}, ConverterParameter='Clicked Times: (0)'}"/>
<Button Content="Click" Command="{x:Bind ViewModel.IncrementClickCountCommand}"/>
<Button Content="点击跳转" Command="{x:Bind ViewModel.NavigateToTestPageCommand}"/>
</StackPanel>
</Grid>
</Page>
<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="XFEExtension.NetCore.WinUIHelper.TestApp.Views.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converter="using:XFEExtension.NetCore.WinUIHelper.Utilities.Converter"
xmlns:local="using:XFEExtension.NetCore.WinUIHelper.TestApp.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Page.Resources>
<converter:StringFormatConverter x:Key="StringFormatConverter"/>
</Page.Resources>
<Grid>
<StackPanel Orientation="Vertical" Spacing="20">
<TextBlock Text="Welcome to the Main Page!" FontSize="24" HorizontalAlignment="Center" Margin="20"/>
<TextBlock Text="{x:Bind ViewModel.ClickCount, Mode=OneWay, Converter={StaticResource StringFormatConverter}, ConverterParameter='Clicked Times: (0)'}"/>
<Button Content="Click" Command="{x:Bind ViewModel.IncrementClickCountCommand}"/>
<Button Content="点击跳转" Command="{x:Bind ViewModel.NavigateToTestPageCommand}"/>
</StackPanel>
</Grid>
</Page>