Wpf textblock text binding not updating

The crazy thing is this Text Box’s are all defined the same way, i tried changing the name, the property and always the same thing, the binding for the last Text Box in the list doesn’t work at all. Here is a little hint @afree, I guess when writing into those Text Box’s you actually do it from the top most one and going down, thus the last one to get your changes is always the bottom most Text Box.

Now can you try to do it in reverse, Write something (test values) into Text Box’s from the Bottom most Text Box, and going up to the Top Most one. I believe now you found out, that not the position of the Textbox that affects whether its changes are being applied back to the source or not, but in fact whether or not the Text Box is the last one to get your Changes.

Sadly this technique of binding Text Block text to 2 different properties or more is not available in Silverlight.

Text property, the text you type into the Text Box does not update the source until the Text Box loses focus (for instance, when you click away from the Text Box).

If you want the source to be updated as you type, set the Update Source Trigger of the binding to Property Changed.

This topic describes how to use the Update Source Trigger property to control the timing of binding source updates. This means if an application has a Text Box with a data-bound Text Box.

Text property has a default Update Source Trigger value of Lost Focus.

Leave a Reply