Class ControlCommandBase<T>
Provides a base implementation for control-specific commands.
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public abstract class ControlCommandBase<T> : AttachableObject<T>, ICommand where T : class
Type Parameters
T
The type of control this command is associated with. |
Constructors
ControlCommandBase()
Declaration
protected ControlCommandBase()
Methods
CanExecute(Object)
Defines the method that determines whether the command can execute in its current state.
Declaration
public virtual bool CanExecute(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
Returns
System.Boolean
true if this command can be executed; otherwise, false. |
Execute(Object)
Defines the method to be called when the command is invoked.
Declaration
public virtual void Execute(object parameter)
Parameters
System.Object
parameter
Data used by the command. If the command does not require data to be passed, this object can be set to null. |
OnCanExecuteChanged(EventArgs)
Raises the CanExecuteChanged event.
Declaration
protected virtual void OnCanExecuteChanged(EventArgs e)
Parameters
System.EventArgs
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 Type
System.EventHandler
|