Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-tree-navigatorSynfusion Winforms 树导航器

Agent Skill

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

总安装

624

周安装

26

GitHub Stars

公开资料未说明

下载量

208
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态或协作事项进行整理。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写操作。
  • syncfusion-winforms-tree-navigator 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Tree Navigators (TreeNavigator)

A unique navigation control for Windows Forms that provides in-place tree expansion without consuming additional screen space. Items expand and collapse inline, allowing users to drill down through hierarchical structures by clicking items.

When to Use This Skill

Use this skill when you need to:

  • Space-Efficient Navigation: Display hierarchical navigation that expands in-place without growing the control size
  • Drill-Down Interface: Allow users to navigate from parent to child items with back button navigation
  • File Explorer Style: Create file/folder navigation similar to Windows Explorer breadcrumb navigation
  • Menu Hierarchies: Build collapsible menu systems with parent-child relationships
  • Breadcrumb Navigation: Implement extended mode with stacked headers showing navigation path
  • Settings Navigation: Create category-based settings interfaces with hierarchical organization
  • Document Browser: Navigate through document structures, sections, and subsections
  • TreeView Alternative: Replace standard TreeView with a more compact, focused navigation experience

Component Overview

The TreeNavigator control provides a unique interface for hierarchical navigation:

  • Expands tree structures in-place without taking more screen space
  • Items collapse automatically when navigating to child items
  • Drill down to sub-items by clicking on parent items
  • Navigate back to parent levels using back button
  • Two navigation modes: Default (single back button) and Extended (breadcrumb-style headers)

Key Capabilities:

  • NavigationMode property for selecting navigation style (Default or Extended)
  • Items collection for managing TreeMenuItem objects
  • Header configuration for customizing header appearance and behavior
  • Style property for applying Office 2016/2019 visual themes
  • SelectedItem property for programmatic selection
  • Selection events for tracking and controlling navigation

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

When to read: Starting new implementation, setting up dependencies, first-time usage, basic TreeNavigator creation

Topics covered:

  • Assembly deployment (Syncfusion.Tools.Windows, Syncfusion.Shared.Base)
  • NuGet package installation
  • Namespace requirements (Syncfusion.Windows.Forms.Tools)
  • Adding TreeNavigator via designer (drag-and-drop from toolbox)
  • Adding TreeNavigator programmatically in code
  • Adding TreeMenuItem items to Items collection
  • Header configuration (HeaderText property)
  • Adding items through designer (Smart Tag editor)
  • Complete setup example with code
  • .NET Core workaround for child items

Navigation Modes

📄 Read: references/navigation-modes.md

When to read: Choosing navigation behavior, implementing back button navigation, breadcrumb-style interfaces

Topics covered:

  • NavigationMode property overview
  • Default Mode (single back button, selected item at top)
  • Extended Mode (stacked breadcrumb headers, click any level)
  • Navigation behavior differences between modes
  • Use cases for each mode (simple vs complex hierarchies)
  • Code examples for setting navigation mode
  • Visual comparison of Default vs Extended modes

Appearance and Styling

📄 Read: references/appearance-styling.md

When to read: Customizing visual appearance, applying themes, styling headers, configuring borders and colors

Topics covered:

  • Style property (Office2016Colorful/White/Black/DarkGray, Office2019Colorful, Default)
  • Visual theme application and comparison
  • Header customization (Height, HeaderBackColor, HeaderForeColor, HeaderText, TextBounds)
  • ShowHeader property (hide/show header area)
  • Border customization (BorderColor, BorderThickness)
  • Item spacing (PadY property for gap between items)
  • TreeMenuItem appearance (ItemBackColor, ItemHoverColor, SelectedColor, SelectedItemForeColor)
  • Text alignment (TextAlign: Center, Left, Right)
  • Complete styling examples with code

Tree Menu Items

📄 Read: references/tree-menu-items.md

When to read: Managing items, adding/removing TreeMenuItems, building hierarchies, manipulating item collections

