MsgBox
Implements of a custom message box service
Install / Use
/learn @Dirkster99/MsgBoxREADME
This project shows implements a custom message box service that is driven by a service locator interface. It inlcudes a notification component that can be used to implement positioned pop-up messages in the vicinity of related controls. All implementation is in WPF and follows MVVM without compromises.
See http://www.msgbox.codeplex.com for more details.
##Tip Review App class in the Demo application to understand the service initialization: https://github.com/Dirkster99/MsgBox/blob/master/source/MsgBoxDemo/App.xaml.cs


Theming
Load Light or Dark brush resources in you resource dictionary to take advantage of existing definitions.
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/MsgBox;component/Themes/DarkBrushs.xaml" />
</ResourceDictionary.MergedDictionaries>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/MsgBox;component/Themes/LightBrushs.xaml" />
</ResourceDictionary.MergedDictionaries>
These definitions do not theme all controls used within this library. You should use a standard theming library, such as:
- MahApps.Metro,
- MLib, or
- MUI
to also theme standard elements, such as, button and textblock etc.
Change History:
-
2017-07-28 Removed UserNotification and replaced it with nuget Dependency: https://preview.nuget.org/packages/Dirkster.UserNotifications https://github.com/Dirkster99/UserNotifications
-
2015-07-29 There are breaking changes in the way a Window Chrome is themed in WPF between .Net Version 4.0 and .Net Version 4.5. Namely:
- The System.Windows.Shell.DLL is integrated into the PresentationFramework assembly (see code changes in this branch for more details).
-
Extracted service locator into separate ServiceLocator project and re-designed interface (small breaking change that should be easy to repair see difference in demo programs)
-
Extended Notification project with new controls (see class files and Wiki documentation for details): UserNotification.View.SimpleNotificationWindow UserNotification.View.NotifyableContentControl
-
Bugfix Italian typo Non should be No http://www.codeproject.com/Tips/682283/WPF-MessageBox-Service?msg=4707211#xx4707211xx
-
Small bugfix in Dialog - View focus handling
-
Correction in 2 Hindi translation strings
Fixed Issues:
-
MsgBoxDemo Project Copy statement does not always work if quotes around path are missing
-
MsgBox Cannot set Owner property to itself Added code to ensure that owner of MsgBox dialog can never be the window itself (which causes an exception to be thrown and the message box not to be displayed)
-
Notification Added SimpleNotification view to support scenarios with tool tip like view
Credits
Implementations in this project are based on these resources:
MsgBox Project
Source: http://blogsprajeesh.blogspot.de/2009/12/wpf-messagebox-custom-control.html
Service Locator: http://www.codeproject.com/Articles/70223/Using-a-Service-Locator-to-Work-with-MessageBoxes
Notification Project
The project contains a user notification component: https://github.com/Dirkster99/UserNotifications
that pops-up user messages similar to extended tool-tips.
This component is based on a Growl Notifications project at Code Project: http://www.codeproject.com/Articles/499241/Growl-Alike-WPF-Notifications
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
