Token导航 LogoToken导航TokenDH.com
研究检索可写文件github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-ribbon同步融合 WPF 功能区

Agent Skill

syncfusion-wpf-ribbon 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,028

周安装

42

GitHub Stars

2

下载量

333
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-wpf-ribbon(同步融合 WPF 功能区)
来源仓库:https://github.com/syncfusion/wpf-ui-components-skills
仓库路径:skills/syncfusion-wpf-ribbon
安装命令:
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-ribbon
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-ribbon

简介

用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息筛选与匹配。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-wpf-ribbon 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF Ribbon

When to Use This Skill

Use this skill when you need to:

  • Create a ribbon interface in a WPF desktop application
  • Add ribbon tabs, groups, and controls (buttons, menus, galleries, inputs)
  • Configure application menus or backstage views
  • Customize ribbon appearance, styling, or layout
  • Implement state persistence or multi-document scenarios
  • Add accessibility features or touch support
  • Handle ribbon item interactions and data binding

Component Overview

The Syncfusion WPF Ribbon is a comprehensive navigation component that provides a modern, Microsoft Office-style ribbon interface for desktop applications. It organizes commands into tabs and groups, reducing UI clutter while making features discoverable.

Key capabilities:

  • Tab-based command organization with groups and columns
  • Built-in ribbon controls: buttons, menus, galleries, text inputs, checkboxes, radio buttons
  • Application menu and backstage view support
  • State persistence across application sessions
  • Multi-document ribbon merge for complex scenarios
  • Full keyboard and touch accessibility
  • Customizable styling and responsive layout

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Basic ribbon creation in XAML
  • Namespace declarations and project setup
  • Adding your first tab and group
  • Hooking up basic click events

Ribbon Structure & Layout

📄 Read: references/ribbon-structure.md

  • Creating tabs and managing tab collections
  • Organizing controls into groups and columns
  • Application menu configuration
  • Backstage view setup
  • RibbonItemHost for custom hosting

Ribbon Buttons & Menus

📄 Read: references/ribbon-buttons.md

  • Standard RibbonButton implementation
  • SplitButton for split commands
  • MenuButton for quick menus
  • MenuItem hierarchy and nested menus
  • Command binding and click handlers

Ribbon Input Controls

📄 Read: references/ribbon-inputs.md

  • RibbonCheckBox and RibbonRadioButton
  • RibbonTextBox for text input
  • RibbonComboBox and RibbonListBox
  • RibbonSeparator for visual grouping
  • Data binding to ribbon inputs

Ribbon Gallery Control

📄 Read: references/ribbon-gallery.md

  • Gallery setup and item templates
  • Visual item rendering
  • Selection and item selection events
  • Filtering and searching galleries
  • Gallery groups for categorized items

Customization & Styling

📄 Read: references/ribbon-customization.md

  • StatusBar configuration below the ribbon
  • Styling and template customization
  • Theming and color schemes
  • Size groups and layout compression
  • Responsive ribbon behavior

Advanced Features

📄 Read: references/ribbon-advanced.md

  • Ribbon merge for multi-document interfaces
  • State persistence (saving/loading ribbon state)
  • Dynamic tab and group creation
  • Ribbon reduce layout (auto-collapsing)
  • Programmatic ribbon manipulation

Accessibility & Touch

📄 Read: references/ribbon-accessibility.md

  • Keyboard navigation and shortcuts
  • Tooltip support for discoverability
  • Touch input handling
  • Screen reader compatibility
  • Accessibility best practices

Patterns & Best Practices

📄 Read: references/ribbon-patterns.md

  • Common ribbon UI patterns
  • When to use application menu vs tabs
  • Ribbon organization principles
  • Performance considerations
  • Design best practices

Troubleshooting

📄 Read: references/troubleshooting.md

  • Button and menu issues
  • Input control issues
  • General setup problems

Quick Start Example

Here's a minimal WPF ribbon setup to get started:

<!-- MainWindow.xaml -->
<syncfusion:RibbonWindow x:Class="RibbonApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
        Title="Ribbon Application" Height="600" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- Ribbon Control -->
        <syncfusion:Ribbon Grid.Row="0">
            <!-- Home Tab -->
            <syncfusion:RibbonTab Caption="Home">
                <!-- File Operations Bar -->
                <syncfusion:RibbonBar Header="File Operations">
                    <syncfusion:RibbonButton Label="New"
                                             SmallIcon="Images/new.png"
                                             Click="OnNewClick" />
                    <syncfusion:RibbonButton Label="Open"
                                             SmallIcon="Images/open.png"
                                             Click="OnOpenClick" />
                    <syncfusion:RibbonButton Label="Save"
                                             SmallIcon="Images/save.png"
                                             Click="OnSaveClick" />
                </syncfusion:RibbonBar>

                <!-- Formatting Bar -->
                <syncfusion:RibbonBar Header="Formatting">
                    <syncfusion:RibbonComboBox Label="Font">
                        <syncfusion:RibbonComboBoxItem Content="Arial" />
                        <syncfusion:RibbonComboBoxItem Content="Times New Roman" />
                        <syncfusion:RibbonComboBoxItem Content="Courier New" />
                    </syncfusion:RibbonComboBox>
                </syncfusion:RibbonBar>
            </syncfusion:RibbonTab>

            <!-- Edit Tab -->
            <syncfusion:RibbonTab Caption="Edit">
                <syncfusion:RibbonBar Header="Clipboard">
                    <syncfusion:RibbonButton Label="Cut" Click="OnCutClick" />
                    <syncfusion:RibbonButton Label="Copy" Click="OnCopyClick" />
                    <syncfusion:RibbonButton Label="Paste" Click="OnPasteClick" />
                </syncfusion:RibbonBar>
            </syncfusion:RibbonTab>
        </syncfusion:Ribbon>

        <!-- Main Content Area -->
        <TextBox Grid.Row="1" AcceptsReturn="True" />
        <StatusBar Grid.Row="2" Height="30" />
    </Grid>
