Hi there! I've now been working for hours and i seem to get this damn AutoSize working. I'm still improving the tests. Here's what i found out how it should work (Based on MSDN and some Tests)
-Control itself just sets Autosize to True or False. The real work is done by the LayoutEngine -The LayoutEngine asks the Control via "GetPreferredSize" which size it likes to have. -controls override this to implement their specific autosize behaviour just by telling the LE their size when asked for it. -the behaviour of the LayoutEngine differs depending on the AutoSizeMode of the Control which can be set by derived classes via SetAutoSizeMode I don't know how Microsoft stores the value of AutoSizeMode. It must be somehow visible for the Layout engine. I think an internal property will also do. when the tests pass on microsofts runtime i will complete the missing stuff in mono and submit a patch as soon as possible greetz, noah.
_______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
