Token导航 LogoToken导航

Agent Skill · 前端设计

syncfusion-wpf-navigation-drawer(syncfusion wpf 导航抽屉)

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

syncfusion-wpf-navigation-drawer 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 4,134。

总安装 984周安装 41GitHub Stars 2下载 328核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行整理与分析。通过 npx skills add 命令从指定 GitHub 仓库安装使用。建议确认权限范围和维护状态,避免触发联网或文件读写操作。

syncfusion-wpf-navigation-drawer 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/syncfusion-wpf-navigation-drawer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill sy…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-wpf-navigation-drawer 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-w…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-wpf-navigation-drawer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-wpf-navigation-drawer 需要什么权限?

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

syncfusion-wpf-navigation-drawer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-wpf-navigation-drawer 用的人多吗?

公开数据是累计安装 984 次,近一周安装 41 次,下载 328 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-wpf-navigation-drawer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
syncfusion-wpf-navigation-drawer

syncfusion wpf 导航抽屉 · 本页

9842需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing Syncfusion WPF Navigation Drawer

The WPF Navigation Drawer control is a sidebar navigation component used to create intuitive and efficient navigation menus within applications. It supports compact and expanded display modes, allowing users to switch between them dynamically based on the available screen size. Additionally, the control offers a default mode that enables developers to define a fully custom pane view, providing greater flexibility in designing navigation experiences

When to Use This Skill

Use this skill when user need to:

  • Create sidebar navigation menus in WPF applications
  • Implement collapsible drawer navigation with hamburger menu
  • Build responsive navigation with compact and expanded modes
  • Add hierarchical navigation menu items with icons
  • Implement swipeable side panels
  • Create custom navigation views with headers and footers
  • Handle navigation events and selection
  • Support keyboard navigation in drawer menus
  • Build modern UI navigation patterns in WPF

Component Overview

The Syncfusion WPF Navigation Drawer (SfNavigationDrawer) is a sidebar navigation control that provides:

  • Three Display Modes: Default (collapsible), Compact (icon-only), Expanded (full width)
  • Flexible Positioning: Left, Right, Top, or Bottom placement
  • Built-in Navigation Items: Tab, Button, Header, Separator types with hierarchical support
  • Custom Views: Fully customizable header, content, and footer sections
  • Data Binding: Support for ItemsSource with hierarchical data binding
  • Rich Events: Opening, Opened, Closing, Closed, ItemClicked, ItemExpanded, ItemCollapsed
  • Keyboard Support: Full keyboard navigation (Tab, Arrow keys, Enter, Space)
  • Smooth Animations: SlideOnTop, Push, and Reveal transition effects
  • Responsive Design: Auto-switching between display modes based on available width

Use Cases:

  • Email client navigation (Inbox, Sent, Drafts with nested categories)
  • E-commerce app menus (Products, Cart, Orders with subcategories)
  • Banking app navigation (Accounts, Transfers, Payments)
  • Admin dashboards with multi-level navigation
  • Mobile-style navigation in desktop WPF apps

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md Use when: First-time implementation, setting up the control, understanding basic structure

  • Installation and assembly deployment
  • Creating basic NavigationDrawer in XAML and C#
  • Adding content view and sidebar menu items
  • Setting up navigation items with icons
  • Minimal working example

Display Modes

📄 Read: references/display-modes.md Use when: Choosing between Default, Compact, or Expanded modes, implementing responsive navigation

  • Default mode (collapsible drawer with custom views)
  • Compact mode (narrow icon bar that expands on toggle)
  • Expanded mode (full-width sidebar)
  • Auto display mode switching based on window width
  • CompactModeWidth and ExpandedModeWidth configuration
  • ExpandedModeThresholdWidth for responsive behavior

Populating Data

📄 Read: references/populating-data.md Use when: Adding menu items, binding data sources, creating hierarchical navigation

  • Built-in NavigationItem properties (Header, Icon, Items)
  • ItemsSource data binding
  • Hierarchical data binding with nested items
  • IconTemplate and ItemTemplate customization
  • Different item types: Tab, Button, Header, Separator
  • DisplayMemberPath and IconMemberPath
  • IndentationWidth for sub-items
  • Popup support for sub-items

Custom Views and Customization

📄 Read: references/custom-views.md Use when: Creating custom drawer layouts, positioning drawer, adding animations

  • DrawerHeaderView, DrawerContentView, DrawerFooterView
  • DrawerWidth and DrawerHeight customization
  • Position property (Left, Right, Top, Bottom)
  • Swipe gestures and TouchThreshold
  • Transition animations (SlideOnTop, Push, Reveal)
  • AnimationDuration configuration
  • DrawerBackground customization
  • IsOpen property for programmatic control
  • ToggleDrawer() method

Header and Footer Customization

