A newer version of this page is available. Switch to the current version.

How to: Create the Scheduler with the DateNavigator

The following example describes how to create a scheduling application with the DateNavigator.

Follow the steps below to complete the task:

  1. Create a new WPF Application project and open the MainWindow.xaml file in the Visual Studio Designer.
  2. Add the SchedulerControl object to your project. You can do this by dragging the SchedulerControl item from the DX.18.2: Scheduling Toolbox tab to the canvas.


  3. Right-click the SchedulerControl object and select Layout | Reset All in the context menu to stretch the SchedulerControl so that it fills the entire window.
  1. In the Toolbox, find the DateNavigator in the DX.18.2: Scheduling group and drop it to the canvas.


  2. Use the DateNavigator.StyleSettings property to associate the DateNavigator with the Scheduler.

    As a result, your XAML code should look as follows:

            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        <dxsch:SchedulerControl x:Name="scheduler"
            GroupType="None" />
        <dxe:DateNavigator x:Name="datenavigator"
                <dxsch:SchedulerDateNavigatorStyleSettings Scheduler="{Binding ElementName=scheduler}"
                    MaxSelectedNonConsecutiveDates="5" />
  3. The Scheduler with the DateNavigator is now ready. Run the application and see the result.