Label


LabelHierarchy: UIElement FrameworkControl Control ContentControl

 <Label     Content="Text"     Target="{Binding ElementName=UIElement}" /> 

or:

 <Label     Target="UIElement">     Label Text </Label> 

<Label .../> defines a component that can be a text label for a control as well as providing mnemonic support.

Attributes


Content (optional)

The text that will be displayed by the label. This attribute can be omitted if the second declaration syntax is used.


Target (optional)

Defines the target element of the Label. The target element must be of type UIElement and must exist in the XAML document. Assigning a Target to the Label keeps the label grouped with the element during the rendering process.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net