Share via


BindingOperations.GetSourceUpdatingBindings(DependencyObject) 方法

定义

获取所有无效值或没有进行源更新的目标值的 BindingExpressionBase 对象。

public:
 static System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Data::BindingExpressionBase ^> ^ GetSourceUpdatingBindings(System::Windows::DependencyObject ^ root);
public static System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Data.BindingExpressionBase> GetSourceUpdatingBindings (System.Windows.DependencyObject root);
static member GetSourceUpdatingBindings : System.Windows.DependencyObject -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Data.BindingExpressionBase>
Public Shared Function GetSourceUpdatingBindings (root As DependencyObject) As ReadOnlyCollection(Of BindingExpressionBase)

参数

root
DependencyObject

获取绑定组所用的根 UIElement。 此方法返回与此元素或其后代元素相关的 BindingExpressionBase 对象。

返回

BindingExpressionBase 对象的集合,这些对象与指定的元素关联,并具有无效值,或尚未更新资源的目标值。

注解

如果 rootnullGetSourceUpdatingBindings 则返回无效或尚未更新的所有 BindingExpressionBase 对象。

适用于