Back to Devexpress

DateTimeMaskOptions.ChangeNextPartOnCycleValueChange Attached Property

wpf-devexpress-dot-xpf-dot-editors-dot-datetimemaskoptions.md

latest2.7 KB
Original Source

DateTimeMaskOptions.ChangeNextPartOnCycleValueChange Attached Property

Gets or sets whether a neighboring segment value should increase when a user spins through values of one mask segment and its value passes the minimum or maximum threshold. This is an attached property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetChangeNextPartOnCycleValueChange(DependencyObject) and SetChangeNextPartOnCycleValueChange(DependencyObject, Nullable<Boolean>).

Returns

TypeDescription
Nullable<Boolean>

true , if an editor’s neighboring segment value should be increased, otherwise, false.

|

Remarks

The ChangeNextPartOnCycleValueChange property specifies whether a neighboring segment value should automatically increase or decrease when a user spins through values of one mask segment with editor buttons or arrow keys.

Example

An editor has the “HH:mm” (hours and minutes) mask and the current editor value is “00:59”. If a user spins the minute segment up, the editor value becomes “00:00” if this property is disabled, or “01:00” when it is enabled. If a user decreases the minute segment value in an editor with a value of “01:00”, the resulting value is either “01:59” or “00:59” - based on the setting.

The following code sample enables the DateTimeMaskOptions.ChangeNextPartOnCycleValueChange property:

xaml
<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <Grid>
    <dxe:DateEdit dxe:DateTimeMaskOptions.ChangeNextPartOnCycleValueChange="True"/>
  </Grid>
</Window>

See Also

Mask Type: Date-Time

DateTimeMaskOptions Class

DateTimeMaskOptions Members

DevExpress.Xpf.Editors Namespace