Create a ContextMenu with XAML for a ListBox and ListBoxItems

Many people who use business applications based on silverlight, like to get an contextmenu. This kind of "navigation" is well known and available in every windowsforms applications. They looking for a short way to edit or copy items, manipulate data and so on.The Problem: Many

C# (49.6 KB)
 
 
 
 
 
5 Star
(5)
3,149 times
Add to favorites
6/16/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Select ListBox item on right click with the ContextMenu
    2 Posts | Last post October 20, 2014
    • Hi,
      
      I'm trying to figure out how I could select the item in the ListBox when I right click for the ContextMenu.
      
    • I've been able to do so by having the rightmousedown with e.Handled = true and rightmouseup with the VisualTreeHelper and ContextMenu.IsOpen = true;
      
      Thank you anyway