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

How to detect a change in the currently selected child

Thread ID:





148199 Oct 9,2019 08:36 PM UTC Oct 14,2019 06:08 AM UTC WPF 3
Tags: DockingManager
Asked On October 9, 2019 08:36 PM UTC

I need to do some actions when the user changes the focus to another panel child. How to do it? Please help.

Kanniyappan Panneer Selvam [Syncfusion]
Replied On October 10, 2019 05:51 AM UTC

Hi Tomasz, 
Thanks for contacting Syncfusion support. 
We have checked your query “Do the action when user change the focus to the another panel of DockingManager” at our end. We have achieved your requirement by invoking the ActiveWindowChanging event of DockingManager which can be triggered when focus of the child window changing. Also we can cancel the focus changing of any child by setting Cancel event argument as true. Please find the code snippet, screenshot and sample for the same. 
Code Snippet: 
// occurs when focus of the child window changes 
            this.SyncDockingManager.ActiveWindowChanging += SyncDockingManager_ActiveWindowChanging; 
private void SyncDockingManager_ActiveWindowChanging(FrameworkElement sender, Syncfusion.Windows.Tools.Controls.ActiveWindowChangingEventArgs e) 
              //Do the actions 
            if((e.NewValue as  ContentControl).Name == "Output") 
                // handles the focus changing to the Output window 
                e.Cancel = true; 
Please try the above solution and let us know if it is helpful. 
Kanniyappan P  

Replied On October 13, 2019 02:47 PM UTC

Thank you. This solution fully solves my problem.

Kanniyappan Panneer Selvam [Syncfusion]
Replied On October 14, 2019 06:08 AM UTC

Hi Tomasz,  
Thanks for you update.  
We are glad to know that the reported issue has been resolved at your end. Please let us know if you need any further assistance on this. We are happy to help you.  
Kanniyappan P 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon