0 votes

Set Textbox formatting in C# for WPF project

I am creating a WPF project in which in some textboxes I have to enter hours in the format 00:00:00, I would like the texbox to already have the predefined format.


Leandro Tuttini Points 25288

Among the controls of the wpftoolkit you can count on the


with this one you can select a schedule with the format you need since it has a property to change it.

introducir la descripción de la imagen aquí

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

WPF MaskedTextBox Control

wpftoolkit also has a more advanced control for this.



HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by: