Skip to main content

SchedulerDateNavigationBehavior.NavigatorElementName Property

Specified the name of the DateNavigator to search within the Scheduler’s parent elements. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Scheduler

Assembly: DevExpress.UI.Xaml.Scheduler.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public string NavigatorElementName { get; set; }

Property Value

Type Description
String

A string value that is the name of the DateNavigator.

Remarks

To bind the Scheduler to a DateNavigator, 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.

The alternative way to bind the Scheduler to a DateNavigator is to use the Navigator property. The code snippet below illustrates this method.

<Editors:DateNavigator Name="navigator" />
<Scheduler:SchedulerControl>
    <dxmvvm:Interaction.Behaviors>
        <Scheduler:SchedulerDateNavigationBehavior Navigator="{Binding ElementName=navigator}"/>
    </dxmvvm:Interaction.Behaviors>
</Scheduler:SchedulerControl>
See Also