Build error with VS2010

May 16, 2014 at 4:14 AM
Hi, I'm using VS2010 to compile MUI source and I got this.

error 1 Unknown build error, 'An item with the same key has already been added.' FirstFloor.ModernUI.WPF4

I'm gonna let my app compatible on XP, so I'm using .Net 4.0.
The weird part is the interface under .Net 4.0 and 4.5 being different like described in Stackoverflow.

Would anyone please figure this out?
May 16, 2014 at 5:46 AM
Edited May 16, 2014 at 5:49 AM
OK, Now I fixed the first problem. i.e.
error 1 Unknown build error, 'An item with the same key has already been added.' FirstFloor.ModernUI.WPF4
My solution is as followed,
I deleted all the linked files and add them again as direct files.

Now the interface looks like this,
Image

So the problem is how to fix this now, are there any absent dlls or xamls?
May 22, 2014 at 8:53 AM
Well, I finally found the reason.

I deleted <Style TargetType="{x:Type Rectangle}" /> in app.xaml the other day.

I'm now curious about how can this simple line do the magic?
May 26, 2014 at 8:21 PM
May 27, 2014 at 3:42 AM
Yeah...I'm aware of that already. See my last post? I'm just wondering how the <Style TargetType="{x:Type Rectangle}" /> works. Thanks for your attention anyway.