Beyond OK and Cancel
Advanced Dialog Content
Use the strongest native dialog features while keeping limitations explicit.
Explore source ↗Capability
Text or password input, combo choices, verification and suppression checkboxes, informative and expanded text, footers, help links, custom icons, auto-close, and ESC policy compose richer native prompts where supported.
- 01
Text, password, and combo input
- 02
Verification and suppression state
- 03
Expanded content, footers, and links
- 04
Timeout and close-policy control
How it composes
From intent
to working system.
Model
Optional content stays separate from the primary message and action list.
Negotiate
Platform capability rules accept, adapt, or log unsupported features.
Interact
Native accessory controls capture input and verification state.
Report
The unified result preserves the user choice and available content values.
Quick start
Adopt this
capability.
Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.
dotnet add package NativeMessageBox<PackageReference Include="NativeMessageBox" Version="VERSION" /><PackageVersion Include="NativeMessageBox" Version="VERSION" />var input = new MessageBoxInputOptions( MessageBoxInputMode.Text, prompt: "File name:", placeholder: "report.pdf");
var options = new MessageBoxOptions( "Choose export settings", buttons, inputOptions: input, verificationText: "Remember my choice", timeout: TimeSpan.FromSeconds(30));Modules in this capability
Use one layer.
Compose the rest.
Source of truth
Read the module beside the complete system.
The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.