Export (0) Print
Expand All

Label.PropertyPath Property

Silverlight

Gets or sets the path to the dependency property on the DataContext of the Target control that this Label is associated with.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data.Input (in System.Windows.Controls.Data.Input.dll)

public string PropertyPath { get; set; }
<sdk:Label PropertyPath="propertyName"/>

XAML Values

propertyName

The name of a dependency property on the DataContext of the Target control.

Property Value

Type: System.String
The path to the dependency property on the DataContext of the Target control that this Label is associated with. The default is null.

Dependency property identifier field: PropertyPathProperty

Set the PropertyPath property to specify a particular dependency property that the Label should retrieve metadata from. Setting the PropertyPath is useful when the Target control has multiple bindings. It can also be faster to specify the property if the Target control has many dependency properties for the Label to inspect.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft