SchedulerControl.Commands Property

Gets or sets the commands for the SchedulerControl. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll

Declaration

[Browsable(false)]
public SchedulerCommands Commands { get; set; }
<Browsable(False)>
Public Property Commands As SchedulerCommands

Property Value

Type Description
SchedulerCommands

A SchedulerCommands object representing the scheduler commands.

Remarks

You can rearrange built-in command set or substitute default commands with your own using the Commands property.

Examples

This code substitutes the SchedulerCommands.NavigateViewBackwardCommand, SchedulerCommands.NavigateViewForwardCommand, SchedulerCommands.GoToDateCommand and SchedulerCommands.GoToTodayCommand command execution with the methods defined in the ViewModel using the DXCommand binding tool.

<dxsch:SchedulerControl.Commands>
    <dxsch:SchedulerCommands GoToDateCommand="{DXCommand Execute='MyGoToDate(@e(scheduler))'}"
        GoToTodayCommand="{DXCommand Execute='MyGoToToday(@e(scheduler))'}"
        NavigateViewBackwardCommand="{DXCommand Execute='MyNavigateBackward(@e(scheduler))'}"
        NavigateViewForwardCommand="{DXCommand Execute='MyNavigateForward(@e(scheduler))'}" />
</dxsch:SchedulerControl.Commands>
See Also