Dialogs
DialogControlAsk users to confirm, enter a value or edit a record in a movable, resizable window.
Overview
DialogControl is a Blazor dialog window, modal or non-modal, that users can move and resize, with a default button for Enter and Escape to close. Use modal for a decision the page must wait for, such as refunding a charge, and non-modal for a tool window users keep open while they work. For a quick confirm, alert or prompt, any component can await one call on IDialogService, such as ConfirmAsync.
Examples
#Modal dialog with a default button
Edit the ticket and press Enter anywhere in the dialog: OnEnter fires the default button, and the card behind takes the new values; Cancel leaves it as it was. The Classic look button applies the classic Win32 frame.
#Non-modal window
Open the ticket details and keep clicking tickets: a non-modal window leaves the page live and follows the selection. Drag or resize it and the bound size and position report back.
#Message box, prompt and the dialog service
Each button awaits an answer from IDialogService or a MessageBoxControl, and the ticket above follows: rename it with a prompt, send the reply after a confirmation, and refund the charge only after checking the acknowledgment box. Notes opens a multi-line prompt.