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.
Regards,
Kanniyappan P