XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.WinUIHelper

【DLL】WinUI的各种工具类,帮助开发者快速构建一个模块化的WinUI项目

公开
关注 0 Fork 0 Star 0
UTF-8
<?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>