microsoft / winforms-designer-extensibility

MIT License
56 stars 13 forks source link

How to change InputShield Size/Location #38

Open valiahmetovv opened 5 months ago

valiahmetovv commented 5 months ago

Hi @KlausLoeffelmann

As far as I understand InputShield catches all user input and passes it to DesignToolsServer process where they are handled. And primarily, it is needed at design time to select/move components on designer surface.

Our designer has multiple tabs and regions where this functionality is not needed. Below gif demonstrates switching between different tabs: designer surface, script tab and preview tab. Only the first tab requires input shield features such as selection, drag n drop, moving etc, but it should not cover whole area, since i need the bottom panels and rulers remain responsive.

For other tabs InputShield doesnt seem to be usefull: script tab requires only text input, preview tab doesn't require any selection behaviors either. DesignSurfaceTabs

Currently, InputShield is always active and covers whole designer surface, this prevents any interaction with standard windows forms controls: buttons are not clickable, textboxes cannot receive any input.

Is it possible to turnoff, resize or move InputShield somehow so i can interact with the form hosted in DesignerToolsService directly ?

Thanks