Class Command
public class Command : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseCommand
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
Command(CommandDefinitionBase, ILayoutItem)
Initializes a new instance of the Command class.
public Command(CommandDefinitionBase commandDefinition, ILayoutItem layoutItem)
Parameters
commandDefinition
CommandDefinitionBaseThe associated command.
layoutItem
ILayoutItemThe associated layout item. Null for a global command.
Properties
Checked
Gets or sets a value indicating whether the command is checked.
public bool Checked { get; set; }
Property Value
CommandDefinition
Gets the command definition.
public CommandDefinitionBase CommandDefinition { get; }
Property Value
Enabled
Gets or sets a value indicating whether the command is enabled.
public bool Enabled { get; set; }
Property Value
IconSource
Gets or sets the uri for the icon source.
public Uri IconSource { get; set; }
Property Value
LayoutItem
Gets the ILayoutItem the command is associated. This is null for global commands.
public ILayoutItem LayoutItem { get; }
Property Value
Tag
Gets or sets a tag.
public object Tag { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
ToolTip
Gets or sets the display text.
public string ToolTip { get; set; }
Property Value
Visible
Gets or sets a value indicating whether the command is visible.
public bool Visible { get; set; }