Skip to content

When Mica material is enabled and ResizeMode="NoResize", user can still resize window by dragging edges #123

@giosali

Description

@giosali

Describe the bug
If you have ApplyBackdropMaterial set to true and ResizeMode set to NoResize, you can still resize the window by dragging the edges of the window. When ApplyBackdropMaterial is set to false and ResizeMode is still set to NoResize, the user can no longer resize the window by dragging the edges of the window.

To Reproduce
Here's my XAML for the window:

<hc:Window x:Class="Dummy.MainWindow"
           x:Name="window"
           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:hc="https://handyorg.github.io/handycontrol"
           xmlns:local="clr-namespace:Dummy"
           mc:Ignorable="d"
           Title="MainWindow" Height="450" Width="800"
           ApplyBackdropMaterial="True"
           ResizeMode="NoResize">

Expected behavior
If the window's ResizeMode property is set to NoResize, the user should not be allowed to resize the window by dragging its edges, regardless of whether or not ApplyBackdropMaterial is set to true.

Environment (please complete the following information):

  • .net: net5.0-windows
  • IDE: vs2019
  • Version: 3.3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions