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. Image for the cookie policy date

I want Panel fill the whole xpTaskBar area when it resize

I have a xpTaskBar called xpTaskBarTree with only one xpTaskBarBox named as xpTaskBarBoxTree. the xpTaskBarBoxTree has a panel named pnlClass inside (dock=fill). When the xpTaskBarTree resizes, I want the panel to always fill the whole area of the xpTaskBarTree. I have put following code in xpTaskBarTree_Resize event, but, it fires too many times (about 20 times). Did I put the code in wrong event? If so, Which event should I use? private void xpTaskBarTree_Resize(object sender, System.EventArgs e) { xpTaskBarBoxTree.PreferredChildPanelHeight=xpTaskBarTree.Height-pnlClass.Top; }

1 Reply

AD Administrator Syncfusion Team November 2, 2004 04:22 AM

Hi , 1) The xpTaskBarTree_Resize eventhandler would be the correct place to change the preferred child width. 2) Using the latest version, I noticed that the resize event was fired 11 times during initialization but it was fired only once for all further resizing. Here is the sample We will try our best to address this issue before the next release. Thanks. Best regards, Stephen. >I have a xpTaskBar called xpTaskBarTree with only one xpTaskBarBox named as xpTaskBarBoxTree. >the xpTaskBarBoxTree has a panel named pnlClass inside (dock=fill). >When the xpTaskBarTree resizes, I want the panel to always fill the whole area of the xpTaskBarTree. I have put following code in xpTaskBarTree_Resize event, but, it fires too many times (about 20 times). Did I put the code in wrong event? If so, Which event should I use? > >private void xpTaskBarTree_Resize(object sender, System.EventArgs e) > { > xpTaskBarBoxTree.PreferredChildPanelHeight=xpTaskBarTree.Height-pnlClass.Top; > }

Loader.
Live Chat Icon For mobile
Up arrow icon