Unable to select the current displayed document tab

I am trying to embed a Unity application inside WPF. Everything works fine except if the unity windows is not the current document tab. I won't initialize properly and resize event become problematic.

I tried on application start to set my current active windows to my ContentControl with this line:
dockingManager.ActivateWindow("Dock3DView")
This code as no effect. I also tried:
dockingManager.ActiveWindow = Dock3DView;

My problem is that I can manually place the first tab to Dock3DView with the xaml, but if I want to call function to Unity and make sure it's the top most tab before doing, all I can do is prevent it from happening. I cannot find a way to bring it to the active tab.

Thanks in advance.


1 Reply

KA Karthick Arjunan Syncfusion Team June 13, 2023 12:23 PM UTC

Hi Vincent,

By utilizing the SetTDIIndex property, you can set the tab based on its index position in the DockingManager. We have provided a sample demo for your convenience. Please check the attached sample and let us know if you have any concern.


Regards,
Karthcik Arjunan


Attachment: DockingManagerWindowDemo_71753982.zip

Loader.
Up arrow icon