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.
a.b
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!
MJ
Mano J
Syncfusion Team
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.
a.b
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
FS
Fathima Shalini P
Syncfusion Team
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