This project is read-only.

Defining your own Modern Window template

Aug 2, 2013 at 8:57 AM
Once I've edited the standard Modern Window template, how do I then use this as my Modern Window? Do I need to rebuild the entire project and use that or can I alter the MainWindow?
Aug 6, 2013 at 9:16 AM
Anyone got any idea on this? Still pretty stumped after the weekend and need to get this done ASAP. Ta.
Aug 18, 2013 at 8:38 PM
When you create a custom ModernWindow style with a custom template, you'll need to assign an x:Key to the style. You then use the custom style by setting Style={StaticResource [yourcustomstyle}" in your main window.

If you choose to change the default ModernWindow.xaml style (in Themes\ModernWindow.xaml), you'll need to recompile the entire mui project.

My advice is to go with a custom keyed ModernWindow style, so you do not need to modify the mui source itself.