Category / Section
How to open and close the Autohidden Child of DockingManager on MouseClick?
1 min read
To open and Close the Autohidden Child of DockingManager, set IsAnimationEnabledOnMouseOver property to “False”.
IsAnimationEnabledOnMouseOver Property:
The IsAnimationEnabledOnMouseOver Property of DockingManager is a dependency property. You can open and close Autohidden Child by setting the values to true and false by using Mouse over and Mouseclick respectively. You can achieve this by using the following code examples.
C#
DockingManager Docking = new DockingManager(); ContentControl content = new ContentControl(); DockingManager.SetState(content, DockState.AutoHidden); DockingManager.SetHeader(content, "Dock1"); Docking.IsAnimationEnabledOnMouseOver = false; Docking.Children.Add(content); this.Grid1.Children.Add(Docking);
XAML
<syncfusion:DockingManager Name="Docking" UseDocumentContainer="True" syncfusion:DockingManager.IsAnimationEnabledOnMouseOver="False"> <ContentControl Content="Docked1" syncfusion:DockingManager.State="Autohidden” syncfusion:DockingManager.SideInDockedMode="Left syncfusion:DockingManager.Header="DockHeader" BorderBrush="Transparent"/> </syncfusion:DockingManager>