xaml - WPF: MenuItem inside toolbar border issue -
i have toolbar , need add menu part of (toolbar combines both menus , single click buttons). works fine except small visual issue.
when menu opened nicely connected toolbar (it inside same border). however, when menu on edge of screen open left, gap in menu border stays on left. ideas on how correclty align gap?
sample code:
<toolbartray islocked="true"> <toolbar> <menu> <menuitem header="menu item"> <menuitem header="item" /> <menuitem header="item 2" /> </menuitem> </menu> </toolbar> </toolbartray>
try putting toolbartray code inside grid should restrict going outside.

Comments
Post a Comment