ResizableContentControl can not resize correctly in high DPI environment.

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 2 months ago by Yuki Ogawa
Version: 17.1.0652
Avatar

Hi,

I made the following XAML, but when resizing ResizableContentControl, there is a phenomenon that the movement amount of mouse cursor does not match the change amount of resizing.
It seems that it operates normally in an environment where DPI is 100%.

How can I fix it so that resizing works properly?

<Window x:Class="WpfApp1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <StackPanel>
        <shared:ResizableContentControl Padding="0,0,0,6" ResizeMode="Vertical">
            <DockPanel>
                <Border Background="Red" MinHeight="100"/>
            </DockPanel>
        </shared:ResizableContentControl>
    </StackPanel>    
</Window>

I wrote app.manifest as follows.

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
        <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
        <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
    </windowsSettings>
</application>

 

Environment

  • Windows10 Pro x64 1809
  • .NET 4.7.1
  • DPI=150%

Comments (1)

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

Hello,

Thank you for letting us know about this.  We've fixed it for the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.