Provides a base implementation for control-specific commands.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Type Parameters:
T
The type of control this command is associated with.
Syntax:
C#
public abstract class ControlCommandBase<T> : AttachableObject<T>, ICommand where T : class
Inheritance: objectAttachableObject<T>ControlCommandBase<T>
Derived Classes:
Implements:
Inherited Members
Constructors
C#
protected ControlCommandBase()
Methods
Defines the method that determines whether the command can execute in its current state.
Defines the method to be called when the command is invoked.
C#
public virtual void Execute(object parameter)
Data used by the command. If the command does not require data to be passed, this object can be set to null.
Implements:
Raises the CanExecuteChanged event.
C#
protected virtual void OnCanExecuteChanged(EventArgs e)
The event arguments.
Events
Occurs when changes occur that affect whether or not the command should execute.
C#
public event EventHandler CanExecuteChanged
Implements: