1

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?

enter image description here

nabulke
  • 11,025
  • 13
  • 65
  • 114

1 Answers1

3

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.

Community
  • 1
  • 1
Steve
  • 11,696
  • 7
  • 43
  • 81