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

Label Sample

Other Resources

Label How-to Topics