agentsclimarketplace

Syncfusion winforms xptaskbar

Skill syncfusion/winforms-ui-components-skills/skills/syncfusion-winforms-xptaskbar

Skills for Syncfusion WinForms controls. Enable AI-assisted development with comprehensive documentation, code examples, and best practices for 100+ UI controls including DataGrid, Charts, Scheduler, and more.

Install
npx -y skills add syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-xptaskbar

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

How to create and configure Syncfusion XPTaskBar controls in Windows Forms applications. Use this skill whenever the user needs to implement expandable task panels, create Windows XP-style task menus, build collapsible navigation panels, configure multi-box task bars, or customize task bar behavior with animations and events. Covers basic setup, box/item management, layout modes, events, customization, and spacing configuration.

SKILL.md

8.7 KB, ~1.9k tokens by cl100k_base, as published. Nobody here has run it

Implementing XPTaskBar in Windows Forms

Table of Contents

When to Use This Skill

Use XPTaskBar when you need to:

  • Create expandable task panels - Display command items or features in collapsible grouped boxes
  • Build Windows XP-style menus - Recreate the classic task sidebar UI pattern
  • Organize navigation hierarchically - Group related commands into categorized boxes
  • Implement interactive task lists - Allow users to expand/collapse task categories with animations
  • Add custom animations and events - Control expand/collapse behavior and respond to user interactions

Component Overview

XPTaskBar is a Windows Forms control that displays command items organized within collapsible boxes, mimicking the Windows XP task sidebar. The component hierarchy includes:

  • XPTaskBar - Main container control that can hold multiple boxes
  • XPTaskBarBox - Collapsible section with header and items area
  • XPTaskBarItem - Individual command items displayed within a box

Key Features

  • Hierarchical layout - Organize items into categorized boxes
  • Collapse/expand animation - Smooth transitions with configurable animation speed
  • Multiple layout modes - Vertical (default) or horizontal orientation
  • State persistence - Remember expanded/collapsed state across sessions
  • Rich customization - Control colors, fonts, images, and spacing
  • Event-driven - Handle clicks, animations, and state changes
  • Child control support - Host panels and other controls within boxes

Quick Start Example

using Syncfusion.Windows.Forms.Tools;

// Create XPTaskBar control
XPTaskBar xpTaskBar1 = new XPTaskBar();
xpTaskBar1.Dock = DockStyle.Fill;
this.Controls.Add(xpTaskBar1);

// Create first task box
XPTaskBarBox box1 = new XPTaskBarBox();
box1.Text = "File Operations";
xpTaskBar1.Controls.Add(box1);

// Add items to the box
box1.Items.AddRange(new XPTaskBarItem[] {
    new XPTaskBarItem("New Document", System.Drawing.Color.Empty, -1, "NewDoc"),
    new XPTaskBarItem("Open File", System.Drawing.Color.Empty, -1, "OpenFile"),
    new XPTaskBarItem("Save", System.Drawing.Color.Empty, -1, "Save")
});

// Handle item clicks
box1.ItemClick += (sender, e) => {
    switch (e.XPTaskBarItem.Tag as string) {
        case "NewDoc":
            // Handle new document
            break;
        case "OpenFile":
            // Handle file open
            break;
    }
};

// Create second task box
XPTaskBarBox box2 = new XPTaskBarBox();
box2.Text = "Editing Tools";
xpTaskBar1.Controls.Add(box2);

box2.Items.AddRange(new XPTaskBarItem[] {
    new XPTaskBarItem("Cut", System.Drawing.Color.Empty, -1, "Cut"),
    new XPTaskBarItem("Copy", System.Drawing.Color.Empty, -1, "Copy"),
    new XPTaskBarItem("Paste", System.Drawing.Color.Empty, -1, "Paste")
});

Documentation Navigation Guide

Read the reference documentation in the order that matches your implementation needs:

Getting Started

πŸ“„ Read: references/getting-started.md

  • Assembly and package dependencies
  • Adding control via designer or code
  • Basic XPTaskBar, box, and item setup
  • Assembly references required

Building the Structure

