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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dock Panel close event

Thread ID:

Created:

Updated:

Platform:

Replies:

81113 May 13,2009 07:16 AM May 14,2009 09:29 AM WPF 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 13, 2009 07:16 AM

Hi,

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

Regards,
Aishwaria

Balavasanth [Syncfusion]
Replied On May 14, 2009 09:29 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;