title: WPF Why can I not see submenu during design and which is only partially viewed during runtime?
body: <p>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.</p>
  <p>[ Xaml code]
  <a href="https://i.stack.imgur.com/BCkO5.png" rel="nofollow noreferrer">1</a></p>
  <p>As can be seen I am simply adding a menu bar that has one item Header=&quot;File&quot; within that MenuItem I add a submenu Header=&quot;New&quot;. What I expect to see in the XAML designer window is something like this</p>
  <p><a href="https://i.stack.imgur.com/yUyqU.png" rel="nofollow noreferrer">expected XAML Designer window</a></p>
  <p>What I see is nothing but the &quot;File&quot; header.
  Can anyone explain why I do not see the Header=&quot;New&quot; in the designer Window?</p>
  <p>I ran the application and the &quot;New&quot; item appears as shown here:</p>
  <p><a href="https://i.stack.imgur.com/e71nw.png" rel="nofollow noreferrer">I run the app and see this</a></p>
  <p>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?</p>
  <p>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?</p>