WPF ToolBar: how to remove grip and overflow

后端 未结 6 2403
有刺的猬
有刺的猬 2020-12-07 14:29

In a nested WPF ToolBarPanel-ToolBar-Menu we want to get rid of the grip handle to the left and the overflow area to the right. they are both grayed out, but we\'d like them

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 14:59

    The methods above work to hide the overflow; I've used the following to hide the gripper:

             
    

    for a Horizontal layout, and

             
    

    for a Vertical layout. Place the above after the Toolbar(or ToolbarTray, if using that)

    Use whatever Width and Height is needed for your buttons.

    Kaxaml is excellent for playing with this stuff.

提交回复
热议问题