wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulerdatenavigatorstylesettings-ab1f0707.md
Gets or sets the maximum number of consecutively selected weeks.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public int MaxSelectedConsecutiveWeeks { get; set; }
Public Property MaxSelectedConsecutiveWeeks As Integer
| Type | Description |
|---|---|
| Int32 |
An integer that is the number of selected weeks.
|
The MaxSelectedConsecutiveWeeks property allows you to restrict the number of weeks selected in the DateNavigator control.
The following code snippets (auto-collected from DevExpress Examples) contain references to the MaxSelectedConsecutiveWeeks 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-add-datenavigator-and-resourcetree-controls/CS/DXSample/MainWindow.xaml#L61
<dxe:DateNavigator.StyleSettings>
<dxsch:SchedulerDateNavigatorStyleSettings MaxSelectedConsecutiveWeeks="3"
MaxSelectedNonConsecutiveDates="5"
wpf-scheduler-disable-resource-colorization/CS/DXSample/MainWindow.xaml#L51
<dxe:DateNavigator.StyleSettings>
<dxsch:SchedulerDateNavigatorStyleSettings MaxSelectedConsecutiveWeeks="3"
MaxSelectedNonConsecutiveDates="5"
See Also
SchedulerDateNavigatorStyleSettings Class