wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-fe80a4f6.md
Gets the item’s parent group.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public LayoutGroup Parent { get; }
Public ReadOnly Property Parent As LayoutGroup
| Type | Description |
|---|---|
| LayoutGroup |
The item’s parent.
|
Items can be combined into groups. The Parent property allows you to get the item’s parent group.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Parent property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
targetItem = target as LayoutControlItem;
if (targetItem.Parent == draggedItem.Parent) {
result = true;
Dim currentItem As BaseLayoutItem = item
While currentItem.Parent IsNot Nothing
If TypeOf currentItem.Parent Is LayoutGroup Then
See Also