How to: Set the Target Property of a Label

This example shows how to set the Target property of a Label control.


The following example shows how to create a Label that uses AccessText and is bound to the target TextBox.

<TextBox Name="tb" Width="50"/>
<Label Target="{Binding ElementName=tb}">_File</Label>

For the complete sample, see Label Sample.

See Also