📄 Read: references/header-and-footer.md Use when: Customizing toggle button, header, or footer sections

  • ToggleButtonContentTemplate and ToggleButtonIconTemplate
  • IsToggleButtonVisible property
  • FooterItems collection
  • HeaderHeight and FooterHeight properties
  • Custom header and footer views in Default mode

Commands and Events

📄 Read: references/commands-and-events.md Use when: Handling drawer state changes, item clicks, navigation events

  • Opening and Opened events (with Cancel support)
  • Closing and Closed events (with Cancel support)
  • ItemClicked event (Compact/Expanded modes only)
  • ItemExpanded and ItemCollapsed events
  • Command binding with Command and CommandParameter
  • DelegateCommand implementation example

Selection Handling

📄 Read: references/handling-selection.md Use when: Managing selected items, tracking navigation state

  • SelectedItem property usage
  • Selection with NavigationItem
  • Selection with custom data objects
  • SelectionBackground customization

Keyboard Support

📄 Read: references/keyboard-support.md Use when: Implementing keyboard navigation, ensuring accessibility

  • Tab key navigation between elements
  • Up/Down arrow keys for item navigation
  • Enter and Space for item selection
  • Focus management

Quick Start Example

Basic Navigation Drawer with Items

<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
    <syncfusion:SfNavigationDrawer x:Name="navigationDrawer"
                                   DisplayMode="Expanded">
        <!-- Navigation Items -->
        <syncfusion:NavigationItem Header="Inbox" IsSelected="True">
            <syncfusion:NavigationItem.Icon>
                <Path Data="M32.032381,16.445429 L25.410999..." Fill="White"/>
            </syncfusion:NavigationItem.Icon>
        </syncfusion:NavigationItem>

        <syncfusion:NavigationItem Header="Sent mail">
            <syncfusion:NavigationItem.Icon>
                <Path Data="M42.128046,6.7269681..." Fill="White"/>
            </syncfusion:NavigationItem.Icon>
        </syncfusion:NavigationItem>

        <syncfusion:NavigationItem Header="Drafts">
            <syncfusion:NavigationItem.Icon>
                <Path Data="M6.9999996,48.353..." Fill="White"/>
            </syncfusion:NavigationItem.Icon>
        </syncfusion:NavigationItem>

        <!-- Main Content -->
        <syncfusion:SfNavigationDrawer.ContentView>
            <Grid>
                <Label Content="Content View"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"/>
            </Grid>
        </syncfusion:SfNavigationDrawer.ContentView>
    </syncfusion:SfNavigationDrawer>
</Window>

