Dashboard for WinForms - How to navigate tabs using custom tab header buttons or set up a slide show
This example illustrates methods and events used to manage the selected tabs.
The application uses the DashboardViewer
control to load a sample dashboard and show custom buttons in the dashboard title.
Custom buttons are created within the DashboardViewer.CustomizeDashboardTitle event handler. Buttons are the DashboardToolbarItem objects inserted into e.Items collection. The button click event handler is specified in the DashboardToolbarItem constructor. The DashboardToolbarItem's Tag property holds the navigation direction value.
When an end user clicks a navigation button, the DashboardViewer.GetSelectedTabPageIndex method is used to find the selected page index. Subsequently the index is incremented or decremented depending on the navigation direction and the DashboardViewer.SetSelectedTabPage method selects the next or previous page.
The Slideshow button starts the timer. Each timer tick forces the transition manager to start the animated transition, calls the DashboardViewer.SetSelectedTabPage method to select the next page and finishes the transition.
The Show Tab Headers button toggles the TabContainerDashboardItem.ShowCaption value to hide or show tab captions.
- How to: Add a Command Button to the Dashboard Title and Item Caption
- How to Customize the Dashboard Title and Dashboard Item Captions
- Dashboard for Web Forms - How to navigate between tabs using custom tab header buttons or set up a slide show
(you will be redirected to DevExpress.com to submit your response)