Back to Devexpress

LayoutGroup.DestroyOnClosingChildren Property

wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup-34c7f1b3.md

latest4.4 KB
Original Source

LayoutGroup.DestroyOnClosingChildren Property

Gets or sets whether the current group is destroyed when removing all its children. This is a dependency property.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public bool DestroyOnClosingChildren { get; set; }
vb
Public Property DestroyOnClosingChildren As Boolean

Property Value

TypeDescription
Boolean

true if the current group is destroyed when removing all its children; otherwise, false.

|

Remarks

Setting this property to true has no effect if the group’s LayoutGroup.GroupBorderStyle property isn’t set to GroupBorderStyle.NoBorder .

The following code snippets (auto-collected from DevExpress Examples) contain references to the DestroyOnClosingChildren 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-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L18

xml
<Style TargetType="dxdo:LayoutGroup">
    <Setter Property="DestroyOnClosingChildren" Value="False"/>
</Style>

wpf-docklayoutmanager-merge-bars-in-controls-that-support-automatic-merging/CS/WpfApplication1/MainWindow.xaml#L21

xml
<dxdo:LayoutGroup>
    <dxdo:DocumentGroup x:Name="ChildDocumentGroup" MDIStyle="Tabbed" DestroyOnClosingChildren="False">
        <dxdo:DocumentPanel x:Name="Document1" Caption="DocumentPanel1" MDISize="800,600">

wpf-docklayoutmanager-load-an-external-window-or-usercontrol-into-a-documentpanel/CS/DocumentPanel_Content/MainWindow.xaml#L34

xml
<dxdo:LayoutGroup>
    <dxdo:DocumentGroup x:Name="documentGroup1" SelectedTabIndex="1" DestroyOnClosingChildren="False" MDIStyle="MDI">
        <dxdo:DocumentPanel x:Name="docPanel1" Caption="Panel 1" MDISize="300,250"/>

wpf-docklayoutmanager-merge-ribbon-controls/CS/WpfApplication1/MainWindow.xaml#L40

xml
<dxdo:LayoutGroup>
    <dxdo:DocumentGroup x:Name="ChildDocumentGroup" MDIStyle="Tabbed" DestroyOnClosingChildren="False">
        <dxdo:DocumentPanel x:Name="Document1" Caption="Document1" MDISize="800,600">

wpf-docklayoutmanager-use-services-that-implement-the-idocumentmanagerservice/CS/DXDocumentUIServiceSample/MainWindow.xaml#L60

xml
Caption="Panels"
DestroyOnClosingChildren="False"
ItemHeight="*" />

See Also

ClosingBehavior

LayoutGroup Class

LayoutGroup Members

DevExpress.Xpf.Docking Namespace