pmf
pmf

Reputation: 7749

WPF: Customizing message boxes

I have the joy of having to develop an application using a customized CI style; at the widget level, the color/style adaptation can be done using ControlTemplates, but how can I customize the look of the standard message boxes (i.e. System.Windows.MessageBox)? (I acknowledge the fact that the file open dialog etc. cannot be customized.)

Upvotes: 1

Views: 671

Answers (3)

timbo
timbo

Reputation: 63

I'm not aware of how you can do it with vanilla WPF, but you could use the WPF Extended Toolkit. See here for examples: http://wpftoolkit.codeplex.com/wikipage?title=MessageBox

The free community edition includes the MessageBox.

Upvotes: 1

Rohit
Rohit

Reputation: 10226

Standard windows message box are good for that.Although you can customize your Message box but not to a great extent

check out this link WPF MessageBox - Custom control

http://blogs.microsoft.co.il/arik/2011/05/26/a-customizable-wpf-messagebox/

Upvotes: 1

Mark Feldman
Mark Feldman

Reputation: 16119

MessageBox is a system dialog box and thus can't be styled either. If you need a modal dialog box styled then create a regular window, set WindowStyle="None" and display it with ShowDialog().

Upvotes: 1

Related Questions