Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Binding.Path Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the path to the binding source property.
Namespace: System.Windows.Data
Assembly: System.Windows (in System.Windows.dll)
Syntax
'Declaration
<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. 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.
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
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.