ItemsSource, ItemTemplate and ContextMenu snafu RRS feed

  • Question

  • I'm trying to have a Context menu populated through a binding and would like to set command and header through binding.

    I'd like something like this:

    	<toolkit:ContextMenu ItemsSource="{Binding ContextMenuItems}" >
    				<toolkit:MenuItem Header="{Binding Name}"
    								  Command="{Binding Command}" />

    It kind of works but the problem is that each MenuItem contains another MenuItem inside it! 

    And I have to click it twice for the ContextMenu to close!

    Any advice would be appreciated!

    Thursday, September 16, 2010 2:03 AM


  • http://betaforums.silverlight.net/forums/p/199404/469808.aspx



    Monday, September 20, 2010 10:05 PM