Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-winui-ribbonSynfusion Winui 功能区

Agent Skill

syncfusion-winui-ribbon 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

599

周安装

24

GitHub Stars

公开资料未说明

下载量

194
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

Synfusion WinUI 功能区控件,模拟 Office 风格工具栏布局。

  • 适用于复杂应用界面设计,支持 Codex、Claude 等宿主环境。
  • 通过 GitHub 仓库安装,使用标准 npx 命令添加技能。
  • 使用前应评估其对内存和性能的影响及权限需求。
  • 建议参考原始文档了解选项卡切换与命令绑定机制。

SKILL.md

Implementing Syncfusion WinUI Ribbons

Comprehensive guide for implementing Syncfusion's WinUI Ribbon (SfRibbon) control - a command bar that organizes application commands and tools into tabbed groups, providing a Microsoft Office-style interface for WinUI 3 desktop applications.

When to Use This Skill

Use this skill when the user needs to:

  • Implement a Ribbon control in a WinUI 3 application
  • Organize application commands using tabs and groups (like Microsoft Office)
  • Add ribbon buttons, dropdowns, split buttons, or toggle buttons
  • Create a backstage menu for settings and options
  • Implement Quick Access Toolbar (QAT) for frequently-used commands
  • Enable simplified/compact ribbon layout for space-saving UI
  • Add ribbon gallery controls for styles and templates
  • Configure keyboard shortcuts with KeyTip
  • Implement enhanced tooltips with ScreenTip
  • Handle ribbon resizing and responsive behavior
  • Host custom controls (ComboBox, CheckBox, etc.) in ribbon
  • Customize ribbon appearance with themes and templates
  • Create contextual tabs that appear based on user selection

Component Overview

The Syncfusion WinUI Ribbon control provides a comprehensive command organization system for modern Windows applications. It organizes commands hierarchically:

Hierarchy: Ribbon → Tabs → Groups → Items (Buttons, Dropdowns, etc.)

Key Capabilities:

  • Tab & Group Organization: Categorize commands logically
  • Multiple Button Types: Regular, Dropdown, Split, Toggle buttons
  • Backstage View: Separate view for application settings (like File menu in Office)
  • Simplified Layout: Compact single-line mode with overflow menu
  • Ribbon Gallery: Display collections of styles/templates
  • Quick Access Toolbar: User-customizable toolbar for frequent commands
  • Keyboard Navigation: KeyTip support for keyboard shortcuts
  • Enhanced Tooltips: ScreenTip with rich content
  • Responsive Design: Automatic resizing and item prioritization
  • Custom Controls: Host any WinUI control in ribbon groups

Package: Syncfusion.Ribbon.WinUI Namespace: Syncfusion.UI.Xaml.Ribbon Main Control: SfRibbon

Documentation and Navigation Guide

🚀 Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Namespace import and initialization
  • Creating your first ribbon with basic tabs
  • Adding ribbon to WinUI application
  • License configuration
  • Minimal working example

📑 Tabs and Groups

📄 Read: references/tabs-and-groups.md

  • Creating and configuring RibbonTabs
  • Organizing commands with RibbonGroups
  • Tab selection and navigation
  • Contextual tab groups (conditional tabs)
  • Tab appearance customization
  • SelectFirstTabOnVisible behavior

🔘 Ribbon Items

📄 Read: references/ribbon-items.md

  • RibbonButton (standard button)
  • RibbonDropDownButton (dropdown menu)
  • RibbonSplitButton (click + dropdown)
  • RibbonToggleButton (on/off states)
  • Item sizing modes (Small, Normal, Large)
  • Icon types and configuration
  • RibbonComboBox in ribbon
  • Hosting custom controls with RibbonItemHost
  • Group launcher button

🎭 Backstage

📄 Read: references/backstage.md

  • RibbonBackstage overview
  • BackstageView control setup
  • Creating custom backstage layouts
  • Settings and options panels
  • Backstage navigation patterns
  • Exit backstage handling

⚡ Quick Access Toolbar

📄 Read: references/quick-access-toolbar.md

  • QAT overview and purpose
  • Adding commands to QAT
  • Customization and positioning
  • Common QAT patterns (Save, Undo, Redo)

📐 Simplified Layout

📄 Read: references/simplified-layout.md

  • Simplified layout overview (single-line compact mode)
  • LayoutModeOptions and ActiveLayoutMode
  • Switching between Normal and Simplified
  • DisplayOptions per item (Normal, Simplified, OverflowMenu)
  • Overflow menu behavior
  • Compact UI design patterns

🎨 Advanced Features

📄 Read: references/advanced-features.md

  • RibbonGallery for style collections
  • KeyTip for keyboard navigation
  • ScreenTip for enhanced tooltips
  • Ribbon resizing and compact sizing
  • Responsive ribbon design
  • Window resize handling

🖌️ UI Customization

📄 Read: references/ui-customization.md

  • RightPane configuration
  • Theme customization
  • Template overrides
  • Custom styling
  • Accessibility considerations
  • Icon customization

Quick Start Example

Basic Ribbon with Tabs and Buttons

