ControlDesigner GetHitTest is not supported under net6.0
Environment
17.11.3
.NET version
net6.0 - net8.0
Did this work in a previous version of Visual Studio and/or previous .NET release?
framework all is normal
Issue description
my custom controls cannot capture mouse clicks, but System.Windows.Forms.TabControl can
Steps to reproduce
Here is a demo, the framework 4.8 can capture the mouse in the designer, but I hope the designer can also capture the mouse normally under net6.0
Diagnostics
No response
@EVA-SS In contrast to .NET Framework projects, WinForms designer for .NET projects uses a completely different architecture. It spawns an external process to load .NET assemblies and resolve types. There is a distinction in the way it loads design time and runtime assemblies. For WinForms .NET designer, you will need to reference WinForms designer SDK package available on nuget.org. For documentation and samples check: https://github.com/microsoft/winforms-designer-extensibility
cc: @KlausLoeffelmann, @JeremyKuhne
@EVA-SS In contrast to .NET Framework projects, WinForms designer for .NET projects uses a completely different architecture. It spawns an external process to load .NET assemblies and resolve types. There is a distinction in the way it loads design time and runtime assemblies. For WinForms .NET designer, you will need to reference WinForms designer SDK package available on nuget.org. For documentation and samples check: https://github.com/microsoft/winforms-designer-extensibility
cc: @KlausLoeffelmann, @JeremyKuhne
Thank you, but GetHitTest still doesn't work 😂
Could you please share your updated project?
Here, after trying to reference the WinForms designer SDK, only System.ComponentModel.Design.DesignerActionList can be recognized normally on the Core project. Many UITypeEditor still do not support it, including override bool GetPaintValueSupported and override void PaintValue
How should I use the SDK correctly, or is this interaction method not allowed by the official 🤔
@KlausLoeffelmann Would you have some suggestions here?