/semi-avalonia:semi-avalonia-usagefrom semi-avalonia
Guides control selection, MVVM patterns, accessibility, and composition for Semi.Avalonia-themed apps. Loads per-control references for usage scenarios.
Ships in semi-avalonia. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when deciding which Avalonia control to use and how to use it in an application themed with Semi.Avalonia — scenarios, properties, MVVM wiring, accessibility and composing controls together.
在用 Semi.Avalonia 主题化的应用中决定用哪个 Avalonia 控件、怎么用时加载此 Skill —— 涵盖场景、属性、MVVM 接线、可访问性与控件组合。
Theme facts live elsewhere / 主题事实在别处
Style classes, ControlTheme variants, pseudo-classes, DynamicResource keys and token values change with every Semi release, so they are not duplicated here. Load the
semi-avaloniaskill (bundled with this plugin) and use itsreference/classes.md,reference/tokens.mdandreference/customization.mdas the single source of truth; only use the classes, variants and keys listed there.样式类、ControlTheme 变体、伪类、DynamicResource 键和 token 值随每个 Semi 版本变化, 因此本 Skill 不保留副本。请加载
semi-avaloniaskill(本插件自带),以其reference/classes.md、reference/tokens.md、reference/customization.md为唯一事实来源; 只使用其中列出的类、变体与键。
When the user asks about a specific control (e.g. "use a Button", "style a TextBox", "add a DataGrid"), load the corresponding reference:
当用户询问某个特定控件时(如"使用 Button"、"给 TextBox 添加样式"),加载对应的参考文件:
reference/<control-name>.md
Each reference contains / 每个参考页面包含:
Install via NuGet and add the Semi theme — exactly one theme style, no Fluent/Simple alongside it:
dotnet add package Semi.Avalonia
<Application xmlns:semi="https://irihi.tech/semi">
<Application.Styles>
<semi:SemiTheme Locale="zh-CN" />
</Application.Styles>
</Application>
That's all — every Avalonia control is themed automatically. Setup details, theme
switching, locales and palettes are documented in the semi-avalonia skill.
dotnet add package Semi.Avalonia.ColorPicker
dotnet add package Semi.Avalonia.DataGrid
dotnet add package Semi.Avalonia.TreeDataGrid
dotnet add package Semi.Avalonia.Dock
dotnet add package Semi.Avalonia.Tabalonia
dotnet add package Semi.Avalonia.AvaloniaEdit
<Application.Styles>
<semi:ColorPickerSemiTheme />
<semi:DataGridSemiTheme />
<semi:TreeDataGridSemiTheme />
<semi:DockSemiTheme />
<semi:TabaloniaSemiTheme />
<semi:AvaloniaEditSemiTheme />
</Application.Styles>
ℹ Dock, Tabalonia and AvaloniaEdit are delivered via nuget for free, but not open source.
Command binding over Click handlers; CanExecute drives IsEnabled
automatically (see each control reference for the command-aware properties). /
优先用 Command 绑定而非 Click 处理器;CanExecute 会自动驱动 IsEnabled。SelectedItem, Value, Text) to ViewModel
properties; avoid reading control state in code-behind. / 将选择与值属性绑定到
ViewModel;避免在 code-behind 中读取控件状态。ThemeVariantScope (see its reference) changes
the theme variant for one subtree without touching the rest of the app. /
需要子树级主题时用 ThemeVariantScope(见其参考文件)。_Header access keys (e.g. _File) on MenuItem/Label-adjacent controls so keyboard
users can reach them. / 使用 _Header 访问键让键盘用户可达。AutomationProperties.AutomationId / Name in app code —
the theme handles the visuals, identification is your job. / 为交互控件设置自动化属性。IsDefault/IsCancel buttons (see the Button reference). / 保持 Tab 顺序与视觉顺序
一致;对话框用 IsDefault/IsCancel。RequestedThemeVariant="Default"
unless the app has a reason to force Light/Dark. / 默认跟随系统主题偏好。| Control | File | Description |
|---|---|---|
| Button | button | Clickable action trigger. / 可点击的操作触发器。 |
| TextBox | textbox | Single/multi-line text input with validation. / 单行/多行文本输入。 |
| CheckBox | checkbox | Toggle for boolean options, supports indeterminate. / 布尔选项切换。 |
| RadioButton | radiobutton | Mutually exclusive single selection. / 互斥单选。 |
| ToggleSwitch | toggleswitch | On/off switch with immediate effect. / 即时生效的开关。 |
| Slider | slider | Range value selection with track and thumb. / 范围值选择。 |
| ComboBox | combobox | Dropdown selection with optional editing. / 下拉选择框。 |
| AutoCompleteBox | autocompletebox | Text input with suggestion dropdown. / 带建议下拉的文本输入。 |
| NumericUpDown | numeric-up-down | Numeric value spinner. / 数值微调控件。 |
| Control | File | Description |
|---|---|---|
| RepeatButton | repeatbutton | Button that fires repeatedly while pressed. / 按住时重复触发的按钮。 |
| ToggleButton | togglebutton | Button with checked/unchecked state. / 带选中状态的按钮。 |
| DropDownButton | dropdownbutton | Button with an attached flyout. / 带浮出层的按钮。 |
| SplitButton | splitbutton | Button with primary action + dropdown part. / 主操作+下拉部分的按钮。 |
| HyperlinkButton | hyperlinkbutton | Link-styled button with URI navigation. / 链接样式的按钮。 |
| ButtonSpinner | buttonspinner | Button pair for increment/decrement. / 增减按钮对。 |
| Control | File | Description |
|---|---|---|
| TextBlock | textblock | Read-only text with inline formatting. / 只读文本,支持内联格式。 |
| Label | label | Text label with target/access-key support. / 带目标控件关联的文本标签。 |
| SelectableTextBlock | selectable-text-block | Selectable, copyable read-only text. / 可选择可复制的只读文本。 |
| PathIcon | path-icon | Vector icon from path data. / 路径数据的矢量图标。 |
| ProgressBar | progress-bar | Linear or ring progress indicator. / 线性或环形进度指示器。 |
| Control | File | Description |
|---|---|---|
| ListBox | listbox | Selectable item list with virtualization. / 可选择项列表。 |
| ItemsControl | itemscontrol | Base repeating items control. / 基础重复项控件。 |
| TreeView | treeview | Hierarchical tree with expandable nodes. / 层级树控件。 |
| TableView | table-view | Column-based data table. / 基于列的数据表格。 |
| TabControl | tabcontrol | Tabbed content switching. / 选项卡内容切换。 |
| TabStrip | tabstrip | Tab header row (pair with Carousel). / 选项卡标题行。 |
| TabItem | tabitem | Single tab within TabControl. / TabControl 中的单独选项卡。 |
| Control | File | Description |
|---|---|---|
| Border | border | Single-child decorator with border/radius/shadow. / 单子元素装饰器。 |
| Expander | expander | Collapsible content with header. / 可折叠内容区域。 |
| GroupBox | groupbox | Titled border around grouped controls. / 带标题边框的分组容器。 |
| ScrollViewer | scrollviewer | Scrollable viewport for overflowing content. / 可滚动视口。 |
| SplitView | splitview | Master-detail with collapsible pane. / 主从布局,可折叠面板。 |
| GridSplitter | gridsplitter | Draggable splitter for Grid rows/columns. / Grid 行列拖动分割器。 |
| HeaderedContentControl | headeredcontentcontrol | Base class for headered controls. / 带标题控件的基类。 |
| Control | File | Description |
|---|---|---|
| Calendar | calendar | Month-view date grid with selection. / 月份视图日期网格。 |
| CalendarDatePicker | calendar-date-picker | Date picker with calendar dropdown. / 带日历下拉的日期选择。 |
| DatePicker | date-picker | Date selection with year/month/day spinners. / 年/月/日选择器。 |
| TimePicker | time-picker | Time selection with hour/minute/second. / 时间选择器。 |
| Control | File | Description |
|---|---|---|
| Carousel | carousel | Page switcher with transition animations. / 带过渡动画的页面切换器。 |
| CarouselPage | carouselpage | Carousel page with indicator support. / 带指示器的 Carousel 页面。 |
| ContentPage | contentpage | Simple content page for navigation. / 简单导航内容页。 |
| DrawerPage | drawerpage | Page with slide-out drawer panel. / 带滑出抽屉面板的页面。 |
| NavigationPage | navigationpage | Stack-based page navigation. / 基于栈的页面导航。 |
| TabbedPage | tabbedpage | Bottom-tabbed page container. / 底部选项卡页面容器。 |
| Control | File | Description |
|---|---|---|
| ContextMenu | contextmenu | Right-click context menu. / 右键上下文菜单。 |
| Menu | menu | Horizontal/vertical menu bar. / 水平/垂直菜单栏。 |
| MenuFlyoutPresenter | menuflyoutpresenter | Flyout presenter for menu flyouts. / 菜单浮出层的呈现器。 |
| FlyoutPresenter | flyoutpresenter | Base flyout content host. / 浮出层内容宿主。 |
| Popup | popup | Floating popup content. / 浮动弹出内容。 |
| Tooltip | tooltip | Hover tooltip popup. / 悬停提示弹出框。 |
| Control | File | Description |
|---|---|---|
| ProgressBar | progress-bar | Linear/ring progress indicator. / 线性/环形进度。 |
| RefreshContainer | refresh-container | Pull-to-refresh container. / 下拉刷新容器。 |
| PipsPager | pips-pager | Page indicator dots. / 页面指示器点。 |
| NotificationCard | notificationcard | In-app notification banner. / 应用内通知横幅。 |
| DataValidationErrors | data-validation-errors | Validation error display. / 验证错误显示。 |
| Control | File | Description |
|---|---|---|
| Window | window | Top-level application window. / 顶级应用窗口。 |
| EmbeddableControlRoot | embeddable-control-root | Root for embedded Avalonia views. / 嵌入式 Avalonia 视图的根。 |
| ManagedFileChooser | managedfilechooser | In-app file picker dialog. / 应用内文件选择对话框。 |
| ThemeVariantScope | themevariantscope | Local theme variant override. / 局部主题变体覆盖。 |
| WindowNotificationManager | windownotificationmanager | Window-level notification manager. / 窗口级通知管理器。 |
| CommandBar | commandbar | App bar with primary/secondary commands. / 主要/次要命令栏。 |
| TransitioningContentControl | transitioningcontentcontrol | Content control with transition animations. / 带过渡动画的内容控件。 |
| AdornerLayer | adorner-layer | Overlay layer for visual adorners. / 视觉装饰器覆盖层。 |
semi-avalonia skill (bundled with this plugin) — the authoritative, generated
reference for Semi theme facts: style classes, ControlTheme variants, resource keys,
token values with Light/Dark pairs, and the customization patterns. /
semi-avalonia skill(本插件自带)—— Semi 主题事实的权威生成参考:样式类、
ControlTheme 变体、资源键、token 的 Light/Dark 值与自定义模式。reference/adorner-layer.md (opens in a new tab)reference/autocompletebox.md (opens in a new tab)reference/border.md (opens in a new tab)reference/button.md (opens in a new tab)reference/buttonspinner.md (opens in a new tab)reference/calendar-date-picker.md (opens in a new tab)reference/calendar.md (opens in a new tab)reference/carousel.md (opens in a new tab)reference/carouselpage.md (opens in a new tab)reference/checkbox.md (opens in a new tab)reference/combobox.md (opens in a new tab)reference/commandbar.md (opens in a new tab)reference/contentpage.md (opens in a new tab)reference/contextmenu.md (opens in a new tab)reference/data-validation-errors.md (opens in a new tab)reference/date-picker.md (opens in a new tab)reference/drawerpage.md (opens in a new tab)reference/dropdownbutton.md (opens in a new tab)reference/embeddable-control-root.md (opens in a new tab)reference/expander.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub irihitech/eureka-skills --plugin semi-avalonia2 skills in this plugin
Other plugins' skills for the same job