/ src / settings-ui / Settings.UI.Controls / QuickAccess / QuickAccessItem.cs
QuickAccessItem.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.Windows.Input;
 6  using Microsoft.PowerToys.Settings.UI.Library.Helpers;
 7  using Microsoft.UI.Xaml;
 8  
 9  namespace Microsoft.PowerToys.Settings.UI.Controls
10  {
11      public sealed class QuickAccessItem : Observable
12      {
13          private string _title = string.Empty;
14  
15          public string Title
16          {
17              get => _title;
18              set => Set(ref _title, value);
19          }
20  
21          private string _description = string.Empty;
22  
23          public string Description
24          {
25              get => _description;
26              set => Set(ref _description, value);
27          }
28  
29          private string _icon = string.Empty;
30  
31          public string Icon
32          {
33              get => _icon;
34              set => Set(ref _icon, value);
35          }
36  
37          private ICommand? _command;
38  
39          public ICommand? Command
40          {
41              get => _command;
42              set => Set(ref _command, value);
43          }
44  
45          private object? _commandParameter;
46  
47          public object? CommandParameter
48          {
49              get => _commandParameter;
50              set => Set(ref _commandParameter, value);
51          }
52  
53          private bool _visible = true;
54  
55          public bool Visible
56          {
57              get => _visible;
58              set => Set(ref _visible, value);
59          }
60  
61          private object? _tag;
62  
63          public object? Tag
64          {
65              get => _tag;
66              set => Set(ref _tag, value);
67          }
68      }
69  }