I have added a new control to the Extended WPF Toolkit  project on CodePlex called the MessageBox.  It is currently in beta and is only available in the source code download.  The MessageBox control mimics the System.Windows.MessageBox closely and you use similar syntax to create it.

MessageBox

Displays a message box that has a message and that returns a result.

Buttons

messagebox_buttons

Icons

messagebox_icons

Usage

  1. MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show("Hello world!", "Extended WPF ToolKit MessageBox", MessageBoxButton.OK, MessageBoxImage.Question);

Previous post

Software Craftsmanship on the Polymorphic Podcast

Next post

Don’t Parse That XML!

6 Comments

  1. August 14, 2010 at 10:05 am

    When the MsgBox will be available in the “Extended WPF Toolkit.dll”, not source code only ? best regards 🙂

  2. August 14, 2010 at 11:20 am

    @WPFSpellCaster

    The MessageBox is scheduled for release early September.

  3. August 15, 2010 at 4:24 am

    Thank you. I’m really looking forward to 🙂

  4. May 30, 2011 at 8:24 am

    The images of message box shown above have border with grey color, how could this be achieved? Thanks in advance…

  5. November 22, 2011 at 9:17 pm

    Why is it hidden when I call:
    MessageBoxResultresult = Microsoft.Windows.Controls.MessageBox.Show(this,”Hello world!”, “Extended WPF ToolKit MessageBox”, MessageBoxButton.OK);result = Microsoft.Windows.Controls.MessageBox.Show(this,”Hello world!”, “Extended WPF ToolKit MessageBox”, MessageBoxButton.OK);

  6. November 25, 2011 at 12:37 pm

    Hi, how can the contents of the MessageBoxButtons  be localized? I always get “Yes” and “Cancel” though my current culture is set to “de-DE”?