Is there a simple way to always float a new tool window, intead of docking it and floating afterwards?
We have a new user requirement to optionally allow new tool windows to do this and the only way I can see is to intercept the
protected override void OnWindowsOpened(DockingWindowsEventArgs eventArgs)
method and call .Float() based on my criteria.
Or possibly we thought we could use something this
protected override void OnWindowDefaultLocationRequested(DockingWindowDefaultLocationEventArgs e)
{
base.OnWindowDefaultLocationRequested(e);
if (e.Window.Description == ToolWindowType)
{
e.Window.Float();
}
}
but that doesn't work as the window isn't yet displayed. Is there a better way to do it?
[Modified 8 years ago]