Skip to content

This example illustrates methods and events used to manage the selected tabs.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-dashboard-viewer-tab-navigation-buttons-tab-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)