Share via


TargetPropertyPath Class

Definition

Represents the path to a property on a target element.

public ref class TargetPropertyPath sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.UI.Xaml.ITargetPropertyPathFactory, 65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TargetPropertyPath final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.UI.Xaml.ITargetPropertyPathFactory), 65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TargetPropertyPath
Public NotInheritable Class TargetPropertyPath
Inheritance
Object Platform::Object IInspectable TargetPropertyPath
Attributes

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()

Initializes a new instance of the TargetPropertyPath class.

TargetPropertyPath(DependencyProperty)

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

Properties

Path

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

Target

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

Applies to

See also