microsoft / winforms-designer-extensibility

MIT License
56 stars 13 forks source link

TileRepeaterDesigner is not loaded. #12

Closed lucapivato closed 1 year ago

lucapivato commented 1 year ago

Great sample, thank you. However, it seems that the [Designer("TileRepeaterDesigner")] is not working. The type editors seem to work, but the designer is ignored.

image

OT: It also looks like the label control in .NET 6 is painted incorrectly with a border.

.NET 4.7.2 image

.NET 6.0 or 7.0 image

lucapivato commented 1 year ago

Never mind, works after changing the WinForms.Tiles.Designer.Server.TypeRoutingProvider to

 new TypeRoutingDefinition(
                    TypeRoutingKinds.Designer,
                    nameof(TileRepeaterDesigner),
                    typeof(TileRepeaterDesigner))