suspicious window size: 400 = 100 + 300 + 22 ??? really

JerryM

Member
Joined
May 13, 2021
Messages
10
Programming Experience
Beginner
Hi,


I am using MS VS 2019 v16.9.5, C#/WPF and I can not understand to window size. See the picture below. Height of whole window is 400pixels - the label 400 is on the right side of the window. Inside the client area of my window is a grid with 2 rows with heights 100 and 300 pixels. This is clearly visible on the left side of my image below. My window has a title bar with height 22 pixels. The biggest problem is that I can not understand how 100 + 300 + 22 = 400. Is there someone responsible who can explain me it ?
Jerry


final.jpg
 

Attachments

  • final.jpg
    final.jpg
    522.3 KB · Views: 12
That's correct. The main window size you specify is the client and non-client areas combined. This is how Windows has worked since Windows 1.0.
 

Latest posts

Back
Top Bottom