ClassControlCommandBase<T>
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:
public abstract class ControlCommandBase<T> : AttachableObject<T>, ICommand where T : class
Inheritance: objectAttachableObject<T>ControlCommandBase<T>
Derived Classes:
Implements:
Inherited Members
Constructors
ControlCommandBase()
Declaration
protected ControlCommandBase()
Methods
CanExecute(object)
Defines the method that determines whether the command can execute in its current state.
Execute(object)
Defines the method to be called when the command is invoked.
Declaration
public virtual void Execute(object parameter)
Parameters
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null.
Implements
OnCanExecuteChanged(EventArgs)
Raises the CanExecuteChanged event.
Declaration
protected virtual void OnCanExecuteChanged(EventArgs e)
Parameters
e
The event arguments.
Events
CanExecuteChanged
Occurs when changes occur that affect whether or not the command should execute.
Declaration
public event EventHandler CanExecuteChanged
Event Value
Implements