Custom Controls won't show in XAML Designer when referenced via .dll
Dear C#-Community,
Currently, I was implementing custom WPF controls. These custom controls have their own style, which are referenced in the
Themes/Generic.xml
file.
However, when I build the .dll file of the custom control library and reference it in a new project, the designer won't show the custom controls, but they are definitely there. I would see them, if I start the project.
I tried different approaches like setting additional attributes, do configurations in the assemblyInfo.cs
but nothing works. I am quite clueless now.
Thank you for your time.2 Replies
You can text me. I have professional experience with WPF. Lately I haven't had any projects using it but I can still be of help
Did you try, close VS, delete obj and bin directories in both projects. - Open CustomControl project, rebuild in Debug and Release, open WPF project, rebuild. - After rebuild, does the designer show something?