wpf - How to change MahApps.Metro dialog style? -


i change style of message dialog. used this: how change mahapps.metro dialog content template width?

i want different styles dialogues. how can change style of single dialog? tried customresourcedictionary property. has no effect.

var style = (style) application.current.resources["newcustomdialogstyle"]; var mysettings = new metrodialogsettings()     {         customresourcedictionary = style.resources     }; 

when override messagedialog style fine

<style targettype="{x:type dialog:messagedialog}" basedon="{staticresource newcustomdialogstyle}" /> 

you need create new style based on mahapps style. can find here: https://github.com/mahapps/mahapps.metro/blob/336f7dfc4bda2d0eba8aa270737ca3c11d45128c/src/mahapps.metro/mahapps.metro/themes/dialogs/messagedialog.xaml

and use whatever want dialog


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -