HierarchicalDataTemplate.ItemBindingGroup Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public BindingGroup ItemBindingGroup { get; set; }

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
Show: