Mask for a datepicker field in an application [duplicate]

0

I have an application in wpf, so there are windows that have fields for date types, I put those fields with datepicker where there is a calendar for choosing the date.

So far so good, what I could not get by is a mask to stay like this "00/00/0000" in that field, accepting only numbers.

Does anyone have any idea what I can do?

    
asked by anonymous 06.03.2015 / 15:51

1 answer

0
<TextBlock Text="{Binding Start, StringFormat=d}" />

or

 <TextBlock Text="{Binding Path=OrderDate, StringFormat='{}{0:dd.MM.yyyy}'}"/>
    
06.03.2015 / 16:05