Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Binding.BindsDirectlyToSource Property

Gets or sets a value that indicates whether to evaluate the Path relative to the data item or the DataSourceProvider object.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public bool BindsDirectlyToSource { get; set; }
<object BindsDirectlyToSource="bool" .../>

Property Value

Type: System.Boolean
false to evaluate the path relative to the data item itself; otherwise, true. The default is false.

The normal behavior (when this property is false) includes special treatment for DataSourceProvider objects. In this case, the binding engine evaluates the Path relative to the object obtained from the Data property. In addition, the binding listens for the DataChanged event and reacts accordingly. Setting this property to true overrides this behavior and gives the binding access to properties of the DataSourceProvider object itself.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft