Skip to main content
A newer version of this page is available. .
All docs
V21.2

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.v21.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

Returns

Type Description
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:

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

DataEditors - ChangeNextPartOnCycleValueChange

See Also