Export (0) Print
Expand All

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.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[TypeConverterAttribute(typeof(PropertyPathConverter))] 
public sealed class PropertyPath
/** @attribute TypeConverterAttribute(System.Windows.PropertyPathConverter) */ 
public final class PropertyPath
TypeConverterAttribute(System.Windows.PropertyPathConverter) 
public final class PropertyPath
<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. 

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.

System.Object
  System.Windows.PropertyPath

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft