warptoolkit-containers-layout

Implements WarpToolkit.WinForms container and layout controls in WinForms applications.

1|1|Updated Jun 12, 2022
One-click install
npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-containers-layout-klausloeffelmann
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: warptoolkit-containers-layout
Source: https://github.com/KlausLoeffelmann/WinFormsDevTools/tree/main/.github/skills/WARP-Containers-Layout
Command: npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-containers-layout-klausloeffelmann

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires WarpToolkit.WinForms.

What problem does it solve? Developers using the WarpToolkit.WinForms NuGet package lack verified API references for its container and layout controls, leading to incorrect Designer code, broken layouts, and misuse of members like AddTab or TransparencyStyle. ## Core Features & Use Cases - FluentTabControl: Add tabs via AddTab with one UserControl per tab, track CurrentTabIndex, and handle TabChanged events, with strict rules against calling AddTab in InitializeComponent. - AdornerPanel & AdornerTableLayoutPanel: Apply bordered adornments, per-cell styles via AdornerCellStyle, and error signaling with SignalErrorAsync for validation feedback. - TransparentPanel: Configure click-through, sneeze-guard, or interactive overlays using the TransparencyStyle enum. - Use Case: When building a settings dialog with tabbed UserControls and a validated input grid, use this Skill to generate Designer-safe initialization code and runtime wiring that respects DarkMode and High-DPI behavior. ## Quick Start Use the warptoolkit-containers-layout skill to add a FluentTabControl with two UserControl tabs and an AdornerTableLayoutPanel input form to my WinForms dialog.

Frequently Asked Questions about warptoolkit-containers-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add tabs to FluentTabControl in WinForms?▼

Call AddTab with a title string and a ContainerControl, intended as one UserControl per tab, from regular code such as OnLoad. Never call AddTab from InitializeComponent because the Designer parser cannot round-trip the runtime state it creates.

How to show a validation error border on a WinForms panel?▼

Use AdornerPanel and call SignalErrorAsync to flash the error border, then ResetSignal to clear it. Configure BorderStyle, BorderThickness, BorderColor, and ErrorSignalingDuration to control the appearance and timing.

Does AdornerTableLayoutPanel support per-cell border styles?▼

Yes, AdornerTableLayoutPanel paints per-cell adornments using AdornerCellStyle records chosen by control type, such as DefaultTextBoxStyle or DefaultButtonStyle. Handle the CreateDefaultStyleInstance event to override the style for individual controls.

Why does changing TransparentPanel TransparencyStyle recreate the handle?▼

TransparencyStyle affects the overridden CreateParams, which add WS_EX_TRANSPARENT or WS_DISABLED window styles, so changing it forces window handle recreation at runtime. Avoid toggling it on a hot path and keep PassThrough as the enum zero value.

Can I use these WarpToolkit controls with DarkMode and High-DPI?▼

Yes, FluentTabControl's header renderer and AdornerCellStyle's default border color react to Application.IsDarkModeEnabled on .NET 9 and later automatically. Host the controls in a Form or UserControl with AutoScaleMode.Font for proper DPI scaling.