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.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public sealed class SideDrawerUserCommand : SideDrawerCommandBase, ICommand

Inheritance: objectAttachableObject<RadSideDrawer>ControlCommandBase<RadSideDrawer>SideDrawerCommandBaseSideDrawerUserCommand

Implements: ICommand

Inherited Members SideDrawerCommandBase.IdControlCommandBase<RadSideDrawer>.CanExecuteChangedAttachableObject<RadSideDrawer>.Owner

Constructors

SideDrawerUserCommand()

Declaration

cs-api-definition
public SideDrawerUserCommand()

Fields

CommandProperty

Identifies the Command bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty CommandProperty

Field Value

BindableProperty

Properties

Command

Gets or sets the command to execute when this side drawer command is invoked.

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

An 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

cs-api-definition
public override bool CanExecute(object parameter)

Parameters

parameter

object

The parameter to pass to the command.

Returns

bool

true if the command can execute; otherwise, false.

Overrides SideDrawerCommandBase.CanExecute(object)

Execute(object)

Executes the command with the specified parameter. First executes the owner's default command, then executes the cached command if available.

Declaration

cs-api-definition
public override void Execute(object parameter)

Parameters

parameter

object

The parameter to pass to the command.

Overrides ControlCommandBase<RadSideDrawer>.Execute(object)