warptoolkit-wizard

Implements multi-step wizard dialogs in WinForms using WarpToolkit WizardContainer and WizardPage.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires WarpToolkit.WinForms.

What problem does it solve? Building multi-page wizard dialogs in WinForms with Back/Next navigation, per-page validation, and DPI-aware scaling requires coordinating many moving parts; this Skill provides verified guidance for the WarpToolkit.WinForms WizardContainer API so you avoid outdated patterns and common mistakes. ## Core Features & Use Cases - Wizard Page Management: Add and remove WizardPages through WizardContainer.AddWizardPage, with ordered navigation via GoBackAsync, GoNextAsync, and GoToPageAsync. - Per-Page Validation & Navigation Control: Block navigation using PageValidating and PageLeaving events with CancelEventArgs and custom error messages. - DPI-Aware Dialog Display: ShowWizardDialogAsync scales the dialog based on DeviceDpi and returns a WizardDialogResult of Finished, Cancelled, or None. - Use Case: Build a first-run setup wizard for a WinForms app where the user selects an AI provider on one page, enters an API key on the next, and cannot proceed until each page validates. ## Quick Start Use the warptoolkit-wizard skill to create a three-page WinForms wizard dialog with validation on the second page and DPI-aware display.

Frequently Asked Questions about warptoolkit-wizard

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

FAQPage Schema
How do I create a multi-page wizard dialog in WinForms?▼

Create a WizardContainer, then call AddWizardPage with a title and a content Control for each step. Finally await ShowWizardDialogAsync to display the DPI-aware dialog and check whether the result is WizardDialogResult.Finished.

How to validate a wizard page before allowing Next navigation?▼

Handle the WizardPage PageValidating event and set e.Cancel = true when the page is invalid, optionally setting e.ErrorMessage. Returning without setting Cancel allows forward navigation to proceed.

Why can't I instantiate WizardPage with new in WarpToolkit?▼

The WizardPage constructor is internal, so pages must be created through WizardContainer.AddWizardPage. Older documentation showing Pages.Add(new WizardPage {...}) is outdated and will not compile.

Does the WarpToolkit wizard dialog support high-DPI displays?▼

Yes, ShowWizardDialogAsync is DPI-aware and scales the dialog using DeviceDpi / 96f to compute an optimal size. ScalingMode.Automatic also picks larger button sizes when DeviceDpi exceeds 120.

What values does WizardDialogResult return in WarpToolkit?▼

WizardDialogResult has three members: Finished, Cancelled, and None. There is no Completed member, so check for Finished after awaiting ShowWizardDialogAsync to commit the wizard's collected data.