microsoft/managing-winforms-high-dpi-layout
> Implements WinForms high-DPI fluent layouts using TableLayoutPanel, FlowLayoutPanel, and DPI-aware design patterns. Use when creating responsive form layouts that must scale across different DPI settings, implementing Per Monitor V2 (PerMonitorV2) DPI awareness, working with TableLayoutPanel.RowStyles/ColumnStyles, using FlowLayoutPanel for dynamic layouts, replacing fixed pixel positioning with container-based layout, troubleshooting DPI scaling issues, or structuring nested layout containers. Also triggers for "TableLayoutPanel", "FlowLayoutPanel", "high DPI WinForms", "PerMonitorV2", "DPI aware layout", "responsive WinForms", "scale UI", "AutoScaleMode", and "DPI scaling".
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill managing-winforms-high-dpi-layout
Fluent layout strategies for scalable, DPI-aware WinForms form designs using TableLayoutPanel and FlowLayoutPanel. All layout code shown here must follow the managing-winforms-designer-code skill rules — control configuration belongs in InitializeComponent inside the .Designer.cs file.
Use this skill when:
TableLayoutPanel or FlowLayoutPanelmanaging-winforms-designer-code so Designer serialization rules are checked too.CRITICAL: All control instantiation, property assignment, and layout wiring shown in this skill belongs inside InitializeComponent in the .Designer.cs file. Do NOT extract control configuration into helper methods like CreateDetailsPanel() or SetupLayout() — this breaks the WinForms Designer. See the managing-winforms-designer-code skill for the authoritative rules.
Read Detailed guide for comprehensive patterns, examples, and troubleshooting.
Take microsoft/managing-winforms-high-dpi-layout from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.