Condividi tramite


TargetPropertyPath Classe

Definizione

Rappresenta il percorso di una proprietà in un elemento di destinazione.

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
Ereditarietà
Object Platform::Object IInspectable TargetPropertyPath
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Esempio

In questo esempio myPanel.Orientation , è un TargetPropertyPath dove myPanel è Target e Orientation è la proprietà .

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

Commenti

TargetPropertyPath viene usato per creare la sintassi Setter.Target semplificata tratteggiata in XAML.

Costruttori

TargetPropertyPath()

Inizializza una nuova istanza della classe TargetPropertyPath .

TargetPropertyPath(DependencyProperty)

Inizializza una nuova istanza della classe TargetPropertyPath con la proprietà di destinazione specificata.

Proprietà

Path

Ottiene o imposta il percorso della proprietà nell'elemento di destinazione.

Target

Ottiene o imposta l'oggetto che contiene la proprietà descritta da Path.

Si applica a

Vedi anche