devexpress/agent-skills/devexpress-blazor-toolbar

Claude Code and agent skill by devexpress/agent-skills

Trust tier 2
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Build and configure the DevExpress Blazor Toolbar (DxToolbar) — an adaptive command bar for Blazor apps. Use when adding toolbars/command bars, configuring DxToolbarItem buttons, drop-down menus, overflow/adaptivity, icons/tooltips/links, checked and radio-group items, data binding, item templates (ChildContent/Template), and triggering actions like form submission. Also use for DxToolbar, DxToolbarItem, adaptive toolbar, overflow menu, command bar, and toolbar feature comparisons or migration…

Install

npx vskill@latest install devexpress/agent-skills/devexpress-blazor-toolbar

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

DevExpress Blazor Toolbar

DxToolbar is an adaptive button-based command bar for Blazor applications. It displays frequently used actions as buttons, drop-downs, checked items, and icon groups. The Toolbar adapts its layout automatically when the container width changes — collapsing items to icons or moving them into an overflow submenu.

When to Use This Skill

  • Add a toolbar with action buttons to a Blazor page or layout
  • Create drop-down item lists (sub-menu, modal dialog, or bottom sheet)
  • Implement checked items and radio-group button behavior
  • Bind the Toolbar to flat or hierarchical data collections
  • Customize item appearance with render styles and templates
  • Align items to the left or right
  • Configure adaptive behavior for different screen widths
  • Group items visually with separators
  • Submit a form on a toolbar button click
  • Add icons, tooltips, and navigation links to toolbar items

Prerequisites & Installation

NuGet Package
PackagePurpose
DevExpress.BlazorToolbar component and all core Blazor UI controls
bash
# Install from NuGet.org:
dotnet add package DevExpress.Blazor

Important: All DevExpress packages must use the same version. A valid DevExpress license is required.

Required Registration (all three steps must be present)

Program.cs — register DevExpress services:

csharp
builder.Services.AddDevExpressBlazor();
v26.1 note: DevExpress.Blazor no longer includes options.BootstrapVersion or DevExpress.Blazor.BootstrapVersion. Do not generate either API.

Components/App.razor — register theme and client scripts inside <head>:

razor
@using DevExpress.Blazor
@DxResourceManager.RegisterTheme(Themes.Fluent)
@DxResourceManager.RegisterScripts()
Without these two calls components render without styles and client interactivity is broken.

Components/_Imports.razor — add global namespace:

razor
@using DevExpress.Blazor

Before You Start — Ask the Developer

If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.

  1. Render mode: InteractiveServer, InteractiveWebAssembly, InteractiveAuto, or static SSR? (Static SSR limits interactivity.)
  2. New or existing project?
  3. Item mode: Unbound (declare items inline) or bound (bind to a data collection)?
  4. Features needed: Drop-downs? Checked/radio items? Adaptivity? Icon-only items? Form submission?
  5. Styling: Default, Contained, or Plain render style?
Rule: If interactivity (item clicks, checked states) is required, the page or component must use an interactive render mode.

Component Overview

DxToolbar provides:

  • Unbound mode: Items declared as DxToolbarItem components between DxToolbar tags (DxToolbarItem)
  • Bound mode: Items loaded from a data collection via the Data property and DxToolbarDataMapping (DxToolbar.Data)
  • Drop-down items: Each DxToolbarItem can have child Items rendered as a sub-menu, modal dialog, or bottom sheet
  • Checked items: Use GroupName to create toggle or radio-group buttons (DxToolbarItem.GroupName, @bind-Checked)
  • Adaptivity: Automatically hides item text or moves items to an overflow menu when space is limited
Core Entry Point
razor
@using DevExpress.Blazor
<DxToolbar>
<DxToolbarItem Text="Save" IconCssClass="oi oi-cloud-upload" />
<DxToolbarItem Text="Open" IconCssClass="oi oi-folder" />
<DxToolbarItem IconCssClass="oi oi-cog"
Alignment="ToolbarItemAlignment.Right"
BeginGroup="true" />
</DxToolbar>

Documentation & Navigation Guide

Getting Started

📄 references/getting-started.md

When you need to:

  • Install the package and add a Toolbar to a page
  • Understand unbound vs. bound modes
  • See a minimal working example
Items and Interactions

📄 references/items-and-interactions.md

When you need to:

  • Add drop-down sub-menus to toolbar items
  • Create checked items or radio-group buttons
  • Handle item click events
  • Add navigation links, tooltips, and icons to items
  • Use ChildContent for custom inner markup or Template to replace the entire item
  • Submit a form from a toolbar button
