Binding.Path Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the path to the binding source property.
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
Syntax
<TypeConverterAttribute(GetType(PropertyPathConverter))> _
Public Property Path As PropertyPath
[TypeConverterAttribute(typeof(PropertyPathConverter))]
public PropertyPath Path { get; set; }
<Binding Path="propertyPath"/>
XAML Values
- propertyPath
A string that describes a property on the binding source. This can be a simple property name, or a "dotted-down" property path to a sub-property.
Property Value
Type: System.Windows..::.PropertyPath
The property path for the source of the binding. See PropertyPath.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The Binding has already been attached to a target element, and cannot be modified. |
Remarks
The path can be a direct property of the source object or sub-properties.
To set the data source to be the Source object, the path should be an empty string ("").
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone