简体   繁体   中英

WPF MDI add Mahapps metro style

I want to use Mahapps style on WPF.MDI .
I managed to add the style to UserControl, with resource merging, but child is unchanged.

Need to create new them for WPF.MDI, that targets mahapps style?

Any direction helps.

I figure it out, on my own.
Short explanation here:
Created a copy of Aero.xaml, modified it and referenced Mahapps .
Source on GitHub .

在此处输入图片说明

I reconfigured to use resource dictionary and fixed window control highlight (close, minimize, maximize).


在此处输入图片说明

Nice work!

To use the Accent defined in the application resources, I deleted accent defined in Metro.xaml. The remaining problem is the Accent of Inactive Window.

"WPF.MDI\\Themes\\Metro.xaml", commented out line 10-12:

<!-- Deleted to use Accent defined in App.xaml -->
<!--
<Color x:Key="AccentColor">#CC161717</Color>
<Color x:Key="AccentBaseColor">#CC161717</Color>
<Color x:Key="AccentColor2">#868686</Color>
-->

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM