I have two text boxes on a WPF form. The second TextBox gets its text from the first TextBox using ElementName binding, and it also updates the first text box via TwoWay binding mode:
<StackPanel Orientation="Vertical">
<TextBox Name="TextBox1"/>
<TextBox Text="{Binding ElementName=TextBox1, Path=Text, Mode=TwoWay}"/>
</StackPanel>
When I edit the second text box, the first text box updates only when the second text box loses focus, not instantly as I type. (This is as expected, UpdateSourceTrigger=PropertyChanged
can be added to the binding to get instant update.)
However when I edit the first text box, the second text box updates instantly as I type. This was not what I expected. Why is this?