Topics covered:

  • TreeMenuItem class overview and properties
  • Items collection management (Add, Remove, Clear)
  • Adding items programmatically (C# and VB.NET)
  • Adding items via designer (Smart Tag collection editor)
  • Parent-child item relationships and nesting
  • Item properties (Text, ItemBackColor, ItemHoverColor, SelectedColor, SelectedItemForeColor)
  • Building multi-level hierarchies
  • Dynamic item manipulation at runtime
  • Complete examples with nested items

Selection and Events

📄 Read: references/selection-events.md

When to read: Handling selection changes, responding to navigation, programmatically selecting items, preventing selection

Topics covered:

  • SelectedItem property (get/set currently selected item)
  • SelectionChanging event (fires before selection changes, cancellable)
  • SelectionStateChangingEventArgs (NewValue, OldValue, Expanded, Cancel properties)
  • SelectionChanged event (fires after selection changes)
  • SelectionStateChangedEventArgs (SelectedItem, Expanded properties)
  • Event handling examples with code
  • Cancelling selection changes (validation scenarios)
  • Touch scroll behavior (UseTouchScrollBehavior property)
  • Complete event workflow examples

Quick Start Example

File Explorer-Style Navigation with Office2016 Theme

using Syncfusion.Windows.Forms.Tools;

// Create TreeNavigator
TreeNavigator treeNavigator = new TreeNavigator();
treeNavigator.Size = new Size(250, 400);
treeNavigator.Header.HeaderText = "This PC";
treeNavigator.Style = TreeNavigatorStyle.Office2016Colorful;
treeNavigator.NavigationMode = NavigationMode.Extended;

// Add root items
TreeMenuItem desktop = new TreeMenuItem { Text = "Desktop" };
TreeMenuItem documents = new TreeMenuItem { Text = "Documents" };
TreeMenuItem downloads = new TreeMenuItem { Text = "Downloads" };

// Add items to TreeNavigator
treeNavigator.Items.Add(desktop);
treeNavigator.Items.Add(documents);
treeNavigator.Items.Add(downloads);

// Add child items to Documents
TreeMenuItem workFiles = new TreeMenuItem { Text = "Work Files" };
TreeMenuItem personalFiles = new TreeMenuItem { Text = "Personal Files" };
documents.Items.Add(workFiles);
documents.Items.Add(personalFiles);

this.Controls.Add(treeNavigator);
Imports Syncfusion.Windows.Forms.Tools

' Create TreeNavigator
Dim treeNavigator As New TreeNavigator()
treeNavigator.Size = New Size(250, 400)
treeNavigator.Header.HeaderText = "This PC"
treeNavigator.Style = TreeNavigatorStyle.Office2016Colorful
treeNavigator.NavigationMode = NavigationMode.Extended

' Add root items
Dim desktop As New TreeMenuItem With {.Text = "Desktop"}
Dim documents As New TreeMenuItem With {.Text = "Documents"}
Dim downloads As New TreeMenuItem With {.Text = "Downloads"}

' Add items to TreeNavigator
treeNavigator.Items.Add(desktop)
treeNavigator.Items.Add(documents)
treeNavigator.Items.Add(downloads)

' Add child items to Documents
Dim workFiles As New TreeMenuItem With {.Text = "Work Files"}
Dim personalFiles As New TreeMenuItem With {.Text = "Personal Files"}
documents.Items.Add(workFiles)
documents.Items.Add(personalFiles)

Me.Controls.Add(treeNavigator)

Common Patterns

Pattern 1: Settings Navigation with Custom Colors

// Create TreeNavigator for settings
TreeNavigator settingsNav = new TreeNavigator();
settingsNav.Header.HeaderText = "Settings";
settingsNav.Style = TreeNavigatorStyle.Office2016White;
settingsNav.NavigationMode = NavigationMode.Default;

// Customize appearance
settingsNav.Header.HeaderBackColor = Color.FromArgb(0, 120, 215);
settingsNav.Header.HeaderForeColor = Color.White;
settingsNav.ItemBackColor = Color.WhiteSmoke;

// Add settings categories
TreeMenuItem general = new TreeMenuItem { Text = "General" };
TreeMenuItem appearance = new TreeMenuItem { Text = "Appearance" };
TreeMenuItem advanced = new TreeMenuItem { Text = "Advanced" };

settingsNav.Items.Add(general);
settingsNav.Items.Add(appearance);
settingsNav.Items.Add(advanced);

// Add sub-settings
general.Items.Add(new TreeMenuItem { Text = "Language" });
general.Items.Add(new TreeMenuItem { Text = "Startup" });
appearance.Items.Add(new TreeMenuItem { Text = "Theme" });
appearance.Items.Add(new TreeMenuItem { Text = "Colors" });

Pattern 2: Breadcrumb Navigation with Selection Event

// Create breadcrumb-style navigator
TreeNavigator breadcrumbNav = new TreeNavigator();
breadcrumbNav.NavigationMode = NavigationMode.Extended;
breadcrumbNav.Style = TreeNavigatorStyle.Office2016Colorful;

// Handle selection changes
breadcrumbNav.SelectionChanged += (sender, e) => {
    TreeMenuItem selected = e.SelectedItem;
    bool isExpanded = e.Expanded;

    // Update content panel based on selection
    MessageBox.Show($"Navigated to: {selected.Text}\nExpanded: {isExpanded}");
};

// Build hierarchy
TreeMenuItem root = new TreeMenuItem { Text = "Home" };
breadcrumbNav.Items.Add(root);
TreeMenuItem level1 = new TreeMenuItem { Text = "Category" };
TreeMenuItem level2 = new TreeMenuItem { Text = "Subcategory" };
root.Items.Add(level1);
level1.Items.Add(level2);

Pattern 3: Compact Navigation Menu with Item Hover Colors

// Create compact navigation
TreeNavigator compactNav = new TreeNavigator();
compactNav.ShowHeader = false; // Hide header for compact look
compactNav.Style = TreeNavigatorStyle.Office2016DarkGray;
compactNav.PadY = 5; // Reduce spacing between items

// Customize item colors
TreeMenuItem dashboard = new TreeMenuItem
{
    Text = "Dashboard",
    ItemBackColor = Color.FromArgb(45, 45, 48),
    ItemHoverColor = Color.FromArgb(62, 62, 66),
    SelectedColor = Color.FromArgb(0, 122, 204)
};

TreeMenuItem reports = new TreeMenuItem
{
    Text = "Reports",
    ItemBackColor = Color.FromArgb(45, 45, 48),
    ItemHoverColor = Color.FromArgb(62, 62, 66)
};

compactNav.Items.Add(dashboard);
compactNav.Items.Add(reports);

// Add report sub-items
reports.Items.Add(new TreeMenuItem { Text = "Sales" });
reports.Items.Add(new TreeMenuItem { Text = "Inventory" });
reports.Items.Add(new TreeMenuItem { Text = "Analytics" });

Key Properties

PropertyTypeDescription
ItemsCollectionCollection of TreeMenuItem objects that form the navigation hierarchy
NavigationModeNavigationModeNavigation style: Default (back button) or Extended (breadcrumb)
StyleTreeNavigatorStyleVisual theme: Office2016Colorful/White/Black/DarkGray, Office2019Colorful, Default
SelectedItemTreeMenuItemGets or sets the currently selected item in the current hierarchy level
Header.HeaderTextstringText displayed in the header area
Header.HeaderBackColorColorBackground color of the header
Header.HeaderForeColorColorForeground (text) color of the header
Header.HeightintHeight of the header area in pixels
ShowHeaderboolShows or hides the header area (true = visible, false = hidden)
BorderColorColorColor of the control border
BorderThicknessintThickness of the control border in pixels
PadYintVertical spacing (gap) between TreeMenuItem items
ItemBackColorColorBackground color for all TreeMenuItem items (can be overridden per item)
TextAlignTextAlignmentText alignment for items: Center, Left, or Right
UseTouchScrollBehaviorboolEnables touch-friendly scrolling with auto-hide scrollbar

Common Use Cases

  1. File/Folder Browser: Navigate through folder hierarchies like Windows Explorer with back button or breadcrumb navigation
  2. Settings Interface: Organize application settings into categories and subcategories with drill-down navigation
  3. Document Outline: Navigate through document sections, chapters, and subsections
  4. Menu Navigation: Create hierarchical menu systems for complex applications with space constraints
  5. Product Categories: Browse product catalogs with category → subcategory → product navigation
  6. Help System: Organize help topics into categories with easy navigation between topics and back to categories
  7. Data Dashboard: Navigate between dashboard sections, reports, and detailed views
  8. Workflow Steps: Guide users through multi-step workflows with hierarchical organization

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.42%
按下载量换算76

Claude

31.44%
按下载量换算65

Cursor

16.88%
按下载量换算35

Gemini CLI

8.4%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills