title: Disable Right click and enable left click for contextmenu in WPF using MVVM
body: <p>Code:</p>
  
  <pre><code>&lt;Button Style="{StaticResource HPForegroundStyle}" IsTabStop="False"                 
          Command="{Binding ForegroundPhoneCommand}"  Click="Button_Click"&gt;
                      &lt;Button.ContextMenu&gt;                   
                          &lt;ContextMenu ItemsSource="{Binding OptionsMenuItemList}"                            ItemContainerStyle="{StaticResource ContextMenuItemStyle}" 
                                       IsOpen="{Binding IsMenuOpen}"                                        
                                       PlacementTarget="{Binding RelativeSourc={RelativeSource AncestorType={x:Type Button}}}"&gt;
                          &lt;/ContextMenu&gt;
                      &lt;/Button.ContextMenu&gt;
      &lt;/Button&gt;
  </code></pre>
  
  <p>i am using MVVM pattern. In ViewModel i have a property 'IsMenuOpen' which controls context menu open close .Problem is that i'm able to disable right click and not able to show context menu on left click.</p>