What Changed
In previous versions, TimeSpan masks recognized numbers in expressions like hh3
as a static text. For example:
XAML<dxe:TextEdit Mask="HH hh3 MM mm" MaskType="TimeSpan" />
In v20.2 and newer, you can use such expressions to specify the maximum number of digits. I.e., the mask above allows entering 2 or 3 symbols in the hours segment.
Reasons for Change
We adjusted TimeSpan masks to make it possible to limit the number of symbols in certain mask segments.
Impact on Existing Apps
Existing custom masks may change their behavior similarly to the example above.
How to Update Existing Apps
Use the backslash if you wish to keep displaying a static number.
XAML<!--before-->
<dxe:TextEdit Mask="HH hh3 MM mm" MaskType="TimeSpan" />
<!--after-->
<dxe:TextEdit Mask="HH hh\3 MM mm" MaskType="TimeSpan" />