The text of this article is not in this database — only its details are. Read it on the old site: WPF MessageBox in XAML
1 Comment
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: WPF MessageBox in XAML
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Arik PoznanskiPosted May 25, 2011, 5:47 PM
I've implemented a WPF MessageBox that has the exact same interface has the normal one and is also fully customizable via standard WPF control templates: http://blogs.microsoft.co.il/blogs/arik/archive/2011/05/26/a-customizable-wpf-messagebox.aspx Features •The class WPFMessageBox has the exact same interface as the current WPF MessageBox class. •Implemented as a custom control, thus fully customizable via standard WPF control templates. •Has a default control template which looks like the standard MessageBox. •Supports all the common types of message boxes: Error, Warning, Question and Information. •Has the same “Beep” sounds as when opening a standard MessageBox. •Supports the same behavior when pressing the Escape button as the standard MessageBox. •Provides the same system menu as the standard MessageBox, including disabling the Close button when the message box is in Yes-No mode. •Handles right-aligned and right-to-left operating systems, same as the standard MessageBox. •Provides support for setting the owner window as a WinForms Form control.