question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: 'Flip' property was already registered by 'MahApps_Metro_IconPacks_PackIconControl`1_13_147733582'

See original GitHub issue

Hi, I get the following error every time i use any icons from MahApps.Metro.IconPacks in my WPF project in VS2017:

Error: ‘Flip’ property was already registered by ‘MahApps_Metro_IconPacks_PackIconControl`1_13_147733582’

Packages i have installed in the project include: MahApps.Metro MahApps.Metro.IconPacks ControlzEx (Installed as a dependency automatically, i don’t manually install it)

All the installations were done using NuGet Package manager in VS2017.

Pls note that, due to the above error, the XAML visualizer doesn’t show the Icons at design time, but at run time the icons appear correctly. The way i am using the Icons in my buttons is the following:

<Button x:Name="Btn_ZoomFitContents" HorizontalAlignment="Right" Height="70" Margin="0, 0,2,30" VerticalAlignment="Bottom" Width="70" Click="Btn_ZoomFitContents_Click"> <iconPacks:PackIconMaterial Kind="FullScreen" Height=" auto" Width="auto" Padding="2"/> </Button>

I have tried several things but am unable to find a solution; Google search didn’t bring any results either. Hoping to get a resolution on this. Thank you.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
punker76commented, May 7, 2018

@SaadTiwana So, yeah, that’s the problem, the VS designer has view problems with x64 compiled assemblies / apps, cause the designer itself is x86. This problem exists a very long time and I can not say when this will be fixed by the VS team.

0reactions
SaadTiwanacommented, May 7, 2018

@punker76 Thank you for pointing that out. I at-least now see that the controls appear fine in x86 mode. My workaround is that i can switch to x86 just during design time to see the changes in the designer, and then switch to x64 when compiling. Thanks a lot for pointing this out to me. I will now close this issue.

p.s Your Icon packs are awesome!! I am in love with them, and the MahApps.Metro ecosystem. Thank you for making them available to all of us 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

WPF: Custom control property was already registered by ...
Register method must be the type of the class that registers the property, i.e. ControlOne and ControlTwo in your case:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found