问题
I have something similar to a wizard control, in the middle is a Panel I would like to use to place any child controls.
I have found using the ScrollableControlDesigner will allow dropped controls to be added to the custom/usercontrol, but this is not what I require. It needs to be added to the container, so layout can be applied without affecting the 'outer' controls (heading, navigation buttons).
I have tried various ways, that did not work, and looked hacky.
Any ideas?
回答1:
I found the answer here!
The key is ControlDesigner.EnableDesignMode()
.
来源:https://stackoverflow.com/questions/594808/adding-design-time-support-for-a-nested-container-in-a-custom-usercontrol-winfo