Reordering-XPTaskPage in Windows Forms xptaskpane (XPTaskPane)
When the end user adds a page to the XPTaskPane control, the order of the page is decided, as the page is added. They can be reordered using any one of the below methods in the designer.
- Through XPTaskPage Collection Editor.
- Select a page in the designer and choose the ‘Bring To Front’ or ‘Send To Back’ verb which will move the page to the beginning of the collection or to the end of the collection, respectively.
Going to next page or previous page
- Right-click a page in the designer and choose the ‘Previous Page’ or ‘Next Page’ verb which will show you the page, which is before the current page or the page which is after the current page. These options can also be accessed through smart tag and property grid commands.
Page order at RunTime
XPTaskPage allows you to set the next or the previous page to the currently selected page through the NextPage and PreviousPage properties.
|NextPage||It sets the next page for XP TaskPane.|
|PreviousPage||It sets the previous page for XP TaskPane.|
The TaskPane follows this order at run time.
this.xpTaskPage2.NextPage = this.xpTaskPage3; this.xpTaskPage2.PreviousPage = this.xpTaskPage1;
Me.xpTaskPage2.NextPage = Me.xpTaskPage3 Me.xpTaskPage2.PreviousPage = Me.xpTaskPage1