I would like my VS Package to somehow replace the IRootDesigner that is created when designing a Windows Form.
I realise I can do this by subclassing Form, and placing a DesignerAttribute on the class declaration - however I dont want to have to subclass - I want to force my designer to be used instead of the one actually defined on the System.Windows.Forms.Form class - the idea is to provide an alternate Forms design environment to developers who install this extension in Visual Studio...
I have tried creating an ITypeDescriptorFilterService and filtering the attributes on any components loaded, but that only works for components ON a form, not the form itself...
I have also tried to override the ITypeResolutionService from withing VS itself so that I can return my own designer type when the Forms Document Designer is requested by the DesignSurface... but the ITypeResolutionService is not available at package initialization, and inserting one anyway does nothing...
How can I do this?
Thanks