AD
Administrator
Syncfusion Team
February 21, 2005 03:20 PM UTC
Hi,
Setting an XPToolbar to Fill is equivalent to telling it to automatically resize itself. If you take a look at the PreferredSize property, you''ll notice that it''s 23. If you add a BarItem (with text) to the XPToolbar you''ll notice that the PreferredSize changes (to 25 on my system) and that the height of the XPToolbar changes to the same number.
For what you want to do, I would recommend using Anchoring. If you anchor the Toolbar to both the Left and the Right of the Form, it will resize with the Form. If you then set the width of the Toolbar to the width of the Form, it will look the same as Fill, except you''ll have control over the height of the Toolbar.
Regards,
Gregory Austin
Syncfusion Inc.