Poma
Poma

Reputation: 8474

How to refresh binding to property that doesn't support INotyfyPropertyChanged?

I have some binding to third party object:

<TextBlock Text="{Binding myString.Length}" />

How to refresh this binding programmatically?

Upvotes: 0

Views: 126

Answers (1)

Poma
Poma

Reputation: 8474

Should have used google first :)

textBox1.GetBindingExpression(TextBox.TextProperty).UpdateTarget();

Upvotes: 1

Related Questions