<Window.Resources> <l:test x:Key="ThisTest" x:Name="MyTest"/> </Window.Resources> <TextBox Text="{Binding ElementName=MyTest, Path=k, Mode=TwoWay}" Name="label1" /> <TextBox Text="{Binding ElementName=MyTest, Path=k, Mode=TwoWay}"Name="label2" />
I expected from the code that when I write text in one textbox, it will appear as a friend.