This project has moved and is read-only. For the latest updates, please go here.

Configure different styles for MessageBox programmatically

Aug 5, 2011 at 5:48 PM

How might a create different styles of messagebox within the same app? It doesn't seem like I can derive an instance, configure it, then call Show(). Show only wants to be called statically.

Can I have named styles in my app.xaml and somehow associate it?

Basically, I would like different color backgrounds for different uses of the messagebox within my app.

Thanks for any ideas.

Aug 5, 2011 at 9:30 PM

Unfortunately this is not currently possible, but it would be relatively easy to implement.  You could grab the source code and provide an overloaded Show method that accepts a style and set it accordningly.  Or put in a feature request and I will try to get to it when ever I can.

Aug 5, 2011 at 10:29 PM

Heh, the beauty of open source. Thanks for the quick reply, and for sharing this wonderful library. Very nice work.