<Button>
<Button.InputBindings>
<MouseBinding Gesture="LeftDoubleClick" Command="YourCommand" />
</Button.InputBindings>
</Button>
http://thejoyofcode.com/Invoking_a_Command_on_a_Double_Click_or_other_Mouse_Gesture.aspx
More Related Contents:
- Weird problem where Button does not get re-enabled unless the mouse is clicked
- INotifyPropertyChanged vs. DependencyProperty in ViewModel
- Pushing read-only GUI properties back into ViewModel
- How to correctly bind to a dependency property of a usercontrol in a MVVM framework
- WPF CommandParameter is NULL first time CanExecute is called
- ItemsControl with multiple DataTemplates for a viewmodel
- WPF Grid as ItemsPanel for a list dynamically bound to an ItemsControl
- WPF MVVM INotifyPropertyChanged Implementation – Model or ViewModel
- Does WPF databinding marshall changes to the UI Thread?
- Executing a command on Checkbox.Checked or Unchecked
- How can I tell my DataTemplate to bind to a property in the PARENT ViewModel?
- How do you bind a CollectionContainer to a collection in a view model?
- How to bind WPF button to a command in ViewModelBase?
- Detecting WPF Validation Errors
- Firing a double click event from a WPF ListView item using MVVM
- WPF: simple TextBox data binding
- How to open a new window using MVVM Light Toolkit
- Binding WPF DataGrid to DataTable using TemplateColumns
- What does “{Binding Path=.}” mean in WPF binding?
- What are the various WPF binding modes?
- Template Binding in Control template
- Prism Custom Confirmation Interaction
- ElementName Binding is failing
- Binding a WPF DataGridComboBoxColumn with MVVM
- ValidationRule with ValidationStep=”UpdatedValue” is called with BindingExpression instead of updated value
- How to cancel an edit to an object using MVVM?
- MVVM and the TextBox’s SelectedText property
- InputBindings work only when focused
- MVVM pattern violation: MediaElement.Play()
- What exactly are “WPF services”?