Skills

Winforms

Build, maintain, or modernize Windows Forms applications with practical guidance on...

Install

npx skills add managedcode/dotnet-skills --skill winforms -g -a claude-code -y
Category
Design
Updated
6d ago
License
MIT
Context cost
Lightabout 1,090 tokens
Runs scripts
No, instructions only

What it does

Build, maintain, or modernize Windows Forms applications with practical guidance on designer-driven UI, event handling, data binding, MVP separation, and migration to modern .NET. USE FOR: working on Windows Forms UI, event-driven workflows, or classic LOB applications; migrating WinForms from .NET Framework to modern .NET; cleaning up oversized form code. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

Windows Forms

Trigger On

  • working on Windows Forms UI, event-driven workflows, or classic LOB applications
  • migrating WinForms from .NET Framework to modern .NET
  • cleaning up oversized form code or designer coupling
  • implementing data binding, validation, or control customization

Workflow

  1. Respect designer boundaries, never edit .Designer.cs directly; changes are lost on regeneration.
  2. Separate business logic from forms, use MVP (Model-View-Presenter) pattern. Forms orchestrate UI; presenters contain logic; services handle data access.
    // View interface, forms implement this
    public interface ICustomerView
    {
        string CustomerName { get; set; }
        event EventHandler SaveRequested;
        void ShowError(string message);
    }
    
Read the whole SKILL.md on GitHub

More in Design