Back to Devexpress

BaseLayoutItem.Parent Property

wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-fe80a4f6.md

latest2.5 KB
Original Source

BaseLayoutItem.Parent Property

Gets the item’s parent group.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public LayoutGroup Parent { get; }
vb
Public ReadOnly Property Parent As LayoutGroup

Property Value

TypeDescription
LayoutGroup

The item’s parent.

|

Remarks

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.

wpf-dock-layout-manager-limit-layout-group-customization-at-runtime/CS/DXDockingForLayoutPurposes/Helpers.cs#L40

csharp
targetItem = target as LayoutControlItem;
if (targetItem.Parent == draggedItem.Parent) {
    result = true;

wpf-dock-layout-manager-limit-layout-group-customization-at-runtime/VB/DXDockingForLayoutPurposes/Helpers.vb#L80

vb
Dim currentItem As BaseLayoutItem = item
While currentItem.Parent IsNot Nothing
    If TypeOf currentItem.Parent Is LayoutGroup Then

See Also

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.Xpf.Docking Namespace