PowerAccentShortcutControl.xaml.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System.Collections.Generic; 6 7 using Microsoft.UI.Xaml; 8 using Microsoft.UI.Xaml.Controls; 9 10 namespace Microsoft.PowerToys.Settings.UI.Controls 11 { 12 public sealed partial class PowerAccentShortcutControl : UserControl 13 { 14 public string Text 15 { 16 get { return (string)GetValue(TextProperty); } 17 set { SetValue(TextProperty, value); } 18 } 19 20 public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(PowerAccentShortcutControl), new PropertyMetadata(default(string))); 21 22 public List<object> Keys 23 { 24 get { return (List<object>)GetValue(KeysProperty); } 25 set { SetValue(KeysProperty, value); } 26 } 27 28 public static readonly DependencyProperty KeysProperty = DependencyProperty.Register("Keys", typeof(List<object>), typeof(PowerAccentShortcutControl), new PropertyMetadata(default(string))); 29 30 public PowerAccentShortcutControl() 31 { 32 this.InitializeComponent(); 33 } 34 } 35 }