diff --git a/WPFUIAPP/App.config b/WPFUIAPP/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/WPFUIAPP/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WPFUIAPP/App.xaml b/WPFUIAPP/App.xaml
new file mode 100644
index 0000000..6a229e2
--- /dev/null
+++ b/WPFUIAPP/App.xaml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WPFUIAPP/App.xaml.cs b/WPFUIAPP/App.xaml.cs
new file mode 100644
index 0000000..8ac3e60
--- /dev/null
+++ b/WPFUIAPP/App.xaml.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+using Wpf.Ui.Violeta.Controls;
+
+namespace WPFUIAPP
+{
+ ///
+ /// App.xaml 的交互逻辑
+ ///
+ public partial class App : Application
+ {
+ public App()
+ {
+ Splash.ShowAsync("pack://application:,,,/Wpf.Ui.Test;component/wpfui.png");
+ InitializeComponent();
+ }
+
+
+ }
+}
diff --git a/WPFUIAPP/MainWindow.xaml b/WPFUIAPP/MainWindow.xaml
new file mode 100644
index 0000000..0c4a083
--- /dev/null
+++ b/WPFUIAPP/MainWindow.xaml
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/WPFUIAPP/MainWindow.xaml.cs b/WPFUIAPP/MainWindow.xaml.cs
new file mode 100644
index 0000000..6963a43
--- /dev/null
+++ b/WPFUIAPP/MainWindow.xaml.cs
@@ -0,0 +1,89 @@
+using System.Threading;
+using System.Windows;
+
+using Wpf.Ui.Controls;
+using Wpf.Ui.Violeta.Controls;
+
+using MessageBox = Wpf.Ui.Violeta.Controls.MessageBox;
+
+namespace WPFUIAPP
+{
+ ///
+ /// MainWindow.xaml 的交互逻辑
+ ///
+ public partial class MainWindow
+ {
+ Wpf.Ui.Controls.ContentDialog dialog;
+ Wpf.Ui.Violeta.Controls.ContentDialog newdialog;
+ public MainWindow()
+ {
+ InitializeComponent();
+ dialog = new()
+ {
+ Title = "My sample dialog",
+ Content = "Content of the dialog",
+ CloseButtonText = "Close button",
+ PrimaryButtonText = "Primary button",
+ SecondaryButtonText = "Secondary button",
+ // Setting the dialog container
+ DialogHost = ContentDialogHostService.ContentPresenterForDialogs
+ };
+ newdialog = new()
+ {
+ Title = "My sample dialog",
+ Content = "Content of the dialog",
+ CloseButtonText = "Close button",
+ PrimaryButtonText = "Primary button",
+ SecondaryButtonText = "Secondary button",
+ DefaultButton = Wpf.Ui.Violeta.Controls.ContentDialogButton.Primary,
+ };
+ Splash.CloseOnLoaded(this, minimumMilliseconds: 1800);
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ Toast.Information("I am information message");
+ Toast.Error("I am error message");
+ //Toast.Success("I am success message");
+ //Toast.Warning("I am warning message");
+ //Toast.Show(owner: null, "I am any message", new ToastConfig());
+ }
+
+ private void MsgSyncClick(object sender, RoutedEventArgs e)
+ {
+ _ = MessageBox.Information("This is a information message");
+ _ = MessageBox.Warning("This is a warning message");
+ _ = MessageBox.Error("This is a error message");
+ var result = MessageBox.Question("This is a question and do you want to click OK?");
+ }
+
+ private async void MsgAsyncClick(object sender, RoutedEventArgs e)
+ {
+ // Async methods
+ _ = await MessageBox.InformationAsync("This is a information message");
+ _ = await MessageBox.WarningAsync("This is a warning message");
+ _ = await MessageBox.ErrorAsync("This is a error message");
+ var result = await MessageBox.QuestionAsync("This is a question and do you want to click OK?");
+ }
+
+ private void PendingBoxClick(object sender, RoutedEventArgs e)
+ {
+ // Default style.
+ using IPendingHandler pending = PendingBox.Show();
+
+ // Show with title and cancel button.
+ //using IPendingHandler pending = PendingBox.Show("Doing something", "I'm a title", isShowCancel: true);
+
+ }
+
+ private async void ContentDialogClick(object sender, RoutedEventArgs e)
+ {
+ await dialog.ShowAsync(CancellationToken.None);
+ }
+
+ private async void NewContentDialogClick(object sender, RoutedEventArgs e)
+ {
+ _ = await dialog.ShowAsync();
+ }
+ }
+}
diff --git a/WPFUIAPP/Properties/AssemblyInfo.cs b/WPFUIAPP/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..40536ac
--- /dev/null
+++ b/WPFUIAPP/Properties/AssemblyInfo.cs
@@ -0,0 +1,52 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("WPFUIAPP")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WPFUIAPP")]
+[assembly: AssemblyCopyright("Copyright © 2025")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+//若要开始生成可本地化的应用程序,请设置
+//.csproj 文件中的 CultureYouAreCodingWith
+//在 中。例如,如果你使用的是美国英语。
+//使用的是美国英语,请将 设置为 en-US。 然后取消
+//对以下 NeutralResourceLanguage 特性的注释。 更新
+//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //主题特定资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //或应用程序资源字典中找到时使用)
+ ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //、应用程序或任何主题专用资源字典中找到时使用)
+)]
+
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WPFUIAPP/Properties/Resources.Designer.cs b/WPFUIAPP/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..b426fdf
--- /dev/null
+++ b/WPFUIAPP/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本: 4.0.30319.42000
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace WPFUIAPP.Properties
+{
+
+
+ ///
+ /// 强类型资源类,用于查找本地化字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// 返回此类使用的缓存 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPFUIAPP.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/WPFUIAPP/Properties/Resources.resx b/WPFUIAPP/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/WPFUIAPP/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/WPFUIAPP/Properties/Settings.Designer.cs b/WPFUIAPP/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..4829c00
--- /dev/null
+++ b/WPFUIAPP/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WPFUIAPP.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/WPFUIAPP/Properties/Settings.settings b/WPFUIAPP/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/WPFUIAPP/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WPFUIAPP/ViewModel.cs b/WPFUIAPP/ViewModel.cs
new file mode 100644
index 0000000..52595ee
--- /dev/null
+++ b/WPFUIAPP/ViewModel.cs
@@ -0,0 +1,160 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace WPFUIAPP
+{
+ public partial class ViewModel : ObservableObject
+ {
+ [ObservableProperty]
+ private ObservableCollection staffList = [];
+
+ public ViewModel()
+ {
+ InitNode1Value();
+ }
+ public void InitNode1Value()
+ {
+ Staff staff = new Staff()
+ {
+ Name = "Alice",
+ Age = 30,
+ Sex = "Male",
+ Duty = "Manager",
+ IsExpanded = true
+ };
+ Staff staff2 = new Staff()
+ {
+ Name = "Alice1",
+ Age = 21,
+ Sex = "Male",
+ Duty = "Normal",
+ IsExpanded = true
+ };
+ Staff staff3 = new Staff()
+ {
+ Name = "Alice11",
+ Age = 21,
+ Sex = "Male",
+ Duty = "Normal"
+ };
+ staff2.StaffList.Add(staff3);
+ staff3 = new Staff()
+ {
+ Name = "Alice22",
+ Age = 21,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff2.StaffList.Add(staff3);
+ staff.StaffList.Add(staff2);
+ staff2 = new Staff()
+ {
+ Name = "Alice2",
+ Age = 22,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ staff2 = new Staff()
+ {
+ Name = "Alice3",
+ Age = 23,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ StaffList.Add(staff);
+
+ staff = new Staff()
+ {
+ Name = "Bob",
+ Age = 31,
+ Sex = "Male",
+ Duty = "CEO"
+ };
+ staff2 = new Staff()
+ {
+ Name = "Bob1",
+ Age = 24,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ staff2 = new Staff()
+ {
+ Name = "Bob2",
+ Age = 25,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ staff2 = new Staff()
+ {
+ Name = "Bob3",
+ Age = 26,
+ Sex = "Male",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ StaffList.Add(staff);
+
+ staff = new Staff()
+ {
+ Name = "Cyber",
+ Age = 32,
+ Sex = "Female",
+ Duty = "Leader"
+ };
+ staff2 = new Staff()
+ {
+ Name = "Cyber1",
+ Age = 27,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ staff2 = new Staff()
+ {
+ Name = "Cyber2",
+ Age = 28,
+ Sex = "Female",
+ Duty = "Normal"
+ };
+ staff.StaffList.Add(staff2);
+ StaffList.Add(staff);
+ }
+ }
+
+ public partial class Staff : ObservableObject
+ {
+ [ObservableProperty]
+ private string? name = null;
+
+ [ObservableProperty]
+ private int age;
+
+ [ObservableProperty]
+ private string? sex = null;
+
+ [ObservableProperty]
+ private string? duty = null;
+
+ [ObservableProperty]
+ private bool isChecked = true;
+
+ [ObservableProperty]
+ private bool isSelected = false;
+
+ [ObservableProperty]
+ private bool isExpanded = false;
+
+ [ObservableProperty]
+ private ObservableCollection staffList = [];
+ }
+}
diff --git a/WPFUIAPP/ViewModel2.cs b/WPFUIAPP/ViewModel2.cs
new file mode 100644
index 0000000..20e98fe
--- /dev/null
+++ b/WPFUIAPP/ViewModel2.cs
@@ -0,0 +1,71 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+using CommunityToolkit.Mvvm.ComponentModel;
+using Wpf.Ui.Controls;
+
+namespace WPFUIAPP;
+public partial class ViewModel2 : ObservableObject
+{
+ [ObservableProperty]
+ private TreeModelCollection treeTestModel = CreateTestModel();
+
+ public static TreeModelCollection CreateTestModel()
+ {
+ return new TreeModelCollection()
+ {
+ Children = new(
+ [
+ new()
+ {
+ Column1 = "Test 1",
+ Column2 = "Test 1",
+ Column3 = "Test 1",
+ Children = new(
+ [
+ new()
+ {
+ Column1 = "Test 1.1",
+ Column2 = "Test 1.1",
+ Column3 = "Test 1.1",
+ Children = new(
+ [
+ new()
+ {
+ Column1 = "Test 1.2",
+ Column2 = "Test 1.2",
+ Column3 = "Test 1.2",
+ },
+ ]),
+ },
+ ]),
+ },
+ new()
+ {
+ Column1 = "Test 2",
+ Column2 = "Test 2",
+ Column3 = "Test 2",
+ }
+ ]),
+ };
+ }
+}
+
+[ObservableObject]
+public partial class TreeTestModel : TreeModelObject
+{
+ [ObservableProperty]
+ private string? column1;
+
+ [ObservableProperty]
+ private string? column2;
+
+ [ObservableProperty]
+ private string? column3;
+
+ [ObservableProperty]
+ private bool isChecked = false;
+}
diff --git a/WPFUIAPP/WPFUIAPP.csproj b/WPFUIAPP/WPFUIAPP.csproj
new file mode 100644
index 0000000..bfe2335
--- /dev/null
+++ b/WPFUIAPP/WPFUIAPP.csproj
@@ -0,0 +1,18 @@
+
+
+ net472
+ WinExe
+ false
+ true
+ enable
+ 13.0
+ true
+ All;Debug One;Debug;DefaultBuild;Release
+
+
+
+
+
+
+
+
\ No newline at end of file