Binding.Path Property

July 28, 2014

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.

[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.

ExceptionCondition
InvalidOperationException

The Binding has already been attached to a target element, and cannot be modified.

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 ("").

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft