BindingOperations.IsDataBound(DependencyObject, DependencyProperty) 方法

定义

返回一个值,该值指示指定的属性当前是否是数据绑定的。

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

参数

target
DependencyObject

dp 所在的对象。

dp
DependencyProperty

要检查的依赖项属性。

返回

Boolean

如果指定的属性为数据绑定的,则为 true;否则为 false

例外

如果 targetnull

适用于