Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
giosali opened this issue Jan 26, 2022 · 0 comments
Labels
bug Something isn't working Fixed

Comments

@giosali
Copy link

giosali commented Jan 26, 2022

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
@ghost1372 ghost1372 added bug Something isn't working Fixed labels Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed
Projects
None yet
Development

No branches or pull requests

2 participants