wpf-devexpress-dot-xpf-dot-scheduling-2dad543f.md
Provides access to Scheduler commands.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public class SchedulerCommands :
SchedulerFreezableComponent
Public Class SchedulerCommands
Inherits SchedulerFreezableComponent
The following members return SchedulerCommands objects:
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.
<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
<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
<dxsch:SchedulerControl.Commands>
<dxsch:SchedulerCommands x:Name="schedulerCommands"/>
</dxsch:SchedulerControl.Commands>
wpf-scheduler-customize-built-in-ribbon-control/CS/SchedulerRibbonExample/MainWindow.xaml#L17
<dxr:DXRibbonWindow.Resources>
<dxsch:SchedulerCommands x:Key="commands"/>
</dxr:DXRibbonWindow.Resources>
Object DispatcherObject DependencyObject Freezable DevExpress.Xpf.Scheduling.Internal.SchedulerFreezableComponent SchedulerCommands
See Also