We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Height of XPToolBar

Thread ID:





27555 Apr 14,2005 12:51 PM UTC Apr 15,2005 05:09 PM UTC WinForms 1
Tags: Tools
Andrey Plinda
Asked On April 14, 2005 12:51 PM UTC

Hello! See attached project. If you press "Hide" button - size of xpToolBar remain unchanged. Only after resizing form it collapses from two rows to one. Best regards. XPToolBarTest2_555.zip

Administrator [Syncfusion]
Replied On April 15, 2005 05:09 PM UTC

Hi Andrei, The problem is that the Layout event only fires when the XPToolBar is resized, and not when BarItems are hidden or shown. This happens because BarItems are not actually controls, so the requirements for Control.Layout firing are not met. You can workaround this by adding this.xpToolBar1.Size = this.xpToolBar1.PreferredSize wherever you set the visibility of BarItems rather than doing it in the Layout event handler. However, I see that the Layout event firing whenever a BarItem is shown or hidden is a reasonable expectation. Therefore, I have entered it as Feature Request #152. Regards, Gregory Austin Syncfusion Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon