Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroup.SelectedItem Property

Gets the selected child item within the current group (mostly, this property is used when the current group represents child items 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 BaseLayoutItem SelectedItem { get; }

#Property Value

Type Description
BaseLayoutItem

A BaseLayoutItem object that represents the currently selected tab.

#Remarks

When a group represents child items as tabs, only one tab item can be selected at a time. Use the SelectedItem property to get this item.

Clicking a tab header selects a corresponding item. In code, you can select a tab item via the LayoutGroup.SelectedTabIndex property or LayoutController.Activate method.

To enable the tabbed interface for a LayoutGroup object, set the LayoutGroup.GroupBorderStyle property to GroupBorderStyle.Tabbed.

See Also