wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Using FluentWindow add addition space to the window

Open Porterbg opened this issue 7 months ago • 2 comments

Describe the bug

When changing from normal window to FluentWindow there is added space on the right and bottom. See in the screenshot the space in blue color is extra and should not be there. https://e.pcloud.link/publink/show?code=XZmkn6Zfn6yUBBwYmboxpWa1f9Dap4WHUIy

To Reproduce

Just create a window with specific width and height.

Expected behavior

Should not add additional content.

Screenshots

https://e.pcloud.link/publink/show?code=XZmkn6Zfn6yUBBwYmboxpWa1f9Dap4WHUIy

OS version

Windows 11

.NET version

.net 9

WPF-UI NuGet version

4.0.2

Additional context

No response

Porterbg avatar Jul 04 '25 12:07 Porterbg

Happens when using SizeToContent="WidthAndHeight"

Porterbg avatar Jul 04 '25 12:07 Porterbg

This is a pretty serious bug. Any workarounds or hacks? Anyone? I had to use SizeToContent as the Window height is ignored below a certain setting (it adds a bunch of unwanted space to the bottom, even if you set the Height="0". SizeToContent works except for the awful padding on the bottom and right of the FluentWindow

beefydog avatar Oct 27 '25 02:10 beefydog