c# - Showing Phone Number in specified format XAML -


this question has answer here:

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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -