dotnet / dotnet/wpf

WPF Window isn't drawn in correct bounds if WindowState is Maximized and WindowStyle is changed in runtime

Open
#3,766 0 comments 2 reactions 0 assignees View on GitHub
.NET Framework
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/WPF-Window-isnt-drawn-in-correct-bounds/918914)._

---

To reproduce this issue, follow these steps:


1. Run the sample from the attachment.

2. Window is appeared as a full screen borderless window, covers the Taskbar.

2. Click the button "Click me".

3. Window style is changed from None to SingleBorder. It looks as a usual maximized window.

4. Click the button again.

5.Window style is changed to None again. But the window looks ugly, its size isn't correct, doesn't cover the Taskbar. All in all, it is expected looks like in step 2, but it doesn't.


attachments:

sample.mp4

sample.zip

---
### Original Comments

#### Feedback Bot on 2/17/2020, 07:31 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

#### Feedback Bot on 3/20/2020, 10:29 AM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.

---
### Original Solutions
(no solutions)

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.