Open JuliaVasileva opened 4 months ago
Hi, I've been trying to create Mask for MaskedTextBox and faced a problem with optional characters.
The control seems to treat optional digits as mandatory.
Specifically:
Mask="N #90°" - where the 2 digits before the degree symbol are optional
However, values such as N 8° or N 12° are not valid
To make it valid, I need to input values with additional spaces like 'N 3°'
Hot to allow users to input values of different lengths without requiring additional spaces?
这里是郭瑞的邮箱,已收到您的来件,我会尽快拜阅并给予您回复
Hi,
How about using a prompt char of Empty: <xctk:MaskedTextBox Mask="N #90°" PromptChar="" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<xctk:MaskedTextBox Mask="N #90°" PromptChar="" HorizontalAlignment="Center" VerticalAlignment="Center"/>
Hi, I've been trying to create Mask for MaskedTextBox and faced a problem with optional characters.
The control seems to treat optional digits as mandatory.
Specifically:
Mask="N #90°" - where the 2 digits before the degree symbol are optional
However, values such as N 8° or N 12° are not valid
To make it valid, I need to input values with additional spaces like 'N 3°'
Hot to allow users to input values of different lengths without requiring additional spaces?