tags:

views:

1255

answers:

1

I am currently trying to make the WPF menu render vertically. I used the following code :

<Menu.ItemsPanel>
    <ItemsPanelTemplate>
        <VirtualizingStackPanel Orientation="Vertical"/>
    </ItemsPanelTemplate>
</Menu.ItemsPanel>

which is ok but I would like the submenus to show on left of each root menuitem. any pointers on how to do it ?

A: 

You should tweak template of the MenutItem control. If you don't have any examples of this control's template, you could create one using blend's feature "edit template -> edit a copy...". There, you have to find a Popup control and change its Placement property to whatever you want. This popup is where the subitems are hosted.

arconaut