简体   繁体   中英

Different presentation of WPF application - runtime vs designer

Why do I get different presentations of my WPF application with the Visual Studio 2012 Designer versus the application at runtime?

See numbers 1 and 2 in my screenshot.

How can I avoid that behaviour?

在此输入图像描述

For the window style does not apply you can check out the solution here Windows Style from ResourceDictionary don't apply

And as for the inconsistency theres nothing you can do to avoid it. Since the designer is doing some static analysis and make the best guess of what will show up, but in reality the load order is never that easy to predict.

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