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%