We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Dock Panel close event

Hi,

Is it possible to capture the close event(Close button event) of each and every Dock Panel.

Regards,
Aishwaria

1 Reply

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.


Loader.
Live Chat Icon For mobile
Up arrow icon