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

Represents a command that creates a new appointment in the scheduler. When executed, this command opens the appointment creation dialog.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class AddAppointmentCommand : SchedulerCommand, ICommand

Inheritance: objectSchedulerCommandAddAppointmentCommand

Implements: ICommand

Inherited Members SchedulerCommand.SchedulerSchedulerCommand.CanExecuteChanged

Constructors

C#
public AddAppointmentCommand()

Methods

Determines whether the command can execute in its current state.

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

Data used by the command. This parameter can be null.

Returns:

bool

true if this command can be executed; otherwise, false.

Overrides: SchedulerCommand.CanExecute(object)

Defines the method to be called when the command is invoked. Opens the appointment creation dialog.

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

Data used by the command. This parameter can be null.

Overrides: SchedulerCommand.Execute(object)