Share via


TargetPropertyPath Klasse

Definition

Stellt den Pfad zu einer Eigenschaft für ein Zielelement dar.

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
Vererbung
Object Platform::Object IInspectable TargetPropertyPath
Attribute

Beispiele

In diesem Beispiel myPanel.Orientation ist ein TargetPropertyPath Where myPanel ist das Ziel und Orientation die Eigenschaft.

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

Hinweise

TargetPropertyPath wird verwendet, um die vereinfachte gepunktete Setter.Target-Syntax in XAML zu erstellen.

Konstruktoren

TargetPropertyPath()

Initialisiert eine neue instance der TargetPropertyPath-Klasse.

TargetPropertyPath(DependencyProperty)

Initialisiert eine neue instance der TargetPropertyPath-Klasse mit der angegebenen Zieleigenschaft.

Eigenschaften

Path

Ruft den Pfad zur -Eigenschaft für das Zielelement ab oder legt diesen fest.

Target

Ruft das Objekt ab, das die von Path beschriebene Eigenschaft enthält, oder legt es fest.

Gilt für:

Weitere Informationen