BindingOperations::IsDataBound Method (DependencyObject^, DependencyProperty^)

 

Returns a value that indicates whether the specified property is currently data-bound.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
static bool IsDataBound(
	DependencyObject^ target,
	DependencyProperty^ dp
)

Parameters

target
Type: System.Windows::DependencyObject^

The object where dp is.

dp
Type: System.Windows::DependencyProperty^

The dependency property to check.

Return Value

Type: System::Boolean

true if the specified property is data-bound; otherwise, false.

Exception Condition
ArgumentNullException

If target is null.

.NET Framework
Available since 3.0
Return to top
Show: