Class SideDrawerUserCommand
Represents a user-defined command for a side drawer that can execute custom logic. This sealed class extends SideDrawerCommandBase to provide command execution capabilities.
Inheritance
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public sealed class SideDrawerUserCommand : SideDrawerCommandBase, ICommand
Constructors
SideDrawerUserCommand()
Declaration
public SideDrawerUserCommand()
Fields
CommandProperty
Identifies the Command bindable property.
Declaration
public static readonly BindableProperty CommandProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
Properties
Command
Gets or sets the command to execute when this side drawer command is invoked.
Declaration
public ICommand Command { get; set; }
Property Value
System.Windows.Input.ICommand
An System.Windows.Input.ICommand implementation that defines the command logic. |
Methods
CanExecute(Object)
Determines whether the command can execute with the specified parameter. Checks both the cached command and the owner's default command execution capability.
Declaration
public override bool CanExecute(object parameter)
Parameters
System.Object
parameter
The parameter to pass to the command. |
Returns
System.Boolean
true if the command can execute; otherwise, false. |
Overrides
Execute(Object)
Executes the command with the specified parameter. First executes the owner's default command, then executes the cached command if available.
Declaration
public override void Execute(object parameter)
Parameters
System.Object
parameter
The parameter to pass to the command. |