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

syncfusion-winforms-grid-layout同步融合 winform 网格布局

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

816

周安装

33

GitHub Stars

1

下载量

256
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

提供多种预设网格布局方案,简化常见页面结构的搭建过程。

  • 适用于快速原型开发或标准化产品模块的快速部署需求。
  • AI 助手可根据描述自动生成对应布局骨架,大幅提升前端开发效率。
  • 注意不同分辨率下可能出现单元格溢出问题,需配合自适应策略使用。
  • 推荐结合单元测试验证布局在不同 DPI 设置下的呈现一致性。

SKILL.md

Implementing GridLayout in Windows Forms

GridLayout is a layout manager that automatically arranges child controls in a grid structure containing rows and columns. Use this skill when you need to organize multiple controls in a structured grid format with precise spacing control.

When to Use This Skill

  • Arranging child controls in grid-based layouts
  • Creating uniform row and column structures
  • Controlling horizontal and vertical spacing between controls
  • Dynamically including or excluding controls from layout
  • Programmatic or designer-based control arrangement

Component Overview

GridLayout provides:

  • Grid Structure: Automatic arrangement in rows and columns
  • Spacing Control: Horizontal (HGap) and vertical (VGap) gap configuration
  • Control Participation: Include or exclude controls from layout management
  • Dynamic Configuration: Rows and columns can be set programmatically

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and NuGet setup
  • Creating GridLayout through designer or code
  • Adding child controls to the layout
  • Basic implementation patterns

Rows and Columns Configuration

📄 Read: references/rows-and-columns-configuration.md

  • Setting number of rows and columns
  • Understanding Rows property precedence
  • Auto-sizing behavior based on child control count
  • Grid division strategies

Spacing and Gaps

📄 Read: references/spacing-and-gaps.md

  • Configuring horizontal gaps (HGap)
  • Configuring vertical gaps (VGap)
  • Spacing calculations and effects
  • Common spacing patterns

Managing Child Controls

📄 Read: references/managing-child-controls.md

  • ParticipateInLayout property overview
  • Adding or removing controls from layout
  • Checking control layout participation
  • Rearranging controls at design time

Quick Start Example

using Syncfusion.Windows.Forms.Tools;

// Create GridLayout instance
GridLayout gridLayout1 = new GridLayout();
gridLayout1.ContainerControl = this;

// Configure grid structure
gridLayout1.Rows = 2;
gridLayout1.Columns = 2;

// Set spacing
gridLayout1.HGap = 10;
gridLayout1.VGap = 10;

// Add child controls
ButtonAdv button1 = new ButtonAdv() { Text = "Button 1" };
ButtonAdv button2 = new ButtonAdv() { Text = "Button 2" };

this.Controls.Add(button1);
this.Controls.Add(button2);

// Include controls in layout
gridLayout1.SetParticipateInLayout(button1, true);
gridLayout1.SetParticipateInLayout(button2, true);

Key Configuration Properties

PropertyTypePurpose
RowsintSpecifies number of rows in the grid (dictates columns if set)
ColumnsintSpecifies number of columns (used when Rows is null or negative)
HGapintHorizontal spacing between controls and layout border
VGapintVertical spacing between controls and layout border
ContainerControlControlThe form or container that holds the layout manager

Common Patterns

Pattern 1: Single Column Layout

gridLayout1.Rows = null;  // Let rows auto-calculate
gridLayout1.Columns = 1;

Useful for vertical stacking of controls.

Pattern 2: Grid with Uniform Spacing

gridLayout1.Rows = 3;
gridLayout1.Columns = 3;
gridLayout1.HGap = 5;
gridLayout1.VGap = 5;

Creates 3x3 grid with 5-pixel spacing.

Pattern 3: Conditional Control Visibility

// Hide a control from layout without removing it
gridLayout1.SetParticipateInLayout(controlToHide, false);

Allows dynamic layout adjustments without removing controls.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.73%
按下载量换算94

Claude

29.1%
按下载量换算74

Cursor

17.86%
按下载量换算46

Gemini CLI

10.51%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills