Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DateNavigator.SelectionMode Property

Gets or sets a value that specifies how users can select dates. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.DateNavigator

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public DateNavigatorSelectionMode SelectionMode { get; set; }

#Property Value

Type Description
DateNavigatorSelectionMode

Specifies the selection mode.

Available values:

Name Description
Default

Range selection by mouse clicks is disabled.

Range

Consecutive clicks on two dates result in range selection.

#Remarks

Set the SelectionMode property to Range to allow users to use mouse clicks to select the date range in the calendar.

#Limitations

  • If the DateNavigator.SelectionMode property is set to Range, the DateNavigator.IsMultiSelect property is ignored.
  • If the DateNavigator.SelectionMode property is set to Range, the DateNavigator.AllowMultipleRanges property has no effect. Users can only select a single continuous range.
  • If you use the DateNavigator.DisabledDate property and DateNavigator.SelectionMode is set to Range, the selected date range skips the deactivated date or dates.
  • The DateNavigator.SelectionMode property is available only for the Month view of the calendar.
See Also