HierarchicalDataTemplate.ItemBindingGroup Property


Gets or sets the BindingGroup that is copied to each child item.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Property ItemBindingGroup As BindingGroup

Property Value

Type: System.Windows.Data.BindingGroup

The BindingGroup that is copied to each child item.

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. You must access the item container's BindingGroup to perform operations such as validate the data and check for errors on an item.

.NET Framework
Available since 3.0
Return to top