TargetPropertyPath
TargetPropertyPath
TargetPropertyPath
TargetPropertyPath
Class
Definition
Represents the path to a property on a target element.
public : sealed class TargetPropertyPath : ITargetPropertyPathpublic sealed class TargetPropertyPath : ITargetPropertyPathPublic NotInheritable Class TargetPropertyPath Implements ITargetPropertyPath// This API is not available in Javascript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Examples
In this example, myPanel.Orientation is a TargetPropertyPath where myPanel is the Target and Orientation is the Property.
<Setter Target="myPanel.Orientation" Value="Horizontal"/>
Remarks
TargetPropertyPath is used to create the simplified dotted Setter.Target syntax in XAML.
Constructors
TargetPropertyPath() TargetPropertyPath() TargetPropertyPath() TargetPropertyPath()
Initializes a new instance of the TargetPropertyPath class.
public : TargetPropertyPath()public TargetPropertyPath()Public Sub New()// This API is not available in Javascript.
- See Also
TargetPropertyPath(DependencyProperty) TargetPropertyPath(DependencyProperty) TargetPropertyPath(DependencyProperty) TargetPropertyPath(DependencyProperty)
Initializes a new instance of the TargetPropertyPath class with the specified target property.
public : TargetPropertyPath(DependencyProperty targetProperty)public TargetPropertyPath(DependencyProperty targetProperty)Public Sub New(targetProperty As DependencyProperty)// This API is not available in Javascript.
Parameters
- targetProperty
- DependencyProperty DependencyProperty DependencyProperty DependencyProperty
The target property.
Properties
Path Path Path Path
Gets or sets the path to the property on the target element.
public : PropertyPath Path { get; set; }public PropertyPath Path { get; set; }Public ReadWrite Property Path As PropertyPath// This API is not available in Javascript.
The path to the property on the target element.
Target Target Target Target
Gets or sets the object that contains the property described by Path.
public : PlatForm::Object Target { get; set; }public object Target { get; set; }Public ReadWrite Property Target As object// This API is not available in Javascript.
- Value
- PlatForm::Object object object object
The object that contains the property described by Path.