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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting the size of an AutoHide''n control under DockingManager

Thread ID:

Created:

Updated:

Platform:

Replies:

57802 Mar 12,2007 12:20 PM UTC Mar 12,2007 06:20 PM UTC WinForms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 12, 2007 12:20 PM UTC

Is there a way of getting the size of a docked control that has AutoHide == true?

If I look at the control.Size or control.Parent.Size etc, they are 0,0 but obviously the DockingManager knows the size to show when the tab is clicked.

There is a dockingManager.SetControlSize() method but I almost need a GetControlSize() method.

Thanks.

Murugan [Syncfusion]
Replied On March 12, 2007 06:20 PM UTC

Hi Jas_sl,

We could get the control size of the Docked control when AutoHide = true, using DockInfo class. DockInfo details could be retrived from DockHostController class. Here is the sample code snippet

private void button1_Click(object sender, EventArgs e)
{

DockHost dh = this.listView1.Parent as DockHost;
DockHostController dhc = dh.InternalController as DockHostController;
DockInfo di = dhc.DITransient;
Console.WriteLine(di.rcDockArea.ToString());

}

In the sample code, ListView1 docked ControlSize is written on Console when button is clicked. Please try this and let me know if it helps you.

Thank you for using Syncfusion products.

Regards,
Murugan P.S


CONFIRMATION

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.

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

;