Adaptivity and Appearance

📄 references/adaptivity-and-appearance.md

When you need to:

  • Configure adaptive layout (hide text, move items to submenu)
  • Apply render styles (Contained, Plain)
  • Set item size mode
  • Bind items to a data collection
  • Customize the toolbar title

Quick Start Example

📄 examples/quickstart.razor

More Examples
FileWhat it demonstrates
📄 examples/data-bound.razorData-bound toolbar with hierarchical items and ItemClick handler
📄 examples/split-dropdown.razorSplit drop-down buttons (separate main action + drop-down arrow)
📄 examples/adaptive-toolbar.razorAdaptive layout: icon collapse, overflow menu, AdaptivePriority
razor
@page "/toolbar-demo"
@rendermode InteractiveServer
@using DevExpress.Blazor
<DxToolbar Title="Text Editor">
<Items>
<DxToolbarItem Text="New" IconCssClass="oi oi-file" Click="OnNew" />
<DxToolbarItem Text="Open" IconCssClass="oi oi-folder" Click="OnOpen" />
<DxToolbarItem Text="Save" IconCssClass="oi oi-cloud-upload" Click="OnSave"
BeginGroup="true" />
<DxToolbarItem GroupName="align" IconCssClass="oi oi-align-left"
BeginGroup="true" @bind-Checked="AlignLeft" />
<DxToolbarItem GroupName="align" IconCssClass="oi oi-align-center"
@bind-Checked="AlignCenter" />
<DxToolbarItem GroupName="align" IconCssClass="oi oi-align-right"
@bind-Checked="AlignRight" />
<DxToolbarItem Text="Format" BeginGroup="true">
<Items>
<DxToolbarItem Text="Bold" />
<DxToolbarItem Text="Italic" />
<DxToolbarItem Text="Underline" />
</Items>
</DxToolbarItem>
<DxToolbarItem IconCssClass="oi oi-cog"
Alignment="ToolbarItemAlignment.Right" />
</Items>
</DxToolbar>
<p>Alignment: @GetAlignment()</p>
@code {
bool AlignLeft { get; set; } = true;
bool AlignCenter { get; set; } = false;
bool AlignRight { get; set; } = false;
void OnNew() => Console.WriteLine("New clicked");
void OnOpen() => Console.WriteLine("Open clicked");
void OnSave() => Console.WriteLine("Save clicked");
string GetAlignment() =>
AlignLeft ? "Left" : AlignCenter ? "Center" : "Right";
}
What This Does

Renders a toolbar with file action buttons, a radio-group alignment selector, a drop-down Format menu, and a right-aligned settings icon. Clicking alignment buttons updates the AlignLeft/Center/Right state.

Key Properties & API Surface

DxToolbar
PropertyTypeDescription
TitlestringText displayed at the left of the toolbar
TitleTemplateRenderFragment<string>Custom template for the title area
ItemsRenderFragmentSlot for DxToolbarItem components (unbound mode)
DataobjectData collection for bound mode
DataMappingsRenderFragmentSlot for DxToolbarDataMapping in bound mode — place <DataMappings><DxToolbarDataMapping .../></DataMappings> inside DxToolbar
ItemRenderStyleModeToolbarRenderStyleModeContained or Plain fill mode for all items
SizeModeSizeModeItem size: Small, Medium (default), Large
DropDownDisplayModeDropDownDisplayModeDropDown, ModalDialog, or ModalBottomSheet
DropDownMaxHeightstringLimits the maximum height of all drop-down lists (CSS unit string, e.g., "200px"). Only applies when DropDownDisplayMode is DropDown.
DropDownCssClassstringCSS class applied to all drop-down panels — use for custom width, padding, etc.
TargetstringDefault HTML target attribute for all NavigateUrl items (e.g., "_blank") — overridden per item by DxToolbarItem.Target
AdaptivityAutoCollapseItemsToIconsboolHides text for icon items when space is limited
AdaptivityAutoHideRootItemsboolMoves root items to overflow submenu when space is limited
AdaptivityMinRootItemCountintMinimum root items to keep visible before hiding
ItemClickEventCallback<ToolbarItemClickEventArgs>Global click handler for all items — use args.ItemName to identify the clicked item; requires Name to be set on each DxToolbarItem
DxToolbarItem

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
52
Repository forks
8
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • templateCustom templates for code generation

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/devexpress/agent-skills/devexpress-blazor-toolbar/badge)](https://verified-skill.com/skills/devexpress/agent-skills/devexpress-blazor-toolbar)

Something wrong with this skill or its page? Tell us.