Having trouble entering time values with MaskedTextbox

Jun 11, 2010 at 8:35 PM

I'm using the MaskedTextbox for .NET 3.5 SP1, from the WPF toolkit.  I've got a MaskedTextbox on a WPF page, it fills fine from a SQL Server database, but when I tried to edit the value nothing at all happens.  I can select anything, but typing over it, or pressing the delete key or anything else I can thing of, does nothing to the value there.  I want to use this to allow a user to enter or edit a time value, like this: 9:30 AM would appear as "09:30 AM".  Here's the XAML that I've specified:

<cusControls:MaskedTextBox x:Name="mtbTime"
			Mask="90:00 >LL" Margin="5,0,0,0"
			Text="{Binding ElementName=ThisDateTime,Path=TimePart,Converter={StaticResource NullableTimeToUnderscoreConverter}}" />


(This is a part of a user control I'm making called "ThisDateTime".)  What am I doing wrong and how do I fix it?