This project is read-only.
Just add the NuGet package or reference the DLL.

After you can use it this way :

<TextBlock Text="This is a test">
      <MetroEventToCommand:EventToCommand Command="{Binding TestCommand1}" Event="PointerEntered" CommandParameter="10" />
      <MetroEventToCommand:EventToCommand Command="{Binding TestCommand2}" Event="Tapped" CommandParameter="{Binding TestParam}"/>

Properties of EventToCommand are :
  • Command : The command. Must derive from ICommand (MVVM Light RelayCommand and RelayCommand<T> works also, as they derive from ICommand)
  • Event : the name of the event that launch the command
  • CommandParameter : The parameter to pss to the command

Last edited Jun 20, 2012 at 3:21 PM by OlivierMatis, version 2


No comments yet.