Back to Devexpress

SchedulerDateNavigatorStyleSettings.MaxSelectedConsecutiveWeeks Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulerdatenavigatorstylesettings-ab1f0707.md

latest2.9 KB
Original Source

SchedulerDateNavigatorStyleSettings.MaxSelectedConsecutiveWeeks Property

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

Declaration

csharp
public int MaxSelectedConsecutiveWeeks { get; set; }
vb
Public Property MaxSelectedConsecutiveWeeks As Integer

Property Value

TypeDescription
Int32

An integer that is the number of selected weeks.

|

Remarks

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

xml
<dxe:DateNavigator.StyleSettings>
    <dxsch:SchedulerDateNavigatorStyleSettings MaxSelectedConsecutiveWeeks="3"
                                               MaxSelectedNonConsecutiveDates="5"

wpf-scheduler-disable-resource-colorization/CS/DXSample/MainWindow.xaml#L51

xml
<dxe:DateNavigator.StyleSettings>
    <dxsch:SchedulerDateNavigatorStyleSettings MaxSelectedConsecutiveWeeks="3"
                                               MaxSelectedNonConsecutiveDates="5"

See Also

SchedulerDateNavigatorStyleSettings Class

SchedulerDateNavigatorStyleSettings Members

DevExpress.Xpf.Scheduling Namespace