1using System.Windows.Input;
2using CommunityToolkit.Mvvm.ComponentModel;
11 private string key =
string.Empty;
12 private string title =
string.Empty;
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;
28 set => this.SetProperty(ref this.key, value);
37 set => this.SetProperty(ref this.title, value);
46 set => this.SetProperty(ref this.icon, value);
54 get => this.badgeCount;
55 set => this.SetProperty(ref this.badgeCount, value);
63 get => this.isEnabled;
64 set => this.SetProperty(ref this.isEnabled, value);
75 get => this.isProminent;
76 set => this.SetProperty(ref this.isProminent, value);
84 get => this.isSelected;
85 set => this.SetProperty(ref this.isSelected, value);
94 set => this.SetProperty(ref this.command, value);
102 get => this.commandParameter;
103 set => this.SetProperty(ref this.commandParameter, value);
112 set => this.SetProperty(ref this.tag, value);
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).