<Page x:Class="MyApp.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:ribbon="using:Syncfusion.UI.Xaml.Ribbon">

    <Grid x:Name="rootGrid">
        <ribbon:SfRibbon x:Name="sfRibbon">
            <!-- Tabs -->
            <ribbon:SfRibbon.Tabs>
                <ribbon:RibbonTab Header="Home">
                    <!-- Clipboard Group -->
                    <ribbon:RibbonGroup Header="Clipboard">
                        <ribbon:RibbonSplitButton Content="Paste"
                                                  Icon="Paste"
                                                  AllowedSizeModes="Large">
                            <ribbon:RibbonSplitButton.Flyout>
                                <MenuFlyout>
                                    <MenuFlyoutItem Text="Paste" />
                                    <MenuFlyoutItem Text="Paste Special" />
                                </MenuFlyout>
                            </ribbon:RibbonSplitButton.Flyout>
                        </ribbon:RibbonSplitButton>
                        <ribbon:RibbonButton Content="Cut"
                                           Icon="Cut"
                                           AllowedSizeModes="Normal" />
                        <ribbon:RibbonButton Content="Copy"
                                           Icon="Copy"
                                           AllowedSizeModes="Normal" />
                    </ribbon:RibbonGroup>

                    <!-- Font Group -->
                    <ribbon:RibbonGroup Header="Font">
                        <ribbon:RibbonToggleButton Content="Bold"
                                                   AllowedSizeModes="Normal">
                            <ribbon:RibbonToggleButton.Icon>
                                <SymbolIcon Symbol="Bold" />
                            </ribbon:RibbonToggleButton.Icon>
                        </ribbon:RibbonToggleButton>
                        <ribbon:RibbonToggleButton Content="Italic"
                                                   AllowedSizeModes="Normal">
                            <ribbon:RibbonToggleButton.Icon>
                                <SymbolIcon Symbol="Italic" />
                            </ribbon:RibbonToggleButton.Icon>
                        </ribbon:RibbonToggleButton>
                    </ribbon:RibbonGroup>
                </ribbon:RibbonTab>

                <ribbon:RibbonTab Header="Insert">
                    <ribbon:RibbonGroup Header="Illustrations">
                        <ribbon:RibbonButton Content="Pictures"
                                           AllowedSizeModes="Large">
                            <ribbon:RibbonButton.Icon>
                                <SymbolIcon Symbol="Pictures" />
                            </ribbon:RibbonButton.Icon>
                        </ribbon:RibbonButton>
                    </ribbon:RibbonGroup>
                </ribbon:RibbonTab>

                <ribbon:RibbonTab Header="View" />
            </ribbon:SfRibbon.Tabs>
        </ribbon:SfRibbon>
    </Grid>
</Page>

C# Code-behind:

using Syncfusion.UI.Xaml.Ribbon;

namespace MyApp
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();

            // Optionally configure ribbon programmatically
            sfRibbon.SelectedIndex = 0; // Select Home tab
        }
    }
}

Common Patterns

Pattern 1: Ribbon with Backstage

<ribbon:SfRibbon x:Name="sfRibbon">
    <!-- Backstage Menu -->
    <ribbon:SfRibbon.Backstage>
        <ribbon:RibbonBackstage>
            <ribbon:BackstageView>
                <ribbon:BackstageView.Items>
                    <ribbon:BackstageViewItemHeader Header="New" />
                    <ribbon:BackstageViewItemHeader Header="Open" />
                    <ribbon:BackstageViewItemHeader Header="Save" />
                    <ribbon:BackstageViewTabItem Header="Settings">
                        <StackPanel Margin="20">
                            <TextBlock Text="Application Settings"
                                     FontSize="20"
                                     FontWeight="SemiBold" />
                            <!-- Settings content -->
                        </StackPanel>
                    </ribbon:BackstageViewTabItem>
                </ribbon:BackstageView.Items>
            </ribbon:BackstageView>
        </ribbon:RibbonBackstage>
    </ribbon:SfRibbon.Backstage>

    <!-- Tabs... -->
</ribbon:SfRibbon>

Pattern 2: Simplified Layout with Overflow

<ribbon:SfRibbon x:Name="sfRibbon"
                 LayoutModeOptions="Normal,Simplified"
                 ActiveLayoutMode="Simplified">
    <ribbon:SfRibbon.Tabs>
        <ribbon:RibbonTab Header="Home">
            <ribbon:RibbonGroup Header="Actions">
                <!-- Always visible in simplified -->
                <ribbon:RibbonButton Content="Save"
                                   Icon="Save"
                                   DisplayOptions="Normal,Simplified" />

                <!-- Only in overflow menu when simplified -->
                <ribbon:RibbonButton Content="Export"
                                   Icon="Export"
                                   DisplayOptions="Normal,OverflowMenu" />
            </ribbon:RibbonGroup>
        </ribbon:RibbonTab>
    </ribbon:SfRibbon.Tabs>
</ribbon:SfRibbon>

Pattern 3: Contextual Tabs

