WPF preview isnt correct.
Ive had this issue in a bit. IDK if the problem ist on my site but it seems like i cant find anyone else with this issue.
So i made a Project with a Window that should be 150 in height and 400 in width. The Preview shows me the whole window. No element is cut. However when i compile the Window the elements get cut.
Can someone help me?

Please sign in to leave a comment.
Hello Ivan,
Thank you for contacting Rider support.
This is a known problem for WPF developers. I found several related threads you can find usefull:
I have several suggestions based on these threads:
Hope it helps.
SizeToContent="WidthAndHeight" fixed the problem.
I am happy to know that I was able to help.
Should you have any other questions or difficulties, please let me know.
Have a nice day!