This adds a custom MessageBox control to AdonisUI which aims at being a drop-in replacement for the default System.Windows.MessageBox. Its main advantage over the default MessageBox is that it respects the current color scheme and default styles e.g. for buttons.
Resolves #35
Features
The following is a list of feature candidates that are considered to be implemented.
Must
To be a replacement for System.Windows.MessageBox:
[x] Basic MessageBox structure consisting of text, caption, icon, buttons (ok, yes, no, cancel)
[x] MessageBox.Show() API complying to the existing System.Windows.MessageBox.Show() API
[x] Play system sound when opening depending on the MessageBox icon
To fit into AdonisUI:
[x] Support for styling
[x] Title bar needs to respect color scheme (like AdonisWindow)
Nice to have
[x] Text selection
[x] Content scrolling (for large texts)
[x] Customizable text flow direction (to support cultures displaying text right-to-left)
[x] Custom button labels
[x] Custom buttons (for cases where more options should be displayed)
[x] Custom check boxes (for options like Don't ask again or Apply to all)
[ ] Localization of button labels
[ ] Copy text button
[ ] Optional timeout (e.g. Automatically closing in x seconds)
[ ] Hyperlink recognition (for making hyperlinks that are embedded in text clickable)
Summary
This adds a custom MessageBox control to AdonisUI which aims at being a drop-in replacement for the default
System.Windows.MessageBox
. Its main advantage over the default MessageBox is that it respects the current color scheme and default styles e.g. for buttons.Resolves #35
Features
The following is a list of feature candidates that are considered to be implemented.
Must
To be a replacement for
System.Windows.MessageBox
:MessageBox.Show()
API complying to the existingSystem.Windows.MessageBox.Show()
APITo fit into AdonisUI:
Nice to have