Format Textbox in C # for WPF project

0

I have created a project in WPF in which in some textbox I have to enter hours in the 00:00:00 format, I would like the texbox to have the predefined format.

    
asked by Magdaleno 02.01.2019 в 01:58
source

1 answer

2

Between the controls of wpftoolkit accounts with the

TimePicker

with this you could select a schedule with the format you need since you have a property to change it

If you need to be able to write the time the closest thing would be to use MaskedTextBox applying the time format

WPF MaskedTextBox Control

the wpftoolkit also has a somewhat more advanced control for this

MaskedTextBox

    
answered by 02.01.2019 / 04:28
source