</syncfusion:RibbonWindow>
// MainWindow.xaml.cs
using Syncfusion.Windows.Tools.Controls;

public partial class MainWindow : RibbonWindow
{
    public MainWindow()
    {
        InitializeComponent();
    }

    private void OnNewClick(object sender, EventArgs e)
    {
        // Handle new document
    }

    private void OnOpenClick(object sender, EventArgs e)
    {
        // Handle open file
    }

    private void OnSaveClick(object sender, EventArgs e)
    {
        // Handle save file
    }
}

Common Patterns

Pattern 1: Ribbon with Application Menu

Create a File menu accessible via the top-left menu button:

<syncfusion:Ribbon>
    <syncfusion:Ribbon.ApplicationMenu>
        <syncfusion:ApplicationMenu>
            <syncfusion:MenuItem Header="New" />
            <syncfusion:MenuItem Header="Open" />
            <syncfusion:MenuItem Header="Save" />
            <syncfusion:MenuItemSeparator />
            <syncfusion:MenuItem Header="Exit" />
        </syncfusion:ApplicationMenu>
    </syncfusion:Ribbon.ApplicationMenu>

    <syncfusion:RibbonTab Caption="Home">
        <!-- Tab content -->
    </syncfusion:RibbonTab>
</syncfusion:Ribbon>

Pattern 2: Tab with Multiple Bars

Organize commands into logical groups within a tab:

<syncfusion:RibbonTab Caption="Tools">
    <syncfusion:RibbonBar Header="Analysis">
        <syncfusion:RibbonButton Label="Chart" />
        <syncfusion:RibbonButton Label="Graph" />
    </syncfusion:RibbonBar>

    <syncfusion:RibbonBar Header="Data">
        <syncfusion:RibbonButton Label="Sort" />
        <syncfusion:RibbonButton Label="Filter" />
    </syncfusion:RibbonBar>
</syncfusion:RibbonTab>

Pattern 3: Split Button with Dropdown

Create a button with a dropdown menu for related commands:

<syncfusion:SplitButton Label="Format">
    <syncfusion:RibbonMenuItem Header="Bold" />
    <syncfusion:RibbonMenuItem Header="Italic" />
    <syncfusion:RibbonMenuItem Header="Underline" />
</syncfusion:SplitButton>

Pattern 4: Command Binding with MVVM

Bind ribbon buttons to view model commands:

<syncfusion:RibbonButton Label="Save"
                         Command="{Binding SaveCommand}"
                         CommandParameter="All" />

Key Props Reference

Ribbon

  • ApplicationMenu - Top-left menu content
  • BackStage - Backstage panel for file operations
  • QuickAccessToolBar - Quick Access Toolbar configuration
  • AutoPersist - Enable automatic state persistence
  • SaveRibbonState() / LoadRibbonState() - Save and load ribbon state

RibbonTab

  • Caption - Tab label (use Caption instead of Header)
  • IsVisible - Show/hide tab dynamically

RibbonBar

  • Header - Bar label (replaces RibbonGroup)
  • DialogLauncherCommand - Dialog launcher for advanced options

RibbonButton / SplitButton

  • Label - Button text
  • SmallIcon / MediumIcon / LargeIcon - Button images (use instead of Icon)
  • Click / Command - Event or command binding
  • SizeForm - Size variation (Large, Medium, Small, ExtraSmall)
  • IsCheckable - Toggle button behavior

RibbonComboBox / RibbonListBox

  • Label - Control label
  • SelectedItem - Currently selected value
  • ItemsSource - Data binding source
  • SelectionChanged - Selection event

RibbonTextBox

  • Text - Text value (not Label)
  • Width - Control width

RibbonCheckBox / RibbonRadioButton

  • Content - Control label (not Label)
  • IsChecked - Checked state
  • GroupName - Radio button grouping

RibbonGallery

  • ItemsSource - Gallery items
  • ItemTemplate - Visual template for items
  • ItemSelectionChangedCommand - Selection command

Common Use Cases

Use Case 1: Text Editor Application Create a ribbon with standard formatting commands (Font, Size, Bold, Italic, Underline, Alignment). See getting-started.md for setup.

Use Case 2: Data Analysis Tool Organize analysis, charting, and export features into separate tabs with galleries for chart types. See ribbon-gallery.md.

Use Case 3: Multi-Document Editor Use ribbon merge to share common commands while allowing document-specific commands. See ribbon-advanced.md.

Use Case 4: Office-Style Application Implement application menu for file operations, backstage view for settings, and contextual tabs. See ribbon-structure.md.


Next Steps:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.61%
按下载量换算122

Claude

32.04%
按下载量换算107

Cursor

16.48%
按下载量换算55

Gemini CLI

8.57%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills