Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TabDefinition.cs
1using System.Windows.Input;
2using CommunityToolkit.Mvvm.ComponentModel;
3
5{
9 public class TabDefinition : ObservableObject
10 {
11 private string key = string.Empty;
12 private string title = string.Empty;
13 private string? icon;
14 private int? badgeCount;
15 private bool isEnabled = true;
16 private bool isProminent;
17 private bool isSelected;
18 private ICommand? command;
19 private object? commandParameter;
20 private object? tag;
21
25 public string Key
26 {
27 get => this.key;
28 set => this.SetProperty(ref this.key, value);
29 }
30
34 public string Title
35 {
36 get => this.title;
37 set => this.SetProperty(ref this.title, value);
38 }
39
43 public string? Icon
44 {
45 get => this.icon;
46 set => this.SetProperty(ref this.icon, value);
47 }
48
52 public int? BadgeCount
53 {
54 get => this.badgeCount;
55 set => this.SetProperty(ref this.badgeCount, value);
56 }
57
61 public bool IsEnabled
62 {
63 get => this.isEnabled;
64 set => this.SetProperty(ref this.isEnabled, value);
65 }
66
73 public bool IsProminent
74 {
75 get => this.isProminent;
76 set => this.SetProperty(ref this.isProminent, value);
77 }
78
82 public bool IsSelected
83 {
84 get => this.isSelected;
85 set => this.SetProperty(ref this.isSelected, value);
86 }
87
91 public ICommand? Command
92 {
93 get => this.command;
94 set => this.SetProperty(ref this.command, value);
95 }
96
100 public object? CommandParameter
101 {
102 get => this.commandParameter;
103 set => this.SetProperty(ref this.commandParameter, value);
104 }
105
109 public object? Tag
110 {
111 get => this.tag;
112 set => this.SetProperty(ref this.tag, value);
113 }
114 }
115}
Represents a data descriptor for a tab entry displayed by TabNavigationHost.
bool IsProminent
Gets or sets a value indicating whether the tab should receive prominent styling.
bool IsEnabled
Gets or sets a value indicating whether the tab can be interacted with.
object? Tag
Gets or sets an optional tag that can store arbitrary data associated with the tab.
object? CommandParameter
Gets or sets the command parameter supplied when Command executes.
string Title
Gets or sets the title displayed for the tab.
int? BadgeCount
Gets or sets the badge count displayed for the tab, if any.
bool IsSelected
Gets or sets a value indicating whether the tab is currently selected.
ICommand? Command
Gets or sets a command that is invoked when the tab is selected.
string? Icon
Gets or sets the icon image displayed alongside the title.
string Key
Gets or sets an optional unique key associated with the tab (e.g., for routing).