Saturday, October 10, 2015

How to get two way binding with Template Binding in WPF

Template Binding by default doesnt support Two Way binding.
If you still need to have it, here's the workaround:

<TextBox Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}"/>

No comments:

Post a Comment