Skip to main content Link Search Menu Expand Document (external link)

XamlUICommand

Namespace: FluentAvalonia.UI.Input

Provides a base class for defining the command behavior of an interactive UI element that performs an action when invoked (such as sending an email, deleting an item, or submitting a form).

C#

public class XamlUICommand : AvaloniaObject


Xaml

<input:XamlUICommand />


Required Template Parts

None :)


Pseudoclasses




Examples and Usage Notes

None yet.


API

Note: Inherited members are not shown


Properties

Command Gets or sets the command behavior of an interactive UI element that performs an action when invoked, such as sending an email, deleting an item, or submitting a form.
CommandProperty Defines the `FluentAvalonia.UI.Input.XamlUICommand.Command` property
Description Gets or sets a description for this element.
DescriptionProperty Defines the `FluentAvalonia.UI.Input.XamlUICommand.Description` property
HotKey Gets or sets a KeyGesture used to invoke this XamlUICommand
HotKeyProperty Defines the `FluentAvalonia.UI.Input.XamlUICommand.HotKey` property
IconSource Gets or sets an IconSource for this element.
IconSourceProperty Defines the `FluentAvalonia.UI.Input.XamlUICommand.IconSource` property
Label Gets or sets the label for this element.
LabelProperty Defines the `FluentAvalonia.UI.Input.XamlUICommand.Label` property


Events

CanExecuteChanged Occurs whenever something happens that affects whether the command can execute.
CanExecuteRequested Occurs when a CanExecute call is made.
ExecuteRequested Occurs when an Execute call is made.


Methods