Loading...
Loading...
Guide to implementing Syncfusion XPTaskPane component for Windows Forms. Use when user needs to create Microsoft Office XP-style task pane layouts, manage multiple task pages, configure navigation headers, reorder pages, or customize appearance. Covers container setup, page management, header controls, scrolling, and styling.
npx skill4agent add syncfusion/winforms-ui-components-skills syncfusion-winforms-xptaskpaneXPTaskPane (main control)
├── HeaderLeftToolbar (previous/next buttons)
├── HeaderRightToolbar (menu dropdown + close button)
└── TaskPanePageContainer (WizardContainer)
├── XPTaskPage 1
├── XPTaskPage 2
└── XPTaskPage Nusing Syncfusion.Windows.Forms.Tools;
// Step 1: Create XPTaskPane
XPTaskPane xpTaskPane1 = new XPTaskPane();
this.Controls.Add(xpTaskPane1);
// Step 2: Create and add WizardContainer
WizardContainer wizardContainer1 = new WizardContainer();
xpTaskPane1.Controls.Add(wizardContainer1);
xpTaskPane1.TaskPanePageContainer = wizardContainer1;
// Step 3: Create task pages
XPTaskPage page1 = new XPTaskPage();
page1.Title = "Page 1";
wizardContainer1.Controls.Add(page1);
XPTaskPage page2 = new XPTaskPage();
page2.Title = "Page 2";
wizardContainer1.Controls.Add(page2);
// Step 4: Set pages in TaskPages collection
xpTaskPane1.TaskPages = new XPTaskPage[] { page1, page2 };
// Step 5: Add controls to pages
Button btn = new Button() { Text = "Click Me" };
page1.Controls.Add(btn);| Property | Type | Purpose |
|---|---|---|
| XPTaskPage[] | Array of all task pages |
| XPTaskPage | Currently active page |
| Control | Container for pages (WizardContainer) |
| VisualStyle | Office theme (OfficeXP or Office2007) |
| int | Scroll speed for page content |
| bool | Enable vertical scrolling |
| Font | Global font for task pane |
| Color | Global text color |
| Label | Header text control |
| ToolBar | Previous/next navigation buttons |
| ToolBar | Menu and close button |