MCPInstall

syncfusion-winforms-flow-layout

Implementing FlowLayout in Windows Forms to automatically arrange child components horizontally or vertically. Use this when working with automatic control layouts, responsive form designs, or dynamic control arrangement. Covers spacing configuration, alignment modes, control constraints, and layout positioning.

Installs
77
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-flow-layout
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads syncfusion-winforms-flow-layout automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Implementing Syncfusion Windows Forms FlowLayout

Master the FlowLayout component to create flexible, automatic control layouts in Windows Forms applications. FlowLayout arranges child components horizontally or vertically based on available space, making it ideal for responsive form design.

When to Use This Skill

Use this skill when you need to:

  • Arrange controls automatically in horizontal or vertical flows
  • Manage spacing between child controls with horizontal and vertical gaps
  • Configure alignment for controls within layout rows or columns
  • Set up constraint-based layouts for complex, resizable forms
  • Control layout direction with reverse flow options
  • Enable auto-sizing of containers based on content
  • Prevent specific controls from participating in the layout
  • Create responsive designs that adapt to container resizing

Component Overview

The FlowLayout is a layout manager that automatically positions child controls in a single-direction flow pattern. Unlike absolute positioning, FlowLayout provides:

  • Automatic arrangement: Controls flow horizontally or vertically with automatic wrapping
  • Flexible spacing: Configure gaps between controls
  • Smart alignment: Center, left/right, or constrained-based positioning
  • Responsive sizing: Auto-height adjustment when controls overflow
  • Constraint system: Fine-grained control over individual control placement

Key Features

  • Layout Modes: Horizontal (default) or vertical arrangement
  • Spacing Control: Separate horizontal (HGap) and vertical (VGap) gaps
  • Auto-Resizing: AutoHeight property adjusts container height automatically
  • Directional Control: ReverseRows reverses the flow direction (RTL/BTL)
  • Alignment Options: Center, Near, Far, or ChildConstraints-based alignment
  • Child Constraints: Per-control HAlign, VAlign, NewLine, and proportional sizing
  • Layout Participation: Selectively include/exclude controls from layout

Documentation Navigation Guide

Getting Started

📄 Read: references/getting-started.md

Learn assembly requirements, setup methods, and basic FlowLayout implementation:

  • Assembly references and package requirements
  • Designer-based and code-based setup approaches
  • Setting ContainerControl property
  • Adding child controls to the layout
  • Selecting layout mode (Horizontal/Vertical)

When to read: Before implementing FlowLayout for the first time


Layout Modes and Direction

📄 Read: references/layout-modes.md

Configure how controls flow and reverse the direction:

  • LayoutMode property (Horizontal vs Vertical)
  • ReverseRows property for right-to-left or bottom-to-top flow
  • ParticipateInLayout method to include/exclude controls dynamically
  • Switching between layout modes at runtime
  • Use cases for each layout mode

When to read: When changing how controls are arranged or need directional control


Spacing and Sizing

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

Manage gaps between controls and container auto-sizing:

  • HGap property for horizontal spacing
  • VGap property for vertical spacing
  • AutoHeight for automatic container height adjustment
  • Container behavior during overflow
  • Responsive layout patterns

When to read: When adjusting control spacing or enabling responsive sizing


Alignment Options

📄 Read: references/alignment-options.md

Configure control alignment and layout strategies:

  • Simple alignment modes (Center, Near, Far)
  • ChildConstraints-based alignment system
  • When to use each alignment approach
  • Switching between alignment types
  • Edge cases and special scenarios

When to read: When centering controls, justifying rows, or using constraint-based layouts


Child Control Constraints

📄 Read: references/child-control-constraints.md

Apply per-control constraints for advanced layout scenarios:

  • HAlign and VAlign for individual control positioning
  • Justify option with space distribution
  • Active property to include/exclude specific controls
  • NewLine property to force row/column breaks
  • ProportionalRowHeight and ProportionalColWidth
  • SetConstraints and GetConstraints methods
  • Complex form layout patterns
  • Rearranging controls programmatically

When to read: When building complex forms with varied control alignment needs


Quick Start Example

// Basic horizontal layout with buttons
using Syncfusion.Windows.Forms.Tools;

public partial class MyForm : Form
{
    private FlowLayout flowLayout1;
    
