Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

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

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft