Hi,
Is there an event to tell me when the flyout of a pane is completed? We have BeforeShowFlyout and AfterHideFlyout, but I need to do some graphics work after the flyout is fully showing?
Thanks,
Colin.
Unfortunately, there is no way to determine this in the current version. You can submit a feature request for a new event to indicate this, maybe something like AfterShowFlyout: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
I have the same problem but I have build a workaround. In the first Step you have to set a mark that the control will fly out and you save the Object reference from the pane. In the second step you use the paint event of the dockcontrol. In the paint methode you compare the pane flyoutsize with the size from the parent of the control and you have to add the broder size on the flyoutsize. When this worths are the same then the control is flyout. At last you clear the mark.
In the follow you find some source codes. I hope that they are correct because I have copy then from my project.
1. Step:
private DockableControlPane modifiedDockableControlPane = null;private int dockControlPaneFlyout = 0;
public void dockManagerBeforeFlyout(object sender, Infragistics.Win.UltraWinDock.CancelableControlPaneEventArgs e){
modifiedDockableControlPane = e.Pane;dockControlPaneFlyout = 1;
}
public void dockControlPaint(object sender, PaintEventArgs e){
if(dockControlPaneFlyout != 0){ Control toMoveControl = modifiedDockableControlPane.Control.Parent.Parent;if (modifiedDockableControlPane.FlyoutSize.Height + 5 == toMoveControl.Size.Height){ //Control fly outdockControlPaneFlyout = 0; } }
if(dockControlPaneFlyout != 0){
Control toMoveControl = modifiedDockableControlPane.Control.Parent.Parent;if (modifiedDockableControlPane.FlyoutSize.Height + 5 == toMoveControl.Size.Height){ //Control fly outdockControlPaneFlyout = 0; }
//Control fly outdockControlPaneFlyout = 0;
Sorry for my bad english because english is not my first language.