Share via


TargetPropertyPath Classe

Définition

Représente le chemin d’accès à une propriété sur un élément cible.

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
Héritage
Object Platform::Object IInspectable TargetPropertyPath
Attributs

Exemples

Dans cet exemple, myPanel.Orientation est un TargetPropertyPathmyPanel est la cible et Orientation est la propriété .

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

Remarques

TargetPropertyPath est utilisé pour créer la syntaxe setter.Target à pointillés simplifiée en XAML.

Constructeurs

TargetPropertyPath()

Initialise une nouvelle instance de la classe TargetPropertyPath.

TargetPropertyPath(DependencyProperty)

Initialise une nouvelle instance de la classe TargetPropertyPath avec la propriété cible spécifiée.

Propriétés

Path

Obtient ou définit le chemin d’accès à la propriété sur l’élément cible.

Target

Obtient ou définit l’objet qui contient la propriété décrite par Path.

S’applique à

Voir aussi