Bewerken

Share via


BindingOperations.IsDataBound(DependencyObject, DependencyProperty) Method

Definition

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

public:
 static bool IsDataBound(System::Windows::DependencyObject ^ target, System::Windows::DependencyProperty ^ dp);
public static bool IsDataBound (System.Windows.DependencyObject target, System.Windows.DependencyProperty dp);
static member IsDataBound : System.Windows.DependencyObject * System.Windows.DependencyProperty -> bool
Public Shared Function IsDataBound (target As DependencyObject, dp As DependencyProperty) As Boolean

Parameters

target
DependencyObject

The object where dp is.

dp
DependencyProperty

The dependency property to check.

Returns

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

Exceptions

If target is null.

Applies to