Few steps to test MvxEventToCommand in WPF:
Add xaml code to MainWindow:
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:cmd="clr-namespace:MvvmCross.Platforms.Wpf.Commands;assembly=MvvmCross.Platforms.Wpf"
and
<i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<cmd:MvxEventToCommand Command="{Binding LoadedCommand}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
After this I get error:
The name "MvxEventToCommand" does not exist in the namespace
Other namespaces from examples gives same result. What I doing wrong? My temporary solving of problem is copying of MvxEventToCommand.cs source in my Wpf project...
Update: Searching for "MvxEvenToCommand" or even "EventToCommand" in repo returns no results. Does MvvmCross contains this class really?
This has been removed from MvvmCross in 6.1. You can either copy it in yourself, or find another alternative.
The reason was that the dependency on System.Window.Interactivity
was problematic when using multi-targeting. We would be happy to add it back in if we can get this solved. We would accept a PR for this.