
Example
This XAML snippet illustrates how to execute the 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" />
|
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
DevExpress.Xpf.Scheduling.Internal.SchedulerFreezableComponent
SchedulerCommands