Back to Devexpress

SchedulerCommands.NavigateViewBackwardCommand Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercommands-2a173a05.md

latest3.7 KB
Original Source

SchedulerCommands.NavigateViewBackwardCommand Property

Gets or sets a command that executes the active view’s NavigateBackward method.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ICommand NavigateViewBackwardCommand { get; set; }
vb
Public Property NavigateViewBackwardCommand As ICommand

Property Value

TypeDescription
ICommand

An ICommand object that is the scheduler command.

|

Example

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.

View Example

xaml
<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>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NavigateViewBackwardCommand property.

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#L77

xml
GoToTodayCommand="{DXCommand Execute='MyGoToToday(@e(scheduler))'}"
NavigateViewBackwardCommand="{DXCommand Execute='MyNavigateBackward(@e(scheduler))'}"
NavigateViewForwardCommand="{DXCommand Execute='MyNavigateForward(@e(scheduler))'}" />

See Also

ViewBase.NavigateBackward

WorkWeekView.NavigateBackward

TimelineView.NavigateBackward

SchedulerCommands Class

SchedulerCommands Members

DevExpress.Xpf.Scheduling Namespace