Partilhar via


TargetPropertyPath Classe

Definição

Representa o caminho para uma propriedade em um elemento de destino.

public ref class TargetPropertyPath sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.ITargetPropertyPathFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 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.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.ITargetPropertyPathFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class TargetPropertyPath final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.ITargetPropertyPathFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TargetPropertyPath
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.ITargetPropertyPathFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class TargetPropertyPath
Public NotInheritable Class TargetPropertyPath
Herança
Object Platform::Object IInspectable TargetPropertyPath
Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)

Exemplos

Neste exemplo, myPanel.Orientation é um TargetPropertyPath em myPanel que é o Destino e Orientation é a Propriedade .

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

Comentários

TargetPropertyPath é usado para criar a sintaxe Setter.Target pontilhada simplificada em XAML.

Construtores

TargetPropertyPath()

Inicializa uma nova instância da classe TargetPropertyPath .

TargetPropertyPath(DependencyProperty)

Inicializa uma nova instância da classe TargetPropertyPath com a propriedade de destino especificada.

Propriedades

Path

Obtém ou define o caminho para a propriedade no elemento de destino.

Target

Obtém ou define o objeto que contém a propriedade descrita por Path.

Aplica-se a

Confira também