microsoft/winforms-designer-extensibility

How to detect IToolBoxService selected toolbox item at server side?

Opened this issue · 0 comments

Hi @KlausLoeffelmann ,

As demonstrated in existing sample of out-of-proccess RootDesigner, ToolBox is handled exclusively on the client-side.

Previously(net472) IToolBoxService could be accessed anywhere , and when drag n dropping/dragging toolbox items on to the RootDesigner surface we could hook into various Mouse events such as MouseDown MouseOver etc and check which toolbox item is currently selected to initialize corresponding components and customize cursor behavior.

Right now Mouse events are handled on server side but toolbox lives on the client and it's not clear how to get information regarding currently selected ToolBoxItem.

Could you please provide a few tips on how to get currently selected toolbox item at Server side?

Thanks