Reputation: 7749
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
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
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
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