Setting Mode="MenuBarMode.Vertical" stacks top-level items in a column,
making BnMenuBar suitable for sidebars and navigation panels.
Sub-menus open as flyouts to the right rather than below the bar.
All other parameters and patterns are identical to the horizontal variant.
Wrap the menu in a fixed-width container to control its width in a sidebar. The active-state pattern works exactly the same as the horizontal variant.
The menu bar stretches to fill its container by default.
Constrain the width either with a wrapper element (as shown above) or via
ContainerModifier to add a fixed width directly to the menu surface.
@* Option 1 — wrapper element *@
<div style="width:200px;">
<BnMenuBar Mode="MenuBarMode.Vertical">...</BnMenuBar>
</div>
@* Option 2 — ContainerModifier *@
<BnMenuBar Mode="MenuBarMode.Vertical"
ContainerModifier="@BnModifier.Create(x => x.W(\"200px\"))">
...
</BnMenuBar>