dotnet / dotnet/wpf

Strange behavior of GlassFrameThickness in WindowChrome.

Open
#7,769 10 comments 2 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Hello!

Why, when using WindowChrome, if you set `GlassFrameThickness="0"`, the edges remain rounded when trying to snap the window to any part of the screen? If you set any other value for GlassFrameThickness, the edges will not be rounded when the window is snapped to any part of the screen. Additionally, when using any value for GlassFrameThickness other than 0, white stripes appear in the direction of size changes, but this is not the case with GlassFrameThickness="0". What causes this behavior and how can it be changed?

Additionally, if you use a non-zero value for GlassFrameThickness, resizing occurs smoothly, but if GlassFrameThickness is set to 0, it will appear jerky and look terrible.

My question is, how can I get rid of the white stripes when resizing the window (which are not present when `GlassFrameThickness="0"`), while still maintaining smooth resizing (which is present when GlassFrameThickness is not equal to 0) and correct window snapping to the screen borders or when using Snap Layouts (i.e., the window will become square, as when GlassFrameThickness is not equal to 0)?

https://user-images.githubusercontent.com/40211394/234741460-0d97ce2f-bd8a-4b22-a2eb-4edc28b1bb6c.mp4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.