c# - Showing Phone Number in specified format XAML -
this question has answer here:
- how define textbox input restrictions? 5 answers
i have textbox in wpf.
<textbox grid.row="3" fontsize="30"></textbox>
i need enter 10 digit phone numbers it. displaying format should xxx-xxx-xxxx
. is possible handle situation xaml without of code?. if no how possible of code?
try using
<textbox grid.row="3" maxlength="10(or limit)" fontsize="30"></textbox>
you can set limit in xaml in view-model or code-behind file.
Comments
Post a Comment