
syncfusion-winforms-commandbar
Implement the CommandBar control in Windows Forms to create customizable toolbars, rebars, and status bars with docking, floating, and state persistence capabilities. The CommandBar provides Office-like UI organization with support for hosting multiple controls, user layout customization, and serializable state management.
- Installs
- 77
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-commandbar- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads syncfusion-winforms-commandbar automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Implementing Windows Forms CommandBar
The CommandBar control provides a complete framework for creating and hosting toolbars, rebars, and status bars similar to Visual Studio and Office interfaces. It supports docking, floating windows, state persistence, and hosting custom controls.
When to use this skill
Use CommandBar when you need to:
- Create customizable toolbars and status bars
- Implement Office-like UI with docking/floating capabilities
- Allow users to reposition and rearrange bars
- Save and restore bar layout state across sessions
- Host controls like dropdowns, textboxes, and buttons
- Build complex multi-bar command frameworks
CommandBar overview
CommandBar operates through the CommandBarController component which manages multiple CommandBar instances. Each bar can host controls, dock to form sides, float as separate windows, and fire events during state transitions. Bars can be serialized to preserve user customization.
Documentation and navigation guide
Getting Started
📄 Read: references/getting-started.md
- Assembly dependencies and NuGet setup
- Adding CommandBar via designer and code
- Creating CommandBarController with HostForm
- Adding child controls (single and multiple)
- Code-first initialization patterns
Appearance Customization
📄 Read: references/appearance-customization.md
- Customizing buttons (close, chevron, dropdown)
- Cursor and gripper visibility control
- Background color customization (docked bar and CommandBar)
- Text display settings and font styling
- Visual property configuration
Interactive Features
📄 Read: references/interactive-features.md
- Floating bars and float mode wrapping
- Docking modes and dock state management
- Dock border restrictions
- Event handling (state changed, wrapping, closing)
- Complete event subscription examples
Hosting Controls
📄 Read: references/hosting-controls.md
- Integrating PopupMenu for dropdown functionality
- Adding XPToolBar for menu items
- Designer vs code-based integration
- Container patterns for complex layouts
Serialization
📄 Read: references/serialization.md
- Persistence support and state management
- AppStateSerializer class usage
- XML, Binary, Registry, and IsolatedStorage formats
- Load and save workflows
- State restoration on application launch
Quick start example
using Syncfusion.Windows.Forms.Tools;
using System.Windows.Forms;
public partial class Form1 : Form
{
private CommandBarController commandBarController1;
private CommandBar commandBar1;
public Form1()
{
InitializeComponent();
// Create controller
commandBarController1 = new CommandBarController();
commandBarController1.HostForm = this;
// Create command bar
commandBar1 = new CommandBar();
commandBar1.Text = "Main Toolbar";
commandBarController1.CommandBars.Add(commandBar1);
// Add child controls
TextBox textBox1 = new TextBox();
commandBar1.Controls.Add(textBox1);
}
}
Common patterns
Office-like layout
- Use Top CommandBar for main menu items (via XPToolBar)
- Use additional CommandBars for formatting toolbars
- Enable user to dock/float each bar independently
- Set AllowedDockBorders to restrict positioning
Responsive toolbars
- Enable FloatModeWrapping for space-constrained layouts
- Use chevron to handle overflow items
- Implement dynamic control addition based on context
Persistent state
- Enable PersistState on CommandBarController
- Load state in Form_Load event
- Save state in Form_Closing event
- Use serialization format matching your storage preference
Key properties
CommandBarController
HostForm- The form containing all command bars (required)CommandBars- Collection of CommandBar instancesPersistState- Enable/disable state persistenceBackColor- Color of docked bar areaStyle- Visual appearance (Office, Metro, etc.)
CommandBar
Text- Display name in dock/float modeDockState- Current position (Top, Bottom, Left, Right)DisableDocking- Prevent docking (force float mode)DisableFloating- Prevent floating (force docked mode)AllowedDockBorders- Restrict docking to specific sidesFloatModeWrapping- Enable content wrapping in float modeHideGripper- Hide drag handleHideCloseButton- Hide close button in float modeHideChevron- Hide overflow menu button
Common use cases
1. Visual Studio-like interface
- Multiple docked toolbars with different functions
- Floating tool windows
- Save user layout preferences
- Restore on application restart
2. Customizable dashboard
- Allow users to show/hide specific bars
- Reposition bars as needed
- Preserve layout in settings
- Different layouts for different modes
3. Single toolbar with multiple controls
- Host textbox for search
- Host dropdown for filtering
- Host buttons for actions
- Responsive to window resizing
4. Status bar implementation
- Dock CommandBar to bottom
- Add status labels and progress indicators
- Disable floating/moving (DisableDocking = true)
- Update content based on application state
FAQ
What does the syncfusion-winforms-commandbar skill do?
Implement the CommandBar control in Windows Forms to create customizable toolbars, rebars, and status bars with docking, floating, and state persistence capabilities. The CommandBar provides Office-like UI organization with support for hosting multiple controls, user layout customization, and serializable state management.
How do I install syncfusion-winforms-commandbar?
Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-commandbar in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-winforms-commandbar/ (personal) or .claude/skills/syncfusion-winforms-commandbar/ (project).
Which AI agents can use syncfusion-winforms-commandbar?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is syncfusion-winforms-commandbar safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains syncfusion-winforms-commandbar?
It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 77 recorded installs.
More from syncfusion/winforms-ui-components-skills
syncfusion-winforms-datagrid
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-button
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-common
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-contextmenustrip
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-docking-manager
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
syncfusion-winforms-licensing
syncfusion/winforms-ui-components-skills
Open the skill to read its SKILL.md instructions.
Popular frontend & design skills
setup-matt-pocock-skills
mattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
frontend-design
anthropics/skills
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
hyperframes-animation
heygen-com/hyperframes
All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
prototype
mattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.