DashboardControl.GetSelectedTabPage(String) Method

Returns a component name of the selected tab page in the specified tab container.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Dashboard.v20.1.Wpf.dll

Declaration

public string GetSelectedTabPage(
    string tabContainerName
)
Public Function GetSelectedTabPage(
    tabContainerName As String
) As String

Parameters

Name Type Description
tabContainerName String

A String that is the TabContainerDashboardItem component name.

Returns

Type Description
String

A String that is the TabContainerDashboardItem component name.

Examples

The following code selects the last page in a tab container and displays its component name and index in the TabContainerDashboardItem.TabPages collection.

TabContainerDashboardItem tabContainer = dashboardControl.Dashboard.Items.
    FirstOrDefault(item => item is TabContainerDashboardItem) as TabContainerDashboardItem;
if (tabContainer != null)
    dashboardControl.SetSelectedTabPage(tabContainer.ComponentName, tabContainer.TabPages.Count-1);
string pageComponentName = dashboardControl.GetSelectedTabPage(tabContainer.ComponentName);
int pageIndex = dashboardControl.GetSelectedTabPageIndex(tabContainer.ComponentName);
MessageBox.Show(string.Format("Page {0} with index {1} is selected.", pageComponentName, pageIndex));

Implements

DevExpress.DashboardCommon.Native.ISelectedTabPageProvider.GetSelectedTabPage(String)
See Also