This project has moved and is read-only. For the latest updates, please go here.

MaskedTextBox for TimeSpan Input

Jul 18, 2012 at 10:46 AM
Edited Jul 18, 2012 at 10:50 AM


I am using your MaskedTextBox Control for TimeSpan of  format HH:MM .

1) the problem is when i delete Minutes(MM) digits so as  to change them, then Hours(HH) digits are shown in Minutes digit place, after giving Minutes digits the Hours digits are moved to their original place, can i avoid this movement of digits?

 2) How can assign timespan value from code behind (C#)?

i have given in the xaml as following

 <local:MaskedTextBox Mask="00:00" Width="40" Height="25" x:Name="txtTime" Value="1116" FlowDirection="RightToLeft" ></local:MaskedTextBox>


Thanks & Regards