diff --git a/demo/Ursa.Demo/Pages/TagInputDemo.axaml b/demo/Ursa.Demo/Pages/TagInputDemo.axaml index 822f316..fc94f33 100644 --- a/demo/Ursa.Demo/Pages/TagInputDemo.axaml +++ b/demo/Ursa.Demo/Pages/TagInputDemo.axaml @@ -5,6 +5,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:u="https://irihi.tech/ursa" + xmlns:vm="using:Ursa.Demo.ViewModels" + x:DataType="vm:TagInputDemoViewModel" + x:CompileBindings="True" d:DesignHeight="450" d:DesignWidth="800" mc:Ignorable="d"> @@ -12,14 +15,14 @@ - + Tags="{Binding DistinctTags}" /> + diff --git a/demo/Ursa.Demo/ViewModels/TagInputDemoViewModel.cs b/demo/Ursa.Demo/ViewModels/TagInputDemoViewModel.cs index 51d0deb..b2c1c96 100644 --- a/demo/Ursa.Demo/ViewModels/TagInputDemoViewModel.cs +++ b/demo/Ursa.Demo/ViewModels/TagInputDemoViewModel.cs @@ -4,10 +4,17 @@ namespace Ursa.Demo.ViewModels; public class TagInputDemoViewModel: ViewModelBase { - private ObservableCollection _Tags ; + private ObservableCollection _tags = new () ; public ObservableCollection Tags { - get { return _Tags; } - set { SetProperty(ref _Tags, value); } + get => _tags; + set => SetProperty(ref _tags, value); + } + + private ObservableCollection _distinctTags = new(); + public ObservableCollection DistinctTags + { + get => _distinctTags; + set => SetProperty(ref _distinctTags, value); } } \ No newline at end of file