Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-navigation-drawerSynfusion Winforms 导航抽屉

Agent Skill

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

总安装

672

周安装

28

GitHub Stars

公开资料未说明

下载量

224
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-navigation-drawer

简介

侧边滑出式导航抽屉组件,提供紧凑的空间内快速通道访问。

  • 适用于功能丰富的专业软件,平衡全局导航与局部操作的矛盾需求。
  • 技能支持手势触发与按钮触发双模式,适配不同用户习惯偏好。
  • 窄屏设备上需谨慎控制抽屉宽度,确保主要内容区域不被过度挤压。
  • 无障碍访问要求必须提供键盘快捷键与 ARIA 标签支持。

SKILL.md

Windows Forms Navigation Drawer

The Syncfusion Windows Forms Navigation Drawer is a sliding panel menu that comes out from the edge of the window, allowing content to be displayed in a hidden panel. It can be shown by swiping from any of the four screen edges or opened programmatically on demand.

When to Use This Skill

Use this skill when you need to:

  • Implement sliding panel menus from screen edges (left, right, top, or bottom)
  • Create hamburger menu navigation with collapsible sidebar panels
  • Build hidden panels that slide in with smooth animations
  • Add drawer-based navigation to Windows Forms applications
  • Configure transition effects (SlideOnTop, Push, Reveal)
  • Customize drawer appearance with built-in Office 2016 themes
  • Handle drawer events (Opening, Closing, Opened, Closed)
  • Toggle drawer visibility programmatically or through user interaction
  • Position navigation panels at different screen edges with configurable animations

Component Overview

Key Features:

  • Four position options: Left, Right, Top, Bottom
  • Three transition types: SlideOnTop, Push, Reveal
  • Built-in themes: Default, Office2016Colorful, Office2016White, Office2016DarkGray, Office2016Black
  • Drawer events: Opening, Closing, Opened, Closed
  • Configurable animation duration
  • Toggle drawer method for programmatic control
  • Header and menu items with image support

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Read this reference when you need to:

  • Install the NavigationDrawer control via NuGet or designer
  • Add the control to a Windows Forms project
  • Create a NavigationDrawer instance programmatically
  • Add header (DrawerHeader) and menu items (DrawerMenuItem)
  • Set up basic drawer dimensions (DrawerWidth, DrawerHeight)
  • Add images to menu items
  • Configure text and image positioning (TextAlign, TextImageRelation)
  • Understand basic sidebar placement

Drawer Features and Configuration

📄 Read: references/drawer-features.md

Read this reference when you need to:

  • Configure ContentView (main view content)
  • Understand DrawerView structure
  • Implement transition types (SlideOnTop, Push, Reveal)
  • Set drawer position (Left, Right, Top, Bottom)
  • Configure drawer dimensions and animation duration
  • Use ToggleDrawer method for programmatic control
  • Understand the differences between transition effects

Customization and Styling

📄 Read: references/customization.md

Read this reference when you need to:

  • Apply built-in themes (Default, Office2016Colorful, Office2016White, Office2016DarkGray, Office2016Black)
  • Customize drawer item colors (DefaultColor, BackColor, HoverColor)
  • Style menu items with custom colors
  • Apply consistent visual themes across the application

Events

📄 Read: references/events.md

Read this reference when you need to:

  • Handle Opening event (when expand transition begins)
  • Handle Closing event (when collapse transition begins)
  • Handle Opened event (when expand transition ends)
  • Handle Closed event (when collapse transition ends)
  • Respond to drawer state changes
  • Cancel drawer operations
  • Implement custom logic during transitions

Advanced Usage

📄 Read: references/advanced-usage.md

Read this reference when you need to:

  • Configure ContentViewContainer with complex controls
  • Integrate RichTextBox or other controls in ContentView
  • Manage dynamic item addition/removal
  • Implement complex item hierarchies
  • Optimize performance for large menus
  • Follow best practices for drawer implementation

Quick Start

Basic Navigation Drawer

using Syncfusion.Windows.Forms.Tools;

// Create NavigationDrawer instance
NavigationDrawer navigationDrawer1 = new NavigationDrawer();
this.Controls.Add(navigationDrawer1);

// Set drawer dimensions
navigationDrawer1.DrawerWidth = this.Width / 4;
navigationDrawer1.DrawerHeight = this.Height;

// Set position and transition
navigationDrawer1.Position = SlidePosition.Left;
navigationDrawer1.Transition = Transition.SlideOnTop;

// Add header
DrawerHeader drawerHeader1 = new DrawerHeader();
drawerHeader1.Text = "Menu";
navigationDrawer1.Items.Add(drawerHeader1);

