Skip to content

Glass.Message v1.0.1

Choose a tag to compare

@github-actions github-actions released this 06 Jun 19:49
· 44 commits to main since this release

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.

Full Changelog: https://github.com/gcfernando/glass/commits/v1.0.1