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?

enter image description here

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

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -