Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.CreateGroup() Method

Creates an object of the type that is returned by the GetGroupType protected virtual method.

Namespace: DevExpress.Xpf.LayoutControl

Assembly: DevExpress.Xpf.LayoutControl.v24.2.dll

NuGet Package: DevExpress.Wpf.LayoutControl

#Declaration

public virtual LayoutGroup CreateGroup()

#Returns

Type Description
LayoutGroup

The created object.

#Remarks

The CreateGroup method is called to create groups when a layout is modified or it’s loaded from an XML file.

The CreateGroup method creates an object of the type that is returned by the GetGroupType protected virtual method. As implemented in the LayoutGroup class, the GetGroupType protected virtual method returns the LayoutGroup type. So the CreateGroup method creates a new LayoutGroup object.

You can override the GetGroupType method and return a custom LayoutGroup class descendant. In this instance, objects of the custom type will be created when a layout is modified, or it’s loaded from an XML file.

See Also