Share via


DescriptionViewer.PropertyPath Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property PropertyPath As String
public string PropertyPath { get; set; }
<sdk:DescriptionViewer 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 DescriptionViewer is associated with.

Remarks

Dependency property identifier field: PropertyPathProperty

Set the PropertyPath property to specify a particular dependency property that the DescriptionViewer 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 DescriptionViewer to inspect.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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