WPF Why can I not see submenu during design and which is only partially viewed during runtime?

Viewed 8

here is my XAML code, It is very simple just for example. I am trying to build this example in VS-2022 and simply trying to understand why the results are counterintuitive. Obviously I am very new to WPF programming.

[ Xaml code] 1

As can be seen I am simply adding a menu bar that has one item Header="File" within that MenuItem I add a submenu Header="New". What I expect to see in the XAML designer window is something like this

expected XAML Designer window

What I see is nothing but the "File" header. Can anyone explain why I do not see the Header="New" in the designer Window?

I ran the application and the "New" item appears as shown here:

I run the app and see this

I would have expected that at least the submenu would have shown inside the application window. I have run into this anomaly on several projects and cannot seem to get a straightforward simple answer to my questions which are two?

Why can I not see the submenu in the designer window during design? Why does the submenu appear partially outside of the main app window during runtime?

0 Answers
Related