Is there a way to create a controldesigner to allow for docking to left and right sides only? Instead of top, bottom, fill, etc… Thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Changing the control designer requires a new control class so you can apply the [Designer] attribute. Once you go there, the cheap solution is to veto the selection in an override for the Dock property:
If that’s too crude, you can write a UITypeEditor so only the allowed dock styles can be selected and apply it to the overridden Dock property with the [Editor] attribute.