This topic has not yet been rated - Rate this topic

Binding.Path Property

Gets or sets the path to the binding source property.

Namespace:  System.Windows.Data
Assembly:  System.Windows (in System.Windows.dll)
[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. For details on the property path format, see Property Path Syntax.

Property Value

Type: System.Windows.PropertyPath
The property path for the source of the binding. See PropertyPath or Property Path Syntax.
Exception Condition
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 ("").

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