title: How to fire a command on double-click listbox item using MVVM?
body: <p>I'm trying to launch an ICommand when the user double-clicks on a listbox item.  Also, I'm trying to do this using the MVVM pattern.  </p>
  
  <p>In this XAML, the key press "p" works perfectly.  When I double click on the list box, the command never starts.  I've set a break point to confirm "PlayVideoCommand" is not called with a double-click.  Am I missing something or do I have to use Setter (which I'm not familiar with)?  </p>
  
  <pre><code>&lt;ListBox Name="SmallVideoPreviews" Grid.Column="1" MaxHeight="965"
      ItemsSource="{Binding BrowseVideos}" 
      ItemTemplate="{StaticResource BrowseTemplate}"&gt;
      &lt;ListBox.InputBindings&gt;
          &lt;KeyBinding Key="p" 
              Command="{Binding PlayVideoCommand}"
              CommandParameter="{Binding ElementName=SmallVideoPreviews, Path=SelectedItem}"/&gt;
          &lt;MouseBinding Gesture="LeftDoubleClick"
              Command="{Binding PlayVideoCommand}"
              CommandParameter="{Binding ElementName=SmallVideoPreviews, Path=SelectedItem}"/&gt;
      &lt;/ListBox.InputBindings&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>Both double-click and "p" should execute the same command.  When using the mouse, I can see the listboxitem is selected.  I have a hunch that the MouseBinding Command property is not a dependency property but I don't know how to confirm this.</p>