Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Floating DockWindow is being added to the wrong window (Read 5652 times)
MavinTech
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 19
Joined: Jul 30th, 2020
Floating DockWindow is being added to the wrong window
Nov 2nd, 2021 at 6:23pm
Print Post  
I have a main application window that will open up another window used as a designer.  This designer window has a docking control with multiple docking windows on it. 

When the designer is active, it is the topmost window and the main app window is below it.  When I grab a dockwindow and go to move it around the dock control, the main application becomes the top window and a floating dockwindow appears to have attached itself to the main window rather than the window that has the dockcontrol.

Could there be a setting that I need to set so that the dockwindows know which of the application windows is the correct one?
  

3.png ( 240 KB | 125 Downloads )
3.png
4.png ( 162 KB | 114 Downloads )
4.png
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: Floating DockWindow is being added to the wrong window
Reply #1 - Nov 3rd, 2021 at 3:16pm
Print Post  
We could not reproduce adding to a wrong window (when both windows have Dock controls), but it does indeed bring the main window to front when you start dragging.  Our developer will investigate in next few days. For time being try setting the newly opened window as Application.Current.MainWindow, it seems to fix that on our end.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
MavinTech
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 19
Joined: Jul 30th, 2020
Re: Floating DockWindow is being added to the wrong window
Reply #2 - Nov 3rd, 2021 at 4:04pm
Print Post  
In my example, the main window does not contain a dockcontrol.  That being said, the setting of the current window did fix the issue that I was having.

Thanks very much.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: Floating DockWindow is being added to the wrong window
Reply #3 - Nov 23rd, 2021 at 12:58pm
Print Post  
This version should avoid activating the wrong main window -
https://mindfusion.eu/_temp/wpf_dock_fix.zip

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint