
Hi,
actually, I've found a way to reproduce the issue in your Sample Browser – with a small modification and under a specific boundary condition!
Have a setting with two monitors:
- monitor 1 with 150% scaling (my resolution is 3840x2160)
- monitor 2 with 100% scaling (my resolution is 1920x1200)
Modify the SampleBrowser:
- Open the SampleBrowser solution (I took the one from Actipro WinForms 24.1.1, because we have a license for that)
- Open SampleBrowser\Program.cs
- In line 67, where the high DPI mode is set, change the value to HighDpiMode.PerMonitorV2
- Build
Now you should get a build for net8.0-windows.
Reproduce issue:
- Start SampleBrowser.exe on monitor 1
- Launch "Docking/MDI Features" Sample
- Move the "Dock C# Sample" window to monitor 2
Now you can take the steps exactly like you described them in your previous comment.
Alternatively, you can use the ToolWindow layout XML sample I pasted below, save it to an XML file and load it in the Docking Sample.
TWLayout.xml:
(Note that the top right ToolWindowContainer is sized to a – quite normal – height of 264.)
<?xml version="1.0"?>
<!--
Actipro Docking/MDI for WinForms
Copyright (c) 2001-2024 Actipro Software LLC. All rights reserved.
http://www.actiprosoftware.com
-->
<ToolWindowLayout Version="1.0">
<LayoutData>
<HostContainerControl>
<ToolWindowContainer Dock="Left" Size="291, 528" SelectedToolWindowGuid="2d0aa1ee-2681-4ad4-97c6-a77b88e1981d">
<ToolWindow Key="Welcome to WinForms Studio" Guid="2d0aa1ee-2681-4ad4-97c6-a77b88e1981d" AutoHideSize="115, 133" DockedSize="285, 142" FloatingSize="0, 0" ImageIndex="2" Text="Welcome to WinForms Studio">
<AutoHideStateInfo RootDock="Left" />
<DockedInsideHostStateInfo RootDock="Left" IsAttached="False" />
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
</ToolWindowContainer>
<DockContainerContainer Dock="Right" Orientation="Vertical" Size="200, 528">
<ToolWindowContainer Dock="None" Size="194, 264" SelectedToolWindowGuid="f27b120c-f1b5-4f23-86dc-2ab2390d5269">
<ToolWindow Key="DockManager Properties" Guid="f27b120c-f1b5-4f23-86dc-2ab2390d5269" DockedSize="194, 383" FloatingSize="0, 0" ImageIndex="0" Text="Mgr Properties" TitleBarText="DockManager Properties">
<AutoHideStateInfo RootDock="Right" />
<DockedInsideHostStateInfo RootDock="Right" IsAttached="False">
<DockedBy Guid="a25219b6-00d0-411b-9a84-36bc81997792" RootDock="None" DockOperationType="TopInner" IsTopMost="False" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
</ToolWindowContainer>
<ToolWindowContainer Dock="None" Size="194, 258" SelectedToolWindowGuid="a25219b6-00d0-411b-9a84-36bc81997792">
<ToolWindow Key="Tool Window Properties" Guid="a25219b6-00d0-411b-9a84-36bc81997792" DockedSize="194, 383" FloatingSize="0, 0" ImageIndex="0" Text="TW Properties" TitleBarText="Tool Window Properties">
<AutoHideStateInfo RootDock="Right" />
<DockedInsideHostStateInfo RootDock="Right" IsAttached="False">
<DockedBy Guid="f27b120c-f1b5-4f23-86dc-2ab2390d5269" RootDock="None" DockOperationType="BottomInner" IsTopMost="False" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
</ToolWindowContainer>
</DockContainerContainer>
</HostContainerControl>
<AutoHide Dock="Left" />
<AutoHide Dock="Right" />
<AutoHide Dock="Top" />
<AutoHide Dock="Bottom" />
<TabbedDocuments Orientation="Horizontal" />
<FloatingContainers />
<Hidden>
<ToolWindow Key="Events" Guid="365e1ae6-7303-49bd-826b-93123fe0e5aa" State="DockableInsideHost" AutoHideSize="300, 300" DockedSize="200, 437" FloatingSize="0, 0" ImageIndex="1" Text="Events">
<AutoHideStateInfo RootDock="Bottom" />
<DockedInsideHostStateInfo RootDock="Bottom" IsAttached="False">
<DockedBy Guid="2d0aa1ee-2681-4ad4-97c6-a77b88e1981d" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" />
<DockedBy Guid="f27b120c-f1b5-4f23-86dc-2ab2390d5269" RootDock="Right" DockOperationType="LeftOuter" IsTopMost="True" />
<DockedBy Guid="a25219b6-00d0-411b-9a84-36bc81997792" RootDock="Right" DockOperationType="LeftOuter" IsTopMost="True" />
</DockedInsideHostStateInfo>
<DockedOutsideHostStateInfo IsAttached="False" />
</ToolWindow>
</Hidden>
</LayoutData>
<CustomData />
</ToolWindowLayout>
[Modified 2 months ago]