Search This Blog

Thursday, May 17, 2012

Silverlight Force Binding update

In Silverlight TextBoxes update TextBox.Text property Binding when they loose focus. To force binding update do the following:

//Force Binding update from TextBox
BindingExpression binding = pageSizeTextBox.GetBindingExpression(TextBox.TextProperty);
if (null != binding)
    binding.UpdateSource();

No comments:

Post a Comment

If you like this post, please leave a comment :)