Note that there are some explanatory texts on larger screens.

plurals
  1. PODockable Windows. Floating Window and MainWindow Menu Integration
    text
    copied!<p>In Visual Studio 2010, Dockable Windows seem to work like expected in every situation.<br> If a "Floating" document is active and some menu is selected (e.g Edit -> Paste), then the "Floating" document still has Focus and the command will be executed against that "Floating" window. Also, notice how this is clearly visible in the UI. MainWindow.xaml is still active and the Main window in Visual Studio is inactive even though the Team-menu is selected.</p> <p><img src="https://i.stack.imgur.com/zJ5Fi.png" alt="enter image description here"></p> <p>I've been trying to get the same behavior using alot of different 3rd-party docking components but they all have the same problem: once I select the menu, the MainWindow is focused and my floating window does not have focus anymore. Does anyone know of a way to get the same behavior here as in Visual Studio?</p> <p>At the moment I'm using <a href="http://www.infragistics.com/dotnet/netadvantage/wpf/xamdockmanager.aspx#Overview" rel="noreferrer">Infragistics xamDockManager</a> and the problem can be reproduced with the following sample code.</p> <ul> <li>Right click "Header 1" and select "Float"</li> <li>Click the "File" menu</li> <li>Notice how MainWindow receives focus.</li> </ul> <p>xmlns:igDock="http://infragistics.com/DockManager"</p> <pre><code>&lt;DockPanel LastChildFill="True"&gt; &lt;Menu DockPanel.Dock="Top"&gt; &lt;MenuItem Header="_File"&gt; &lt;MenuItem Header="_New"/&gt; &lt;/MenuItem&gt; &lt;/Menu&gt; &lt;Grid&gt; &lt;igDock:XamDockManager x:Name="dockManager" Theme="Aero"&gt; &lt;igDock:DocumentContentHost&gt; &lt;igDock:SplitPane&gt; &lt;igDock:TabGroupPane&gt; &lt;igDock:ContentPane Header="Header 1"&gt; &lt;TextBox Text="Some Text"/&gt; &lt;/igDock:ContentPane&gt; &lt;igDock:ContentPane Header="Header 2"&gt; &lt;TextBox Text="Some Other Text"/&gt; &lt;/igDock:ContentPane&gt; &lt;/igDock:TabGroupPane&gt; &lt;/igDock:SplitPane&gt; &lt;/igDock:DocumentContentHost&gt; &lt;/igDock:XamDockManager&gt; &lt;/Grid&gt; &lt;/DockPanel&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload