Skip to main content

LayoutGroup.SelectedTabIndex Property

Gets or sets the index of the active child item. This property is supported for groups that display its children as tabs. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public int SelectedTabIndex { get; set; }

Property Value

Type Description
Int32

The index of the active tab.

Remarks

Use the LayoutGroup.SelectedItem property to get the selected item.

The following code sample activates the second LayoutPanel in the TabbedGroup.

<dx:ThemedWindow
  ...
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
  <dxdo:DockLayoutManager>
    <dxdo:LayoutGroup Caption="LayoutRoot">
      <dxdo:TabbedGroup SelectedTabIndex="1">
        <dxdo:LayoutPanel Caption="Error List"/>
        <dxdo:LayoutPanel Caption="Output"/>
        <dxdo:LayoutPanel Caption="Find Results"/>
        <dxdo:LayoutPanel Caption="Solution Explorer"/>
      </dxdo:TabbedGroup>
    </dxdo:LayoutGroup>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>

DockLayoutManager - SelectedTabIndex property

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedTabIndex 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.

See Also