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

Getting sizes of DockingManager.DockControl using 6.102

Thread ID:

Created:

Updated:

Platform:

Replies:

74274 Jun 5,2008 11:51 AM UTC Jun 16,2008 09:29 AM UTC WinForms 4
loading
Tags: Tools
a.b
Asked On June 5, 2008 11:51 AM UTC

Hi,

Is it possible to get the size of the DockControls?

Everytime it drags, I catch an event using
dockingManager1.DragFeedbackStop += ...
and find out what the new size is for the DockControl.

But, I can't seem to find out a way to get a handle on that DockControl. And, if I try to get size of the Panel inside of that DockControl, it only gives me the old size before the Drag event unfortunately.

Thank you for your help.



a.b
Replied On June 5, 2008 11:54 AM UTC

Hi,

In addition, how could I find out whether the DockControl is in Auto-Hide (collapsed) mode ?

Thank you!



Mano J [Syncfusion]
Replied On June 6, 2008 07:34 AM UTC

Hi Sean,

1. When a drag a docked control, its dock state is changed. In this case, you can use DockStateChanged event and get the size of the control using GetControlSize method.


private void dockingManager1_DockStateChanged(object sender, DockStateChangeEventArgs arg)
{
Console.WriteLine(this.dockingManager1.GetControlSize(panel1).ToString());
}


2. You can use GetAutoHideMode method to check whether the control is in autohidden mode or not.


this.dockingManager1.GetAutoHideMode(panel1).ToString();


Please let me know if you have any questions.

Regards,
Mano


a.b
Replied On June 9, 2008 10:06 AM UTC

Hi,

For #2, it works just fine - thansk
2. GetAutoHideMode method to check whether the control is in autohidden mode or not.


However, for
"1. When a drag a docked control, its dock state is changed"
it seems like when a docked control is dragged, DockStateChanged event is not raised but only dockingManager1.DragFeedbackStop.
But, the problem is that even when the event is captured,
dockingManager1.GetControlSize(Panel).Height
will give me the "old" height of the panel, not the new dragged size.

Is there a way to get the new size that would be set as a result of drag???

thanks again


Fathima Shalini P [Syncfusion]
Replied On June 16, 2008 09:29 AM UTC

Hi Sean,

Thank you for your update.

When dragging the docked control, DragFeedbackStop event gives previous size of the docked control

We suspect this issue to be a defect. We have sent this to our developers for more analysis. We will update you on or before June 18th 2008.

Please let me know if any concerns.

Regards,
Fathima


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

;