Back to Devexpress

SchedulerCommands Class

wpf-devexpress-dot-xpf-dot-scheduling-2dad543f.md

latest4.0 KB
Original Source

SchedulerCommands Class

Provides access to Scheduler commands.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public class SchedulerCommands :
    SchedulerFreezableComponent
vb
Public Class SchedulerCommands
    Inherits SchedulerFreezableComponent

The following members return SchedulerCommands objects:

Example

This XAML snippet illustrates how to execute the SchedulerCommands.SelectNextAppointmentCommand command when pressing the CTRL+Down key combination. It uses the KeyToCommand special behavior implemented in DevExpress MVVM Framework.

Review the KeyToCommand topic for more information.

xaml
<dxmvvm:KeyToCommand Command="{Binding ElementName=scheduler, Path=Commands.SelectNextAppointmentCommand}"
    CommandParameter="{Binding ElementName=scheduler, Path=SelectedAppointments[0]}"
    KeyGesture="CTRL+Down"
    MarkRoutedEventsAsHandled="True" />

The following code snippets (auto-collected from DevExpress Examples) contain references to the SchedulerCommands class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-hide-non-working-days-in-day-view/CS/NavigateCommandExample/MainWindow.xaml#L75

xml
<dxsch:SchedulerControl.Commands>
    <dxsch:SchedulerCommands GoToDateCommand="{DXCommand Execute='MyGoToDate(@e(scheduler))'}"
        GoToTodayCommand="{DXCommand Execute='MyGoToToday(@e(scheduler))'}"

wpf-scheduler-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/MainWindow.xaml#L53

xml
<dxsch:SchedulerControl.Commands>
    <dxsch:SchedulerCommands x:Name="schedulerCommands"/>
</dxsch:SchedulerControl.Commands>

wpf-scheduler-customize-built-in-ribbon-control/CS/SchedulerRibbonExample/MainWindow.xaml#L17

xml
<dxr:DXRibbonWindow.Resources>
    <dxsch:SchedulerCommands x:Key="commands"/>
</dxr:DXRibbonWindow.Resources>

Inheritance

Object DispatcherObject DependencyObject Freezable DevExpress.Xpf.Scheduling.Internal.SchedulerFreezableComponent SchedulerCommands

See Also

SchedulerCommands Members

DevExpress.Xpf.Scheduling Namespace