Glass.Message
1.0.0
See the version list below for details.
dotnet add package Glass.Message --version 1.0.0
NuGet\Install-Package Glass.Message -Version 1.0.0
<PackageReference Include="Glass.Message" Version="1.0.0" />
<PackageVersion Include="Glass.Message" Version="1.0.0" />
<PackageReference Include="Glass.Message" />
paket add Glass.Message --version 1.0.0
#r "nuget: Glass.Message, 1.0.0"
#:package Glass.Message@1.0.0
#addin nuget:?package=Glass.Message&version=1.0.0
#tool nuget:?package=Glass.Message&version=1.0.0
Next-level modern replacement for MessageBox on Windows — Mica/Acrylic backdrop, auto dark/light theme, animations, toast notifications, async API, inline input, countdown, expandable detail, progress bar, RTL, and more. Drop-in compatible: GlassMessage.Show(...) compiles as-is.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
| .NET Framework | net481 is compatible. |
-
.NETFramework 4.8.1
- No dependencies.
-
net10.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
-
net9.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
First public release. 🎉
### Added
- **Drop-in `MessageBox` replacement** — `GlassMessage.Show(...)` overloads that
are signature-compatible with `System.Windows.Forms.MessageBox`.
- **Fluent builder** — `GlassMessage.Create(...)` for composing dialogs.
- **Async dialogs** — non-blocking, awaitable, and cancellable via
`CancellationToken`:
- `GlassMessage.ShowAsync(...)` for the basic message-box shape.
- `GlassBuilder.ShowAsync()` / `ShowExAsync()` so rich dialogs (input, checkbox,
dropdown) can be awaited too. Cancellation yields `DialogResult.Cancel`.
- **Rich result** — `ShowEx()` / `ShowExAsync()` return a `GlassResult` (button +
checkbox state + typed input); implicitly converts to `DialogResult`.
- **Live progress** — `GlassBuilder.ShowProgress()` returns a thread-safe
`GlassProgressController` to update the bar (`SetValue`) and caption
(`SetMessage`) while work runs, `Complete()` it, await `Completion`, and detect
user dismissal via `WasCanceledByUser`.
- **Theming** — `Dark`, `Light`, `Mica`, `HighContrast`, and `WindowsClassic`
presets, plus fully customisable `GlassTheme` instances.
- **Auto theme detection** — `GlassTheme.AutoDetect()` / `IsSystemDark()` follow
the Windows light / dark / high-contrast preference.
- **Modern chrome** — Windows 11 rounded corners (DWM), Mica backdrop, and an
Acrylic blur fallback on Windows 10.
- **Inline inputs** — single-line text, password (reveal eye + Caps Lock hint),
multi-line, and drop-down.
- **Checkbox**, **expandable detail panel**, **determinate / indeterminate
progress bars**, **countdown auto-close**, and **custom bitmap icons**.
- **System sounds** — `GlassBuilder.Sound()` and the global
`GlassMessage.PlaySystemSounds` play the Windows sound matching the icon when a
dialog opens, like the classic `MessageBox`.
- **Animations** — `Fade` (default), `SlideDown`, `Scale`, and `None`.
- **Keyboard** — `Ctrl+C` copies title + message; `Enter` / `Esc` map to sensible
results.
- **Right-to-left** mirrored layout.
- **Toast notifications** — `GlassToast` with six anchor positions, auto-stacking,
click actions, and an async variant. Toasts are **multi-monitor aware**: they
auto-target the active window's screen (then the cursor's, then primary) and
stack per-screen; override with `GlassToastOptions.Screen`.
- **Cross-target build** — .NET Framework 4.8.1 and .NET 8 / 9 / 10 (Windows);
AnyCPU, so the library runs in both x86 and x64 processes.
- **Release pipeline** — pushing a `v*` tag builds every target framework, runs
the tests, and publishes a GitHub Release with notes and downloadable assets.
[1.0.0]: ../../releases/tag/v1.0.0