创建MVVM示例项目

This commit is contained in:
于智纯
2026-01-06 14:52:23 +08:00
parent a320ca7d29
commit 171dcffb96
12 changed files with 223 additions and 1 deletions

15
MVVMExample/App.axaml Normal file
View File

@@ -0,0 +1,15 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MVVMExample.App"
xmlns:local="using:MVVMExample"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>