Repository navigation
Glass.Message v1.0.1
First public release. π
Added
- Drop-in
MessageBoxreplacement βGlassMessage.Show(...)overloads that
are signature-compatible withSystem.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 yieldsDialogResult.Cancel.
- Rich result β
ShowEx()/ShowExAsync()return aGlassResult(button +
checkbox state + typed input); implicitly converts toDialogResult. - Live progress β
GlassBuilder.ShowProgress()returns a thread-safe
GlassProgressControllerto update the bar (SetValue) and caption
(SetMessage) while work runs,Complete()it, awaitCompletion, and detect
user dismissal viaWasCanceledByUser. - Theming β
Dark,Light,Mica,HighContrast, andWindowsClassic
presets, plus fully customisableGlassThemeinstances. - 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.PlaySystemSoundsplay the Windows sound matching the icon when a
dialog opens, like the classicMessageBox. - Animations β
Fade(default),SlideDown,Scale, andNone. - Keyboard β
Ctrl+Ccopies title + message;Enter/Escmap to sensible
results. - Right-to-left mirrored layout.
- Toast notifications β
GlassToastwith 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 withGlassToastOptions.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.
Full Changelog: https://github.com/gcfernando/glass/commits/v1.0.1