Articles in this section
Category / Section

How to find the rolled out state of autohidden docking window in WinForms Docking Manager?

1 min read

Rolled out state of docking window

The Rolled-out state of a docking window can be found by its DockHost visibility. The DockHost of the control can be retrieved through the AutoHideAnimationStop event of the Docking Manager. Please refer the below code snippet which illustrates this:

C#

void dockingManager1_AutoHideAnimationStop(object sender, Syncfusion.Windows.Forms.Tools.AutoHideAnimationEventArgs arg)
{
    DockHost dhost = arg.Control.Parent as DockHost;
    if (dhost.DisplayRectangle != Rectangle.Empty)
       this.gradientLabel1.Text = "Rolled Out";
    else
       this.gradientLabel1.Text = "Rolled In";
}

 

VB

Private Sub dockingManager1_AutoHideAnimationStop(ByVal sender As Object, ByVal arg As Syncfusion.Windows.Forms.Tools.AutoHideAnimationEventArgs)
    Dim dhost As DockHost = CType(IIf(TypeOf arg.Control.Parent Is DockHost, arg.Control.Parent, Nothing), DockHost)
    If dhost.DisplayRectangle <> Rectangle.Empty Then
        Me.GradientLabel1.Text = "Rolled Out"
    Else
        Me.GradientLabel1.Text = "Rolled In"
    End If
End Sub

 

UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/docking-events#autohideanimationstop-event

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied