PropertyPath PropertyPath 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.

Syntax

Declaration

public sealed class PropertyPathpublic sealed class PropertyPathPublic NotInheritable Class PropertyPath

Inheritance Hierarchy

Remarks

The main reason you might work with a PropertyPath object is to clone existing binding properties and use them somewhere else:

Animation targeting also uses a property path concept, as documented in the Property-path syntax topic. However, animation targeting doesn't use PropertyPath as the underlying type, it expresses the paths as strings and uses strings for all related API calls.

Constructors summary

Initializes a new instance of the PropertyPath class based on a path string.

Properties summary

Gets the path value held by this PropertyPath.

Constructors

  • PropertyPath(System.String)
    PropertyPath(System.String)
    PropertyPath(System.String)
    PropertyPath(System.String)

    Initializes a new instance of the PropertyPath class based on a path string.

    public PropertyPath(System.String)public PropertyPath(System.String)Public Function PropertyPath(System.String) As

    Parameters

    • path
      System.String
      System.String
      System.String

      The path string to construct with.

Properties

  • Path
    Path
    Path
    Path

    Gets the path value held by this PropertyPath.

    public string Path { get; }public string Path { get; }Public ReadOnly Property Path As string

    Property Value

    • string
      string
      string

      The path value held by this PropertyPath.

    Remarks

    To establish a value for Path, create a new PropertyPath using the @Windows.UI.Xaml.PropertyPath.#ctor(System.String) constructor.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.UI.Xaml.dll