Compartir a través de


TargetPropertyPath Clase

Definición

Representa la ruta de acceso a una propiedad en un 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
Herencia
Object Platform::Object IInspectable TargetPropertyPath
Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 (se introdujo en la versión 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v1.0)

Ejemplos

En este ejemplo, myPanel.Orientation es un TargetPropertyPath, donde myPaneles target yOrientation es la propiedad .

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

Comentarios

TargetPropertyPath se usa para crear la sintaxis de punto simplificado Setter.Target en XAML.

Constructores

TargetPropertyPath()

Inicializa una nueva instancia de la clase TargetPropertyPath .

TargetPropertyPath(DependencyProperty)

Inicializa una nueva instancia de la clase TargetPropertyPath con la propiedad de destino especificada.

Propiedades

Path

Obtiene o establece la ruta de acceso a la propiedad en el elemento de destino.

Target

Obtiene o establece el objeto que contiene la propiedad descrita por Path.

Se aplica a

Consulte también