This project has moved. For the latest updates, please go here.

MaskedTextBox text not updating on screen

Nov 26, 2012 at 12:11 PM

Hello,

I have a MaskedTextBox defined as follows:

<c:MaskedTextBox Mask="009" Name="textBoxPols" Width="50" ValueType="{x:Type sys:Int32}" Value="{Binding Path=LichamelijkOnderzoek.Hartslag.HartslagFrequentie, UpdateSourceTrigger=PropertyChanged, FallbackValue=500}" />

The binding seems to work okay. Values are written to my viewmodel correctly. The Value property of the MaskedTextBox is getting a correct value. The MaskedTextBox then tries to sync the Value and the Text properties. It seems to work (the Text property gets a correct value as string, too) BUT the MaskedTextBox does NOT update the text on screen.

So... although the binding seems to work, I don't get to see the actual values on screen.

What am I doing wrong?

Cheers,

JeroenNL