Share via


How to: Set the Target Property of a Label

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

Example

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

Tasks

How to: Create a Control That Has an Access Key and Text Wrapping

Other Resources

Label Sample
Label How-to Topics