语言

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

要检查的依赖属性。

返回

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

例外

target如果是null。

适用于