Keep undocked DocumentWindows visible

Docking/MDI for WPF Forum

Posted 2 months ago by Sascha Nitschke
Version: 13.2.0592
Avatar

Hello Actipro,

there is a TabItem "H1" hosting a DockSite and a TabItem "H2" hosting anything.

<TabControl>

	<TabItem Header="H1">
		<docking:DockSite x:Name="_dockSite">
			<docking:Workspace>
				<docking:TabbedMdiHost TabOverflowBehavior="Shrink">
					<docking:TabbedMdiContainer />
				</docking:TabbedMdiHost>
			</docking:Workspace>
		</docking:DockSite>
	</TabItem>

	<TabItem Header="H2">
		...
	</TabItem>

</TabControl>

The TabbedMdiContainer will be filled in its backend with DocumentWindows which can be undocked.

If you change to TabItem "H2" all undocked DocumentWindows will be hidden.
If you change back to TabItem "H1" all undocked DocumentWindows will reappear.

This behavior makes sense but in my special case:
Is it possible to keep all undocked DocumentWindows always visible?

Regards
Sascha

Comments (2)

Answer - Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Sascha,

Yes, you can set the DockSite.CanFloatingDockHostsHideOnDockSiteUnload property to false to keep floating windows visible when the DockSite is unloaded by the parent tab change.


Actipro Software Support

Posted 2 months ago by Sascha Nitschke
Avatar

Hello Actipro,

thank you for the fast and simple answer. My problem with DockSite.CanFloatingDockHostsHideOnDockSiteUnload is that I am using an old version of WPF Controls. One reason more to upgrade ;).

Regards
Sascha

The latest build of this product (v22.1.4) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.