Skip to content

Cannot disable resizing in FluentWindow #1691

@mic2000zero-lab

Description

@mic2000zero-lab

Describe the bug

Dear devs,

I use ResizeMode="NoResize" in my XAML with a <ui:FluentWindow..., but the window is still resizable...

I understand this may be a design choice, to always be able to resize your windows... It would be so nice if you just use ResizeMode="NoResize" in your XAML that options to resize the window would dissapear. Mostly because you want small pop-ups with are you sure for instance... or exception pop-ups...

Is this a design choice, or is there a different property I have to use to disable resizing?

To Reproduce

<ui:FluentWindow 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:ui="http://schemas.lepo.co/wpfui/2022/xaml" x:Class="Namespace.Views.SomeView" mc:Ignorable="d" Title="Window Title" Height="376" Width="420" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" ExtendsContentIntoTitleBar="True" WindowCornerPreference="Round" WindowBackdropType="Mica" ResizeMode="NoResize"

Expected behavior

The maximize, minimize buttons on the top right to be hidden, no cursor changes into resizing the window when placing the cursor at the edge of a FluentWindow

Screenshots

No response

OS version

Windows 11

.NET version

.NET10 WPF

WPF-UI NuGet version

4.2.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions