SchedulerDateNavigationBehavior.Navigator Property
Gets or sets the DateNavigator to display and select the visible dates in the Scheduler.
Namespace: DevExpress.UI.Xaml.Scheduler
Assembly: DevExpress.UI.Xaml.Scheduler.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Property Value
Type | Description |
---|---|
DateNavigator | A DevExpress.UI.Xaml.Editors.DateNavigator to synchronize with the Scheduler. |
Remarks
The code snippet below illustrates how to bind the Scheduler to a DateNavigator.
<Editors:DateNavigator Name="navigator" />
<Scheduler:SchedulerControl>
<dxmvvm:Interaction.Behaviors>
<Scheduler:SchedulerDateNavigationBehavior Navigator="{Binding ElementName=navigator}"/>
</dxmvvm:Interaction.Behaviors>
</Scheduler:SchedulerControl>
Another way to bind the Scheduler to a DateNavigator is to set the FindNavigator property to true and specify the NavigatorElementName. See the example below.
<Editors:DateNavigator Name="navigator" />
<Scheduler:SchedulerControl>
<dxmvvm:Interaction.Behaviors>
<Scheduler:SchedulerDateNavigationBehavior NavigatorElementName="navigator" FindNavigator="True"/>
</dxmvvm:Interaction.Behaviors>
</Scheduler:SchedulerControl>
If the FindNavigator property is set to true and the NavigatorElementName is not specified, the behavior searches for a DateNavigator within the Scheduler’s parent elements.