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.

Constructor Error when using MarkupExtension

See original GitHub issue

I get the following error:

The type “PackIconFontAwesomeExtension” does not include a constructor that has the specified number of arguments.

When I try to use the following demo material (using the Markup Extension in WPF): <Button Content="{iconPacks:PackIconFontAwesome StarOutline}" />

My Visual Studio Designer shows an Invalid Markup error message also.

My workaround right now is to use the general (“generic”) markup extension: Content="{iconPacks:PackIcon {x:Static iconPacks:PackIconModernKind.Settings}}" />

Can you check, if you can reproduce this error?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eluchsingercommented, Nov 26, 2016

@punker76 it’s not public, but I can give you access to the repo. I target AnyCPU. It’s just a demo project in the university, and I am testing out new stuff. PS: Thanks for the support!

0reactions
eluchsingercommented, Nov 27, 2016

Ok. I deleted the designer ShadowCache Folder and it worked! I will remember that trick for the next time. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binding and Markup extension designer constructor error
When using custom binding or markup extensions I get the following error: The type "BindingExtension" does not include a constructor that ...
Read more >
Xaml Markup Extension Constructors: Parameter defaults ...
If a constructor of a MarkupExtension has a parameter with a default value, making that parameter optional, that constructor option is not detected...
Read more >
Markup Extensions for XAML Overview
A parameterless constructor is required for any case where a XAML object writer instantiates the markup extension from an object element usage.
Read more >
WPF Markup Extensions
In addtion two constructors of this extension has been defined. This extension just include "Hello" with the text set in SetText property. Now ......
Read more >
Implementing Custom Markup Extension in C++ - Forums
Our architecture only permits creating objects specified in a XAML using a default constructor (it is how our ComponentFactory works). What you ...
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