BindingExpression::DataItem Property
.NET Framework (current version)
Gets the binding source object that this BindingExpression uses.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example shows the implementation of a Click event handler that uses the GetBindingExpression method to obtain the BindingExpression and then calls the DataItem property to access the binding source object.
The TextBlock SavingsText is the binding target object, and its Text property is the binding target property.
.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Show: