hello!
how to enable Floating of DockableControlPane when it is unpinned ?
when pane is pinned, it may be FlyOuted after doubleclick on the window header (blue)
when unpinned, it does not work
here is demo image (if not shown), http://img59.imageshack.us/my.php?image=demo1xn0.png
thanks for help!
This is correct functionality and can be seen in all versions of Visual Studio. You can submit a feature request for a property that allows the ability to float from the unpinned state: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
thanks!
for anyone who needs it, i've made a workaround, that catches doubleclick on chart area and makes pane float or dock back.
private void workaround(MouseEventArgs e, UltraDockManager manager, bool chartWasPinnedPreviously) { NHitTestResult hitTest = chartControl_.HitTest(e.X, e.Y); if (e.Clicks == 2 && hitTest.DataPointIndex < 0) { switch (manager.ControlPanes[0].DockAreaPane.DockedState) { case DockedState.Floating: manager.ControlPanes[0].Dock(true); if (chartWasPinnedPreviously) { manager.ControlPanes[0].Pin(); } else { manager.ControlPanes[0].Unpin(); } break; case DockedState.Docked: manager.ControlPanes[0].Pin(); manager.ControlPanes[0].Float(); break; } } }