awesome-inc / FontAwesome.Sharp

A library for using Font Awesome in WPF & Windows Forms applications
Apache License 2.0
376 stars 87 forks source link

Inherited UserControls not visible in Toolbox #86

Open paragon-id-sources opened 2 years ago

paragon-id-sources commented 2 years ago

Describe the bug If a custom user control inherit a FontAwesome.Sharp control (e.g IconButton), it will not show in the toolbox This only seems to happen once you build the package and add the controls to the toolbox via the DLL (or NuGet)

It also only seems to occur on .NET Framework. This does not occur on .NET Core

To Reproduce Steps to reproduce the behavior:

  1. Create new UserControl
  2. Set the UserControl to inherit from IconButton
  3. Build
  4. Create new WinForms Project using .NET Framework 4.8
  5. Add the just-build DLL to the toolbox
  6. You will notice you cannot find the controls

Expected behavior All controls inherited from FontAwesome.Sharp should show in the toolbox

Screenshots Here are all the Controls in the project, of which the following inherit from FontAwesome.Sharp controls:

image

Here you can see these controls will not get populated in the toolbox for some reason image

Desktop (please complete the following information):