I would like to change the style of a message dialog. I used this: How to change MahApps.Metro dialog content template width?
I want different styles for some dialogues. How can I change the style of a single dialog? I tried to do it with the CustomResourceDictionary
property. But this has no effect.
var Style = (Style) Application.Current.Resources["NewCustomDialogStyle"];
var mySettings = new MetroDialogSettings()
{
CustomResourceDictionary = Style.Resources
};
When I override the MessageDialog style everything is fine
<Style TargetType="{x:Type Dialog:MessageDialog}" BasedOn="{StaticResource NewCustomDialogStyle}" />