views:

111

answers:

1

I have the following piece of XAML code:

<controlsInputToolkit:ContextMenuService.ContextMenu>
    <controlsInputToolkit:ContextMenu
                        Height="75"                                
                        Width="200"                                
                        IsOpen="False"
                        Visibility="Collapsed"
                        Closed="mnuPopup_Closed"
                        x:Name="mnuPopup">

        <controlsInputToolkit:MenuItem
                            x:Name="mnuAnswer911Call"
                            Header="Answer Call"
                            Click="mnuAnswer911Call_Click"
                            IsEnabled="True"/>

        <controlsInputToolkit:MenuItem
                            x:Name="mnuHangup911Call"
                            Header="Hangup call"
                            Click="mnuHangup911Call_Click"
                            IsEnabled="True"/>

    </controlsInputToolkit:ContextMenu>
</controlsInputToolkit:ContextMenuService.ContextMenu>

Let's say, based on context, I wanted to add a submenu to the mnuAnswer911Call menu item. How would I go about it?

+1  A: 

The Silverlight Context Menu does not support submenus yet. But there are open source alternatives to help you achieve this. Here is one:

www.sl4popupmenu.codeplex.com

Ziad