Code-behind (C#)

using Syncfusion.UI.Xaml.NavigationDrawer;

// Create navigation drawer
SfNavigationDrawer navigationDrawer = new SfNavigationDrawer();
navigationDrawer.DisplayMode = DisplayMode.Expanded;

// Add items
navigationDrawer.Items.Add(new NavigationItem()
{
    Header = "Inbox",
    Icon = new Path() { Data = Geometry.Parse("M32.032381...") },
    IsSelected = true
});

navigationDrawer.Items.Add(new NavigationItem()
{
    Header = "Sent mail",
    Icon = new Path() { Data = Geometry.Parse("M42.128046...") }
});

// Set content
Label label = new Label { Content = "Content View" };
navigationDrawer.ContentView = label;

Common Patterns

Pattern 1: Responsive Navigation (Auto Mode Switching)

<syncfusion:SfNavigationDrawer DisplayMode="Expanded"
                               AutoChangeDisplayMode="True"
                               ExpandedModeThresholdWidth="700">
    <!-- Items -->
</syncfusion:SfNavigationDrawer>

When to use: Desktop apps that need to adapt to window resizing

Pattern 2: Hierarchical Navigation with Sub-items

<syncfusion:NavigationItem Header="Inbox" IsExpanded="True">
    <syncfusion:NavigationItem.Icon>
        <Path Data="..." Fill="White"/>
    </syncfusion:NavigationItem.Icon>
    <!-- Sub-items -->
    <syncfusion:NavigationItem Header="Primary">
        <syncfusion:NavigationItem.Icon>
            <Path Data="..." Fill="White"/>
        </syncfusion:NavigationItem.Icon>
    </syncfusion:NavigationItem>
    <syncfusion:NavigationItem Header="Social">
        <syncfusion:NavigationItem.Icon>
            <Path Data="..." Fill="White"/>
        </syncfusion:NavigationItem.Icon>
    </syncfusion:NavigationItem>
</syncfusion:NavigationItem>

When to use: Multi-level navigation menus (e.g., email categories, product categories)

Pattern 3: Custom Drawer with Header and Footer

<syncfusion:SfNavigationDrawer DisplayMode="Default" DrawerWidth="300">
    <syncfusion:SfNavigationDrawer.DrawerHeaderView>
        <Grid Background="#31ade9">
            <Label Content="User Profile" />
        </Grid>
    </syncfusion:SfNavigationDrawer.DrawerHeaderView>

    <syncfusion:SfNavigationDrawer.DrawerContentView>
        <ListBox ItemsSource="{Binding MenuItems}"/>
    </syncfusion:SfNavigationDrawer.DrawerContentView>

    <syncfusion:SfNavigationDrawer.DrawerFooterView>
        <Button Content="Logout" />
    </syncfusion:SfNavigationDrawer.DrawerFooterView>

    <syncfusion:SfNavigationDrawer.ContentView>
        <Grid><!-- Main content --></Grid>
    </syncfusion:SfNavigationDrawer.ContentView>
</syncfusion:SfNavigationDrawer>

When to use: Apps needing custom drawer layouts beyond built-in items

Pattern 4: Data Binding with ItemsSource

<syncfusion:SfNavigationDrawer DisplayMode="Compact"
                               ItemsSource="{Binding NavigationItems}"
                               DisplayMemberPath="Title"
                               IconMemberPath="Icon">
</syncfusion:SfNavigationDrawer>

When to use: Dynamic navigation menus from database or API

Key Properties

Essential Properties

PropertyTypeDescription
DisplayModeDisplayModeDefault, Compact, or Expanded
ItemsNavigationItemsCollectionCollection of NavigationItem objects
ContentViewobjectMain content area
IsOpenboolGets/sets drawer open state
SelectedItemobjectCurrently selected navigation item
PositionPositionLeft, Right, Top, Bottom (Default mode)

Display Mode Properties

PropertyTypeDefaultDescription
AutoChangeDisplayModeboolfalseAuto-switch modes based on width
ExpandedModeThresholdWidthdouble1007Width threshold for auto mode switching
CompactModeWidthdouble48Width in compact mode
ExpandedModeWidthdouble320Width in expanded mode

Customization Properties

PropertyTypeDescription
DrawerWidthdoubleDrawer width (Default mode, Left/Right)
DrawerHeightdoubleDrawer height (Default mode, Top/Bottom)
DrawerBackgroundBrushBackground color of drawer
HeaderHeightdoubleHeight of header section
FooterHeightdoubleHeight of footer section
IndentationWidthdoubleHorizontal spacing for sub-items

Animation Properties

PropertyTypeOptions
TransitionTransitionSlideOnTop, Push, Reveal
AnimationDurationTimeSpanDuration of open/close animation
EnableSwipeGestureboolEnable swipe to open/close
TouchThresholddoubleSwipe sensitivity (pixels)

Template Properties

PropertyTypeDescription
ToggleButtonContentTemplateDataTemplateCustomize toggle button content
ToggleButtonIconTemplateDataTemplateCustomize toggle button icon
ItemTemplateDataTemplateTemplate for navigation items
ItemTemplateSelectorDataTemplateSelectorDynamic template selection

Common Use Cases

Use Case 1: Email Client Navigation

Scenario: Multi-level inbox with Primary, Social, Promotions Solution: Use hierarchical NavigationItem with IsExpanded, Compact/Expanded modes Reference: references/populating-data.md

Use Case 2: Admin Dashboard

Scenario: Top-level menu (Dashboard, Users, Settings) with sub-sections Solution: Data binding with ItemsSource, hierarchical data structure Reference: references/populating-data.md

Use Case 3: Mobile-Style App

Scenario: Hamburger menu that slides over content Solution: Default mode with DrawerHeaderView, swipe gestures enabled Reference: references/custom-views.md

Use Case 4: Responsive Desktop App

Scenario: Auto-collapse to compact mode on narrow windows Solution: Expanded mode with AutoChangeDisplayMode=true Reference: references/display-modes.md

Use Case 5: Banking App

Scenario: Accounts, Transfers, Payments with event handling Solution: ItemClicked event, Command binding for navigation Reference: references/commands-and-events.md

Implementation Tips

  1. Choose the Right Display Mode:

- Use Default for mobile-style overlays with custom views - Use Compact for icon-only sidebar that expands to full width - Use Expanded for always-visible full sidebar

  1. Use Built-in Items vs Custom Views:

- Use NavigationItem (Compact/Expanded) for standard navigation menus - Use Custom Views (Default mode) for unique layouts

  1. Optimize Performance:

- Use data binding with ItemsSource for large datasets - Implement ItemTemplateSelector for heterogeneous items - Keep hierarchies shallow (2-3 levels max)

  1. Handle State Properly:

- Use Opening/Closing events to cancel state changes - Store SelectedItem for navigation state restoration - Handle ItemClicked for page navigation

  1. Ensure Accessibility:

- Implement keyboard navigation (already built-in) - Provide meaningful Header text for screen readers - Use sufficient color contrast for SelectionBackground

平台分布

Codex

33.83%
按下载量换算111

Claude

31.99%
按下载量换算105

Cursor

21.63%
按下载量换算71

Gemini CLI

8.95%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills