wpf-devexpress-dot-xpf-dot-editors-dot-datetimemaskoptions.md
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
See GetChangeNextPartOnCycleValueChange(DependencyObject) and SetChangeNextPartOnCycleValueChange(DependencyObject, Nullable<Boolean>).
| Type | Description |
|---|---|
| Nullable<Boolean> |
true , if an editor’s neighboring segment value should be increased, otherwise, false.
|
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.
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:
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<Grid>
<dxe:DateEdit dxe:DateTimeMaskOptions.ChangeNextPartOnCycleValueChange="True"/>
</Grid>
</Window>
See Also