New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public sealed class SideDrawerUserCommand : SideDrawerCommandBase, ICommand

Inheritance: objectAttachableObject<RadSideDrawer>ControlCommandBase<RadSideDrawer>SideDrawerCommandBaseSideDrawerUserCommand

Implements: ICommand

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

Constructors

C#
public SideDrawerUserCommand()

Fields

CommandProperty

BindableProperty

Identifies the Command bindable property.

C#
public static readonly BindableProperty CommandProperty

Properties

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

C#
public ICommand Command { get; set; }
Property Value:

An ICommand implementation that defines the command logic.

Methods

Determines whether the command can execute with the specified parameter. Checks both the cached command and the owner's default command execution capability.

C#
public override bool CanExecute(object parameter)
Parameters:parameterobject

The parameter to pass to the command.

Returns:

bool

true if the command can execute; otherwise, false.

Overrides: SideDrawerCommandBase.CanExecute(object)

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

C#
public override void Execute(object parameter)
Parameters:parameterobject

The parameter to pass to the command.

Overrides: ControlCommandBase<RadSideDrawer>.Execute(object)