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. (Last updated on: November 16, 2018).
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 11:16 AM UTC May 14,2009 01:29 PM UTC WPF 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 13, 2009 11:16 AM UTC

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 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.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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

;