15.13. Element to Element Binding

In Silverlight 3.0 and WPF 4.0, you can now bind directly to another element. This example binds a TextBlock's Text property to the Text property of the text box txtValue:

<TextBox x:Name="txtValue" Width="200" Canvas.Top="50" ></TextBox>
<TextBlock Text="{Binding Text, ElementName=txtValue}"></TextBlock>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.248.44