Back to Devexpress

How to: Create the Scheduler with the DateNavigator and Resource Tree

wpf-118066-controls-and-libraries-scheduler-examples-how-to-create-the-scheduler-with-the-datenavigator.md

latest2.2 KB
Original Source

How to: Create the Scheduler with the DateNavigator and Resource Tree

  • Dec 07, 2023

This topic describes how to associate the Scheduler with the DateNavigator and/or the Resource Tree.

Date Navigator

To associate the DateNavigator control with the Scheduler control, set the DateNavigator.StyleSettings property to SchedulerDateNavigatorStyleSettings and bind the Scheduler property to the Scheduler control:

xaml
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <dxsch:SchedulerControl x:Name="scheduler" ... />

    <dxe:DateNavigator Grid.Column="1">
        <dxe:DateNavigator.StyleSettings>
            <dxsch:SchedulerDateNavigatorStyleSettings Scheduler="{Binding ElementName=scheduler}" />
        </dxe:DateNavigator.StyleSettings>
    </dxe:DateNavigator>       
</Grid>

Resource Tree

To associate the ResourceTreeControl control with the Scheduler control, bind the ResourceTreeControl.Scheduler property to the Scheduler control:

xaml
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
    </Grid.ColumnDefinitions>
    <dxsch:SchedulerControl x:Name="scheduler" ... />

    <dxsch:ResourceTreeControl Grid.Column="1"
                               Scheduler="{Binding ElementName=scheduler}" />
</Grid>

Result

View Example