Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyPath Class

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.

System.Object
  System.Windows.PropertyPath

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

[TypeConverterAttribute(typeof(PropertyPathConverter))]
public sealed class PropertyPath
<object property="propertyPath" .../>

XAML Values

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.

The PropertyPath type exposes the following members.

  NameDescription
Public methodPropertyPath(Object)Initializes a new instance of the PropertyPath class.
Public methodPropertyPath(String, Object[])Initializes a new instance of the PropertyPath class, with the provided pathing token string and parameters.
Top

  NameDescription
Public propertyPathGets or sets the string that describes the path.
Public propertyPathParametersGets the list of parameters to use when the path refers to indexed parameters.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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

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.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

Show:
© 2014 Microsoft