diff --git a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml index 79957e1..7400f93 100644 --- a/demo/Ursa.Demo/Pages/IconButtonDemo.axaml +++ b/demo/Ursa.Demo/Pages/IconButtonDemo.axaml @@ -2,113 +2,143 @@ x:Class="Ursa.Demo.Pages.IconButtonDemo" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:common="clr-namespace:Ursa.Common;assembly=Ursa" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:u="https://irihi.tech/ursa" - d:DesignHeight="450" + xmlns:vm="clr-namespace:Ursa.Demo.ViewModels" + xmlns:common="clr-namespace:Ursa.Common;assembly=Ursa" + d:DesignHeight="NaN" d:DesignWidth="800" + x:DataType="vm:IconButtonDemoViewModel" mc:Ignorable="d"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demo/Ursa.Demo/ViewModels/IconButtonDemoViewModel.cs b/demo/Ursa.Demo/ViewModels/IconButtonDemoViewModel.cs index dd980fb..c932403 100644 --- a/demo/Ursa.Demo/ViewModels/IconButtonDemoViewModel.cs +++ b/demo/Ursa.Demo/ViewModels/IconButtonDemoViewModel.cs @@ -1,7 +1,10 @@ using CommunityToolkit.Mvvm.ComponentModel; +using Ursa.Common; namespace Ursa.Demo.ViewModels; -public class IconButtonDemoViewModel : ObservableObject +public partial class IconButtonDemoViewModel : ObservableObject { + [ObservableProperty] private bool _isLoading; + [ObservableProperty] private Position _selectedPosition; } \ No newline at end of file