I have a UITypeEditor consisting of a set of owner-drawn buttons. I've implemented it as a UserControl containing a Panel, to which I add the buttons when the control is instantiated.
For the neatest appearance I would like to organize the buttons in rows and columns according to the width of the Panel, and have the width of the Panel be the same as the width of the property grid cell it below which it is dropped.
However I have not found a way to get that width. Detailed searching of the structures at runtime reveals a property PropertyGridInternal.PropertyGridView.labelWidth that seems to represent the actual width, but of course I can't access that in my application.
not at all, am just giving my views since I myself could not locate a possible solution in your problem. Sorry if it meant that way for you, apologies...
Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...