Skip to content

The content of WindowChromeWindow will miss one pixel on the top side if GlowColor is used #191

@Chaoses-Ib

Description

@Chaoses-Ib

Describe the bug

If GlowColor is used, the content of a WindowChromeWindow will miss one pixel on the top side. For example, GlowColor="Blue" and Background="Red":

image

image

This is caused by the Grid.Margin in the window template. When GlowColor is used the Padding will be set to defaultContentPadding, which is Thickness(0, 1, 0, 0). #175 says it fixes the one pixel miss, however, here it becomes the reason for the one pixel miss instead. If I set the Padding to 0, the one pixel miss will disappear.

Environment

ControlzEx version: v6.0.0
Windows build number: Win11 23H2 [Version 22631.3085] & Win10
Visual Studio: 2022 17.6.2
Target Framework: .Net Framework v4.8

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions