Question : Disable select on ListView right-mouse click


I want to be able to disable the selection of a ListViewItem on a right mouse click.  Instead, I want just the context menu to appear.

This way, users can select the items with a left mouse click and then perform a right mouse click to bring up the context menu (without it deselecting an already selected item).

Doea anybody know how this can be done?  XAML code for my ListView is below.  Items are added dynamically in code.

 
           
               
                    nuItem>
               

           

           
               
                   
                        te>
                           
                               
                               
                           

                        ate>
                   

                   
                   
                                       
               

           

       

Answer : Disable select on ListView right-mouse click

Random Solutions  
 
programming4us programming4us