i have textbox in wpf , need display text in xxx-xxx-xxxx format.
<textbox fontsize="30" text="{binding mystring,updatesourcetrigger=propertychanged}" grid.row="3" maxlength="10"></textbox> mystring property sets value in textbox other logic. can in xaml usng stringformat?
you can try using maskedtextbox specify format of input.
example:
<wpfx:maskedtextbox mask="000-000-0000" /> try this tutorial also.
Comments
Post a Comment