lepoco / lepoco/wpfui

Cannot disable resizing in FluentWindow

Open
#1,691 6 comments 4 reactions 2 assignees View on GitHub

@pomianowski is already working on this.

Since May 13, 2026.

  • #1714 by @copilot-swe-agent — closed without merging
:star: top bug bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.