BA
Balavasanth
Syncfusion Team
May 14, 2009 01:29 PM UTC
Hi Aishwaria,
Thanks for your interests in Syncfusion products.
We do not have an explicit event to capture the close event of the Docking Manager control, but you can easily achieve this by iterating to each and every children of the frame work element(DockingManager control) and check a condition for the hidden state because while we close the dock panel, it moves to the Hidden state. All this actions can be performed in the state changed event of the Docking Manager control. kindly make use of the code snippet for more idea.
[XAML]
[C# Code]
private void DockingManager_DockStateChanged(FrameworkElement sender, Syncfusion.Windows.Tools.Controls.DockStateEventArgs e)
{
//iterate through each and every element
foreach (FrameworkElement felement in dockingmanager.Children)
{
//check the states
if (DockingManager.GetState(felement) == DockState.Hidden)
{
//perform your action here
}
}
}
Please let me know if you have any questions.
Regards,
Bala.