Hi, a few things we've noticed with floating toolwindows and changing of DockSite.ActiveWindow
1) Right-clicking on a floating toolwindow titlebar, the context menu sometimes seems to open at 0,0 (top-left-most monitor point). Reopening the contextmenu repeatedly at different points and left-clicking to close it in between opening is the most reliable way to reproduce this.
2) Unlike UIStudio docking, floating toolwindows lose active state when interacting with a main menu on the main window hosting the docksite. This means main menus and toolbars can't be used with floating toolwindows (and unlike VS 2015 - e.g. the Window menu to change state etc of the active toolwindow).
Curiously, if you right-click the titlebar to open the contextmenu, then click on mainmenu/toolbar, the floating window does retain Active status...
3) DockingWindow.IsVisibleChanged happens after DockSite.OnWindowActivated/WindowActivated. In WinForms UIStudio it was the opposite, which makes more sense. Previously we were using the change in visibility to perform certain actions necessary before the Window becomes focused/active, atm we are attempting to workaround this by checking in OnWindowActivated whether DockWindow.IsVisible = false, which is a bit weird : ).
[Modified 5 years ago]