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.v21.1.dll

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

See Also