    public MyForm()
    {
        InitializeComponent();
        
        // Create and configure FlowLayout
        flowLayout1 = new FlowLayout();
        flowLayout1.ContainerControl = this;
        flowLayout1.LayoutMode = FlowLayoutMode.Horizontal;
        flowLayout1.HGap = 10;
        flowLayout1.VGap = 10;
        
        // Create buttons
        Button btn1 = new Button { Text = "Button 1", Size = new Size(80, 30) };
        Button btn2 = new Button { Text = "Button 2", Size = new Size(80, 30) };
        Button btn3 = new Button { Text = "Button 3", Size = new Size(80, 30) };
        
        // Add to form (automatically laid out)
        this.Controls.Add(btn1);
        this.Controls.Add(btn2);
        this.Controls.Add(btn3);
    }
}

Result: Three buttons arranged horizontally with 10-pixel gaps, automatically wrapping to the next row when space is limited.

Common Patterns

Horizontal Button Bar

flowLayout1.LayoutMode = FlowLayoutMode.Horizontal;
flowLayout1.Alignment = FlowAlignment.Near;
flowLayout1.HGap = 5;
flowLayout1.VGap = 5;

Vertical Control List

flowLayout1.LayoutMode = FlowLayoutMode.Vertical;
flowLayout1.Alignment = FlowAlignment.Center;
flowLayout1.HGap = 10;
flowLayout1.VGap = 5;

Responsive Form Layout

flowLayout1.Alignment = FlowAlignment.ChildConstraints;
flowLayout1.AutoHeight = true;
// Set per-control constraints using SetConstraints()

Right-to-Left Flow

flowLayout1.ReverseRows = true;
flowLayout1.LayoutMode = FlowLayoutMode.Horizontal;

Key Properties Reference

PropertyTypePurpose
LayoutModeFlowLayoutModeHorizontal or Vertical arrangement
AlignmentFlowAlignmentCenter, Near, Far, or ChildConstraints
HGapintHorizontal spacing between controls
VGapintVertical spacing between controls
AutoHeightboolEnable automatic container height adjustment
ReverseRowsboolReverse flow direction (RTL/BTL)
ContainerControlControlThe container holding child controls

Common Use Cases

Data Entry Forms

Arrange input fields, labels, and buttons with automatic wrapping and constraint-based alignment for responsive form layouts.

Tool Button Bars

Create dynamic button collections that wrap intelligently as window size changes.

Option Panels

Organize checkboxes and radio buttons vertically with auto-sizing.

Responsive Dashboards

Combine FlowLayout with panels to build flexible dashboard layouts that resize content intelligently.

Configuration Dialogs

Build dialog forms with complex alignment requirements using constraint-based layouts.


Next: Choose a reference above based on your needs, or start with Getting Started for first-time implementation.

FAQ

What does the syncfusion-winforms-flow-layout skill do?

Implementing FlowLayout in Windows Forms to automatically arrange child components horizontally or vertically. Use this when working with automatic control layouts, responsive form designs, or dynamic control arrangement. Covers spacing configuration, alignment modes, control constraints, and layout positioning.

How do I install syncfusion-winforms-flow-layout?

Run npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-flow-layout in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/syncfusion-winforms-flow-layout/ (personal) or .claude/skills/syncfusion-winforms-flow-layout/ (project).

Which AI agents can use syncfusion-winforms-flow-layout?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is syncfusion-winforms-flow-layout safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains syncfusion-winforms-flow-layout?

It is published by syncfusion in syncfusion/winforms-ui-components-skills. It has 77 recorded installs.

More from syncfusion/winforms-ui-components-skills

View all →

syncfusion-winforms-datagrid

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-button

syncfusion/winforms-ui-components-skills

Guide developers to implement and customize the Syncfusion Windows Forms SfButton control for desktop applications. Use this when creating interactive buttons with text, images, styling, and theming in Windows Forms applications. Covers implementation, customization, and interaction handling.

syncfusion-winforms-common

syncfusion/winforms-ui-components-skills

Comprehensive guide for implementing Syncfusion Essential Studio Windows Forms (WinForms) controls in desktop applications. Use this skill when working with Syncfusion WinForms components or Essential Studio WinForms. Covers WinForms installation, localization, high DPI support, and .NET Core compatibility. Helps with adding controls, registering license keys, and troubleshooting WinForms component issues.

syncfusion-winforms-contextmenustrip

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-docking-manager

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

syncfusion-winforms-licensing

syncfusion/winforms-ui-components-skills

Open the skill to read its SKILL.md instructions.

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs