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

set focus to a DockingManager children

Thread ID:





132420 Aug 31,2017 01:57 PM UTC Sep 4,2017 10:02 AM UTC WPF 3
Tags: DockingManager
Asked On August 31, 2017 01:57 PM UTC

Hi folks,

I use this code to open tabs in a DockingManager. It works well for opening new tabs, but does not set focus to an existing opened tab. The code goes to item.Focus() but tab is not shown. What I am doing wrong? Cheers

private void AddTab(DockState ds, object content, string title, string name)
for (var i = 0; i < dockingManager.Children.Count; i++)
var item = dockingManager.Children[i] as ContentControl;

if (item.Name == name)

var control = new ContentControl();
control.Name = name;
control.Content = content;
DockingManager.SetHeader(control, title);
DockingManager.SetState(control, ds);

Durga Rajan [Syncfusion]
Replied On September 1, 2017 10:42 AM UTC

Hi Josep,

Thanks for contacting Syncfusion support.

We have checked your code example and found that you're manually setting the focus. Instead of that, we suggest you to set the child as ActiveWindow to gain focus. Please download the sample for the same from below location,

Sample link:
If the issue persists, please provide more details and modify the above sample to replicate the issue. This would help us to provide the solution at the earliest.

Durga S.  

Replied On September 1, 2017 10:52 AM UTC

Thanks. It works!

Durga Rajan [Syncfusion]
Replied On September 4, 2017 10:02 AM UTC

Hi Josep,

We are glad to know that your issue has been solved. Please let us know if you need any further assistance.

Durga S.


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