Skip to content

Instantly share code, notes, and snippets.

@dkalamari
Created April 17, 2014 11:32
Show Gist options
  • Save dkalamari/10975989 to your computer and use it in GitHub Desktop.
Save dkalamari/10975989 to your computer and use it in GitHub Desktop.
WPF Event to Command
NuGet installation
PM> Install-Package System.Windows.Interactivity.WPF
Must be installed in Main project also!!!
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDoubleClick">
<i:InvokeCommandAction Command="{Binding SetUserCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment