Constructor Error when using MarkupExtension
See original GitHub issueI 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:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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!
Ok. I deleted the designer ShadowCache Folder and it worked! I will remember that trick for the next time. Thanks!