TargetPropertyPath TargetPropertyPath TargetPropertyPath Class

Definition

Represents the path to a property on a target element.

public : sealed class TargetPropertyPath : ITargetPropertyPath
public sealed class TargetPropertyPath : ITargetPropertyPath
Public NotInheritable Class TargetPropertyPath Implements ITargetPropertyPath
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

In this example, myPanel.Orientation is a TargetPropertyPath where myPanel is the Target and Orientation is the Property.

<Setter Target="myPanel.Orientation" Value="Horizontal"/>

Remarks

TargetPropertyPath is used to create the simplified dotted Setter.Target syntax in XAML.

Constructors

TargetPropertyPath() TargetPropertyPath() TargetPropertyPath()

Initializes a new instance of the TargetPropertyPath class.

public : TargetPropertyPath()
public TargetPropertyPath()
Public Sub New()
See Also

TargetPropertyPath(DependencyProperty) TargetPropertyPath(DependencyProperty) TargetPropertyPath(DependencyProperty)

Initializes a new instance of the TargetPropertyPath class with the specified target property.

public : TargetPropertyPath(DependencyProperty targetProperty)
public TargetPropertyPath(DependencyProperty targetProperty)
Public Sub New(targetProperty As DependencyProperty)
Parameters
targetProperty
DependencyProperty DependencyProperty DependencyProperty

The target property.

Properties

Path Path Path

Gets or sets the path to the property on the target element.

public : PropertyPath Path { get; set; }
public PropertyPath Path { get; set; }
Public ReadWrite Property Path As PropertyPath
Value
PropertyPath PropertyPath PropertyPath

The path to the property on the target element.

Target Target Target

Gets or sets the object that contains the property described by Path.

public : Platform::Object Target { get; set; }
public object Target { get; set; }
Public ReadWrite Property Target As object
Value
Platform::Object object object

The object that contains the property described by Path.