πŸ“„ Read: references/box-structure.md

  • XPTaskBar box hierarchy and anatomy
  • Header customization (text, font, alignment, direction)
  • Collapse/expand button configuration
  • Integrating child panels and controls

πŸ“„ Read: references/items-and-content.md

  • Creating and managing XPTaskBarItems
  • Working with Items collection
  • Item properties and configuration
  • Hosting nested controls with PreferredChildPanelHeight

Layout and Orientation

πŸ“„ Read: references/layout-orientation.md

  • Vertical layout mode (default)
  • Horizontal layout mode and column width
  • Switching orientations dynamically
  • Responsive layout behavior

Behavior and Interactivity

πŸ“„ Read: references/behavior-and-events.md

  • Animation configuration and timing
  • Collapse/expand event handling
  • ItemClick event with Tag-based routing
  • State preservation (AutoPersistStates)
  • Drag-and-drop support
  • Event examples and patterns

Appearance and Customization

πŸ“„ Read: references/appearance-customization.md

  • Header color and forecolor customization
  • Font styling for headers
  • Brush customization via ProvideHeaderBackgroundBrush and ProvideItemsBackgroundBrush events
  • Adding images to headers and items
  • Tooltip configuration and display
  • Custom background drawing techniques

Spacing and Scrolling

πŸ“„ Read: references/padding-spacing-scrolling.md

  • XPTaskBar interior padding (DockPadding, HorizontalPadding, VerticalPadding)
  • Box header padding (PADX, PADY)
  • Auto-scroll behavior
  • Scroll margin and minimum size configuration

Common Patterns

Pattern 1: Multi-Box Task Menu

Create a sidebar with multiple collapsible task categories:

var taskBar = new XPTaskBar { VerticalLayout = true };

// Create boxes for different task categories
foreach (var category in new[] { "File", "Edit", "View", "Help" }) {
    var box = new XPTaskBarBox { Text = category };
    taskBar.Controls.Add(box);
    // Add items to box
}

Pattern 2: Item Click Routing

Use the Tag property to implement event routing:

box.ItemClick += (sender, e) => {
    var command = e.XPTaskBarItem.Tag as string;
    ExecuteCommand(command);
};

Pattern 3: Stateful Persistence

Remember user preferences across sessions:

xpTaskBar1.AutoPersistStates = true;

Pattern 4: Animated State Changes

Control animation behavior during expand/collapse:

box.AnimationDelay = 50;           // Milliseconds between frames
box.AnimationPositionsCount = 15;  // Number of animation steps
box.UseAdditionalAnimation = true; // Animate when adding/removing items

Key Configuration Properties

XPTaskBar Level

PropertyTypePurpose
VerticalLayoutboolSet true for vertical mode (default), false for horizontal
ColWidthOnHorizontalAlignmentintColumn width in horizontal layout mode
HorizontalPaddingintInterior horizontal spacing
VerticalPaddingintInterior vertical spacing
AutoScrollboolEnable automatic scrollbars when needed
AutoPersistStatesboolPersist expanded/collapsed state between sessions
AllowDropboolEnable drag-and-drop support
MinimumSizeSizeMinimum control dimensions

XPTaskBarBox Level

PropertyTypePurpose
TextstringBox header display text
CollapsedboolSet true to collapse, false to expand
ShowCollapseButtonboolShow/hide collapse button
ToggleByButtonboolAllow button to toggle state
HeaderBackColorColorHeader background color
HeaderForeColorColorHeader text color
HeaderFontFontHeader text font
HeaderTextAlignStringAlignmentHeader text alignment
AnimationDelayintDelay in ms between animation frames
AnimationPositionsCountintNumber of animation steps
PreferredChildPanelHeightintHeight reserved for child controls
ShowToolTipboolEnable tooltips for items
PADXintHorizontal header padding
PADYintVertical header padding

XPTaskBarItem Level

PropertyTypePurpose
TextstringItem display text
ImageIndexintIndex in parent box's ImageList
ToolTipTextstringTooltip text on hover
TagobjectCustom data for event routing

Next Step: Start with references/getting-started.md to set up your first XPTaskBar control.

What ships with it: 7 files

61.3 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,984. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.