Breaking Change T928073
Visible to All Users

TimeSpan masks recognize numbers after a mask specifier as a mask part, not as a static character

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" />

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.