Hides the current auto-hidden panel immediately without a sliding animation effect.
This method allows you to hide a visible panel. If the panel is in auto-hide mode and it’s visible, the HideImmediately method hides it without a sliding animation effect. To hide a panel which is in auto-hide mode with a sliding effect, use the DockPanel.HideSliding method.
In order to display an auto-hidden DockPanel, use the DockPanel.Show or DockPanel.ShowSliding method. The first one displays a panel immediately, while the second uses a sliding animation effect to display a panel.