// Add menu items
DrawerMenuItem menuItem1 = new DrawerMenuItem();
menuItem1.Text = "Home";
menuItem1.Image = Image.FromFile(@"home.png");

DrawerMenuItem menuItem2 = new DrawerMenuItem();
menuItem2.Text = "Settings";
menuItem2.Image = Image.FromFile(@"settings.png");

navigationDrawer1.Items.Add(menuItem1);
navigationDrawer1.Items.Add(menuItem2);

// Add content to ContentView
RichTextBox richTextBox = new RichTextBox();
richTextBox.Text = "Main content area";
navigationDrawer1.ContentViewContainer.Controls.Add(richTextBox);

Common Patterns

Pattern 1: Left Slide Panel with Push Transition

// Create drawer that pushes content when opened
NavigationDrawer drawer = new NavigationDrawer();
drawer.Position = SlidePosition.Left;
drawer.Transition = Transition.Push;
drawer.DrawerWidth = 250;
drawer.DrawerHeight = this.Height;
drawer.AnimationDuration = 150; // milliseconds

this.Controls.Add(drawer);

Pattern 2: Toggle Drawer with Button Click

// Toggle drawer visibility on button click
private void hamburgerButton_Click(object sender, EventArgs e)
{
    navigationDrawer1.ToggleDrawer();
}

Pattern 3: Themed Drawer with Custom Colors

// Apply Office 2016 theme with custom item colors
navigationDrawer1.Style = NavigationDrawerStyle.Office2016Colorful;

// Customize menu item colors
drawerMenuItem1.DefaultColor = System.Drawing.Color.LightBlue;
drawerMenuItem1.HoverColor = System.Drawing.Color.SkyBlue;
drawerMenuItem1.BackColor = System.Drawing.Color.LightBlue;

Pattern 4: Handle Drawer Events

// Subscribe to drawer events
navigationDrawer1.Opening += NavigationDrawer1_Opening;
navigationDrawer1.Opened += NavigationDrawer1_Opened;
navigationDrawer1.Closing += NavigationDrawer1_Closing;
navigationDrawer1.Closed += NavigationDrawer1_Closed;

private void NavigationDrawer1_Opening(object sender, OpeningEventArgs e)
{
    // Logic when drawer starts opening
    Console.WriteLine("Drawer is opening...");
}

private void NavigationDrawer1_Opened(object sender, EventArgs e)
{
    // Logic when drawer is fully open
    Console.WriteLine("Drawer opened");
}

private void NavigationDrawer1_Closing(object sender, CancelEventArgs e)
{
    // Can cancel closing if needed
    // e.Cancel = true;
    Console.WriteLine("Drawer is closing...");
}

private void NavigationDrawer1_Closed(object sender, EventArgs e)
{
    // Logic when drawer is fully closed
    Console.WriteLine("Drawer closed");
}

Pattern 5: Right-Side Drawer with Reveal Transition

// Create drawer that reveals from behind content
NavigationDrawer drawer = new NavigationDrawer();
drawer.Position = SlidePosition.Right;
drawer.Transition = Transition.Reveal;
drawer.DrawerWidth = 300;
drawer.AnimationDuration = 200;

// Add items
DrawerHeader header = new DrawerHeader { Text = "Options" };
drawer.Items.Add(header);

string[] menuItems = { "Profile", "Settings", "Notifications", "Help" };
foreach (string item in menuItems)
{
    DrawerMenuItem menuItem = new DrawerMenuItem { Text = item };
    drawer.Items.Add(menuItem);
}

this.Controls.Add(drawer);

Key Properties

PropertyTypeDescription
PositionSlidePositionDrawer sliding position: Left, Right, Top, Bottom
TransitionTransitionAnimation type: SlideOnTop, Push, Reveal
DrawerWidthintWidth of the drawer panel
DrawerHeightintHeight of the drawer panel
AnimationDurationintDuration in milliseconds for drawer animation
StyleNavigationDrawerStyleVisual theme: Default, Office2016Colorful, etc.
ItemsCollectionCollection of DrawerHeader and DrawerMenuItem objects
ContentViewContainerControlContainer for main content area controls

Key Methods

MethodDescription
ToggleDrawer()Toggles drawer visibility (open ↔ closed)

Key Events

EventDescription
OpeningOccurs when expand transition begins
OpenedOccurs when expand transition ends
ClosingOccurs when collapse transition begins (cancelable)
ClosedOccurs when collapse transition ends

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.12%
按下载量换算74

Claude

29.8%
按下载量换算67

Cursor

21.05%
按下载量换算47

Gemini CLI

10.05%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills