HierarchicalDataTemplate.ItemBindingGroup 属性

定义

获取或设置复制到每个子项的 BindingGroup

public:
 property System::Windows::Data::BindingGroup ^ ItemBindingGroup { System::Windows::Data::BindingGroup ^ get(); void set(System::Windows::Data::BindingGroup ^ value); };
public System.Windows.Data.BindingGroup ItemBindingGroup { get; set; }
member this.ItemBindingGroup : System.Windows.Data.BindingGroup with get, set
Public Property ItemBindingGroup As BindingGroup

属性值

BindingGroup

复制到每个子项的 BindingGroup

注解

When you set the ItemBindingGroup property, each item container gets a BindingGroup that has the same ValidationRule objects as the ItemBindingGroup, but the properties that describe the data in the bindings, such as Items and BindingExpressions, are specific to the data for each item in the ItemsControl. 必须访问项容器 BindingGroup 以执行操作,例如验证数据并检查项上的错误。

适用于