0

I'm writing a WPF Application with ModernUI. It looks great on my computer(win 7).

enter image description here

However, it looks different on my colleague's(also win 7).

enter image description here

What can I do to make it look always like the same way, just as on my computer?

  • 2
    These don't look like the same styles, nor something which would be effected through system theming. I would use Snoop or similar to find out why different styles are being used. – Mitch Apr 03 '14 at 04:52
  • @Mitch Thanks for your advice. I'm new in wpf. You show me a way to find it out. We'll see later. – memoryblade Apr 03 '14 at 05:23

1 Answers1

1

I finally found the reason why the implicit style didn't work.

I'm using ModernUI with WPF4.0 and I deleted the

<Style TargetType="{x:Type Rectangle}"/>

in app.xaml the other day.

Well, it's that simple and everything looks fine now. Except that I still don't know how the empty style works.

  • It overwrites the default `Rectangle` style. The margins, border colors,... etc are overwritten with nothing. So if the default has a margin of 4, then with your empty style it has a margin of 0. The same with all the colors. – Loetn Jun 17 '14 at 06:08
  • @Loetn Yes, for sure. But how can you explain the issue I posted at the beginning. – memoryblade Jun 18 '14 at 08:17