For a simple WPF window, is it possible to increase the area where the mouse can resize the window? For example:
The border is too thin. I tried the following workarounds but only the edge part of the window acts as an area for resizing:
BorderThickness
of the windowWS_THICKFRAME
You can set WindowStyle="None" and set borderbrush and borderthickness to achieve what you expect.
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="100" Width="100" WindowStyle="None" BorderThickness="3" BorderBrush="Black" ResizeMode="CanResizeWithGrip" >
Hello World
</Window>
Hope it works for you!
Or use Wpf custom window, Windows edge resize feature
Wpf custom window, Windows edge resize feature
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With