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 - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -