Back to Devexpress

TabbedGroup.ShowTabForSinglePage Property

wpf-devexpress-dot-xpf-dot-docking-dot-tabbedgroup.md

latest3.4 KB
Original Source

TabbedGroup.ShowTabForSinglePage Property

Gets or sets whether the only dock panel within the TabbedGroup should display its tab.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

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

Property Value

TypeDescription
Boolean

true if the only dock panel within the TabbedGroup should display its tab; otherwise, false.

|

Remarks

By default, all dock panels (LayoutPanel objects) added to a TabbedGroup display their tabs. An end-user clicks these tabs to activate a corresponding dock panel. When there is only one dock panel within a TabbedGroup, you can use the ShowTabForSinglePage property to specify whether its tab should be displayed.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowTabForSinglePage 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-scheduler-use-entity-framework-to-bind-to-data/CS/DXSample/MainWindow.xaml#L23

xml
<dxdo:LayoutGroup>
    <dxdo:DocumentGroup ShowTabForSinglePage="False">
        <dxdo:DocumentPanel>

wpf-dock-layout-manager-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L82

xml
</dxdo:LayoutGroup>
    <dxdo:TabbedGroup ItemHeight="0.3*" prism:RegionManager.RegionName="{x:Static Infrastructure:RegionNames.TabRegion}" ShowTabForSinglePage="True"/>
</dxdo:LayoutGroup>

wpf-scheduler-disable-resource-colorization/CS/DXSample/MainWindow.xaml#L35

xml
<dxdo:LayoutGroup>
    <dxdo:DocumentGroup ShowTabForSinglePage="False">
        <dxdo:DocumentPanel>

See Also

ShowTabHeaders

TabbedGroup Class

TabbedGroup Members

DevExpress.Xpf.Docking Namespace