<ribbon:SfRibbon x:Name="sfRibbon">
    <!-- Regular Tabs -->
    <ribbon:SfRibbon.Tabs>
        <ribbon:RibbonTab Header="Home">
            <!-- Content -->
        </ribbon:RibbonTab>
    </ribbon:SfRibbon.Tabs>

    <!-- Contextual Tab Groups (shown conditionally) -->
    <ribbon:SfRibbon.ContextualTabGroups>
        <ribbon:RibbonContextualTabGroup x:Name="ImageTools"
                                        Visibility="Collapsed"
                                        SelectFirstTabOnVisible="True"
                                        Background="LightBlue">
            <ribbon:RibbonContextualTabGroup.Tabs>
                <ribbon:RibbonTab Header="Picture Format">
                    <ribbon:RibbonGroup Header="Adjust">
                        <ribbon:RibbonButton Content="Brightness" Icon="Brightness" />
                        <ribbon:RibbonButton Content="Contrast" Icon="Contrast" />
                    </ribbon:RibbonGroup>
                </ribbon:RibbonTab>
            </ribbon:RibbonContextualTabGroup.Tabs>
        </ribbon:RibbonContextualTabGroup>
    </ribbon:SfRibbon.ContextualTabGroups>
</ribbon:SfRibbon>
// Show contextual tabs when image is selected
private void OnImageSelected(object sender, RoutedEventArgs e)
{
    ImageTools.Visibility = Visibility.Visible;
}

private void OnImageDeselected(object sender, RoutedEventArgs e)
{
    ImageTools.Visibility = Visibility.Collapsed;
}

Pattern 4: Hosting Custom Controls

<ribbon:RibbonGroup Header="Font">
    <ribbon:RibbonItemHost Margin="0,12,0,0">
        <ribbon:RibbonItemHost.ItemTemplate>
            <ComboBox x:Name="FontComboBox"
                      Width="150"
                      PlaceholderText="Select Font">
                <ComboBoxItem Content="Calibri" IsSelected="True" />
                <ComboBoxItem Content="Arial" />
                <ComboBoxItem Content="Segoe UI" />
            </ComboBox>
        </ribbon:RibbonItemHost.ItemTemplate>
    </ribbon:RibbonItemHost>
</ribbon:RibbonGroup>

Key Properties

SfRibbon

PropertyTypeDescription
TabsRibbonTabCollectionCollection of ribbon tabs
ContextualTabGroupsRibbonContextualTabGroupCollectionConditional tab groups
BackstageRibbonBackstageBackstage menu (File menu)
RightPaneobjectContent for right pane area
SelectedTabRibbonTabCurrently selected tab
SelectedIndexintIndex of selected tab
LayoutModeOptionsLayoutModeOptionsAvailable layout modes (Normal, Simplified)
ActiveLayoutModeLayoutModeCurrent active layout (Normal or Simplified)

RibbonTab

PropertyTypeDescription
HeaderobjectTab header text/content
ItemsRibbonGroupCollectionCollection of ribbon groups

RibbonGroup

PropertyTypeDescription
HeaderobjectGroup header text
ItemsRibbonItemCollectionCollection of ribbon items
ShowLauncherButtonboolShow launcher button in group
LauncherButtonClickeventLauncher button click event
LauncherButtonCommandICommandLauncher button command

RibbonButton (and variants)

PropertyTypeDescription
ContentobjectButton label text
IconIconElementButton icon
AllowedSizeModesRibbonElementSizeModesAllowed sizes (Small, Normal, Large)
DisplayOptionsDisplayOptionsLayout visibility (Normal, Simplified, OverflowMenu)
CommandICommandButton command
FlyoutFlyoutBaseFlyout for dropdown/split buttons

Common Use Cases

Use Case 1: Document Editor Ribbon

Create a Word/Excel-style ribbon with formatting commands:

Use Case 2: Application Settings Backstage

Implement a settings panel in backstage view:

Use Case 3: Compact Ribbon for Small Windows

Enable simplified layout for space-constrained UIs:

Use Case 4: Style Gallery

Add a ribbon gallery for document styles/themes:

Use Case 5: Keyboard-Accessible Commands

Implement KeyTip for keyboard navigation:

Use Case 6: Responsive Ribbon Design

Handle window resizing gracefully:

Implementation Workflow

  1. Install Package: Add Syncfusion.Ribbon.WinUI NuGet package
  2. Basic Setup: Create SfRibbon with tabs and groups → references/getting-started.md
  3. Add Commands: Implement ribbon buttons and controls → references/ribbon-items.md
  4. Organization: Structure tabs logically by feature area → references/tabs-and-groups.md
  5. Backstage (Optional): Add settings/options menu → references/backstage.md
  6. Optimize Layout: Enable simplified mode if needed → references/simplified-layout.md
  7. Enhance UX: Add gallery, KeyTip, ScreenTip → references/advanced-features.md
  8. Customize: Apply themes and templates → references/ui-customization.md

Related Skills

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.02%
按下载量换算68

Claude

31.18%
按下载量换算60

Cursor

21.53%
按下载量换算42

Gemini CLI

9.63%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills