diff --git a/demo/Ursa.Demo/Pages/IntroductionDemo.axaml b/demo/Ursa.Demo/Pages/IntroductionDemo.axaml index 1a58474..656e461 100644 --- a/demo/Ursa.Demo/Pages/IntroductionDemo.axaml +++ b/demo/Ursa.Demo/Pages/IntroductionDemo.axaml @@ -7,15 +7,19 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:u="https://irihi.tech/ursa" xmlns:vm="using:Ursa.Demo.ViewModels" - d:DesignHeight="450" - d:DesignWidth="800" - x:CompileBindings="True" - x:DataType="vm:IntroductionDemoViewModel" + d:DesignHeight="800" + d:DesignWidth="1600" mc:Ignorable="d"> - + + M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Badge + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DualBadge + + + + + + + + + + 2.4k + + + + + + 2.4k + + + + + + 2.4k + + + + ButtonGroup + + + + + + + - + \ No newline at end of file diff --git a/demo/Ursa.Demo/ViewModels/IntroductionDemoViewModel.cs b/demo/Ursa.Demo/ViewModels/IntroductionDemoViewModel.cs index 49f1248..9a3488c 100644 --- a/demo/Ursa.Demo/ViewModels/IntroductionDemoViewModel.cs +++ b/demo/Ursa.Demo/ViewModels/IntroductionDemoViewModel.cs @@ -3,9 +3,8 @@ using CommunityToolkit.Mvvm.ComponentModel; namespace Ursa.Demo.ViewModels; -public class IntroductionDemoViewModel: ObservableObject +public class IntroductionDemoViewModel : ObservableObject { - public string Greeting => "hello Intro"; public ObservableCollection MenuItems { get; set; } = new() { new MenuItemViewModel() @@ -14,15 +13,17 @@ public class IntroductionDemoViewModel: ObservableObject MenuIconName = "User", Children = new ObservableCollection() { - new (){ - MenuHeader = "公告管理" , + new() + { + MenuHeader = "公告管理", MenuIconName = "Star", Children = new ObservableCollection() { - new () {MenuHeader = "公告设置"}, - new () {MenuHeader = "公告处理"} - }}, - new (){MenuHeader = "任务查询"} + new() { MenuHeader = "公告设置" }, + new() { MenuHeader = "公告处理" } + } + }, + new() { MenuHeader = "任务查询" } } }, new MenuItemViewModel() @@ -36,9 +37,11 @@ public class IntroductionDemoViewModel: ObservableObject MenuIconName = "Gear", Children = new ObservableCollection() { - new (){MenuHeader = "任务管理"}, - new (){MenuHeader = "用户任务查询"} + new() { MenuHeader = "任务管理" }, + new() { MenuHeader = "用户任务查询" } } } }; + + public ObservableCollection ButtonGroupItems { get; set; } = ["Ding", "Otter", "Husky", "Mr. 17", "Cass"]; } \ No newline at end of file