diff --git a/demo/Ursa.Demo/Pages/KeyGestureInputDemo.axaml b/demo/Ursa.Demo/Pages/KeyGestureInputDemo.axaml index e84ba5e..e828758 100644 --- a/demo/Ursa.Demo/Pages/KeyGestureInputDemo.axaml +++ b/demo/Ursa.Demo/Pages/KeyGestureInputDemo.axaml @@ -5,11 +5,16 @@ 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="clr-namespace:Ursa.Demo.ViewModels;assembly=Ursa.Demo" d:DesignHeight="450" d:DesignWidth="800" + x:CompileBindings="True" + x:DataType="vm:KeyGestureInputDemoViewModel" mc:Ignorable="d"> + - + + diff --git a/demo/Ursa.Demo/ViewModels/KeyGestureInputDemoViewModel.cs b/demo/Ursa.Demo/ViewModels/KeyGestureInputDemoViewModel.cs index 4a89729..b69f20c 100644 --- a/demo/Ursa.Demo/ViewModels/KeyGestureInputDemoViewModel.cs +++ b/demo/Ursa.Demo/ViewModels/KeyGestureInputDemoViewModel.cs @@ -1,8 +1,13 @@ +using System.Collections.Generic; +using Avalonia.Input; using CommunityToolkit.Mvvm.ComponentModel; namespace Ursa.Demo.ViewModels; public class KeyGestureInputDemoViewModel: ObservableObject { - + public List AcceptableKeys { get; set; } = new List() + { + Key.A, Key.B, Key.C, + }; } \ No newline at end of file