Skip to main content
PropertyPath Class
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Implements a data structure for describing a property as a path below another property, or below an owning type. Property paths are used in data binding to objects, and in storyboards and timelines for animations.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

SystemObject
  System.WindowsPropertyPath

[TypeConverterAttribute(typeof(PropertyPathConverter))]
public sealed class PropertyPath
[TypeConverterAttribute((PropertyPathConverter^::typeid))]
public ref class PropertyPath sealed 
[<Sealed>]
[<TypeConverterAttribute(typeof(PropertyPathConverter))>]
type PropertyPath = class end
<TypeConverterAttribute(GetType(PropertyPathConverter))>
Public NotInheritable Class PropertyPath
NameDescription
System_CAPS_pubmethod PropertyPath

Initializes a new instance of the PropertyPath class.

System_CAPS_pubmethod PropertyPath

Initializes a new instance of the PropertyPath class, with the provided pathing token string and parameters.

NameDescription
System_CAPS_pubproperty

Gets or sets the string that describes the path.

System_CAPS_pubproperty

Gets the list of parameters to use when the path refers to indexed parameters.

NameDescription
System_CAPS_pubmethod Equals

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethod GetHashCode

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethod ToString

Returns a string that represents the current object.(Inherited from Object.)

This class contains a string , and list of dependency properties that are the into the string .

PropertyPath supports two modes of behavior:

Source mode describes a path to a property that is used as a source for some other operation. This mode is used by the Binding class to support data binding.

Target mode describes a path to a property that will be set as a target property. This mode is used by animation in support of storyboard and timeline setters.

For instance, Background.Opacity is a two-step path. This path implies: first, find the Background property of an object, get the value object that the Background property is set to, and then get the value of the Opacity property on that object.

<object property="propertyPath" .../>
propertyPath

A string that is evaluated to be either a simple or complex property path. The syntax for setting a PropertyPath in XAML is versatile but complex, and is described in the separate topic PropertyPath XAML Syntax.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top