Skip to content

Maximized windows with WindowStyle=None do not fill screen #206

@Cubey2019

Description

@Cubey2019

Describe the bug

After updating ControlzEx from v6.0.0 to v7.0.0, windows with WindowStyle=None don't look right when maximized. There is a gap around the sides and bottom which show the windows behind, and a line along the top edge which looks like it might be the default Window chrome.

This is reproducible in the showcase application.

Steps to reproduce

  1. Open Showcase Application.
  2. Set Style to 'None'.
  3. Maximise the window.

Expected behavior

When the window is maximised it should fill the available space.

Actual behavior

There is a transparent border around the maximised window.

Environment

ControlzEx version: v7.0.0
Windows build number: Windows 10 22H2 [Version 19045.5487] & Windows 11 23H2 [Version 22631.4890]
Visual Studio: 2022 17.13.2
Target Framework: .NET 9.0

Screenshots

v7.0.0 Showcase application maximised, you can see a white line at the top and Visual Studio around the edges:
Image

v6.0.0 Showcase application maximised:
Image

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions