question

JerryM-2071 avatar image
0 Votes"
JerryM-2071 asked JerryM-2071 answered

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

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

97135-final.jpg


dotnet-wpf-xaml
final.jpg (522.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JerryM-2071 avatar image
0 Votes"
JerryM-2071 answered

I am sorry but according to mechanical engineering drawing standards/rules the WPF visual designer shows wrong sizes. MS should correct/repair this terrible mistake.

http://www.pages.drexel.edu/~rcc34/Files/Teaching/MEM201%20L5-Fa0809-SpDimensions_RC.pdf
http://www.jaist.ac.jp/nmcenter/mshop/mshp/pdf/MDWfull_E.pdf

and also ISO/EN rules:
https://www.iso.org/ics/01.100.20/x/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimpleSamples avatar image
0 Votes"
SimpleSamples answered

Look at your Window element; the element first in the XAML. It has Height="400".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.