Hi,
I am using a DockingManager in MDI mode. When adding child document windows, they appear behind the other child document windows and I cannot bring them programmatically in front, no matter what I try.
While if the documents are floating it is just inconvenient, as the user has to activate the newly created window with a mouse click, if the documents are maximized, the newly created windows are hidden behind the other windows and the user does not perceive the addition of the new window at all.
So, what I've tried so far is:
- setting the focus of the DockItem's content element - e.g., newDockItem.Content.SetFocus();
- setting the ActiveWindow of DockingManager - dockingManager.ActiveWindow =
newDockItem
.Content;
- calling the ActivateWindow of DockingManager - dockingManager.ActivateWindow(newDockItem.Header);
Neither of these methods work.
I have found in the forum this thread:
set focus to a DockingManager children | WPF Forums | Syncfusion
It contains a sample (DockingManagerSample_132420), and that sample really works, yet the DockingManager in the sample is in TDI mode. If you change the mode of DockingManager in the same sample to MDi, all new windows are created behind the other, that are already available.
Could you, please, help?
Best regards,
Alexander