I was wondering if there was an equivalent to the MVVMLight EventToCommand available when using a Xamarin Forms project that's using .NET Standards?
I found the following article: h t t p : / / blog.xamarin.com / turn-events-into-commands-with-behaviors, which basically shows you how to create a ListView behaviour to handle such a requirement but I don't like the idea as I would have to create a behaviour for every control type that require the "EventToCommand".
In the past, I would have used something similar to the below with the Microsoft Interactivity and MVVMLight libraries:
or with arguments
That's just 2 examples but I use this mechanism on many controls such as ListViews, Grids, TreeViews, etc... and while I know many of these won't be used in a Xamarin Forms project, I'd still prefer this scenario over the one where I'd have to create a Behaviour for each control and their corresponding events.
I'd like to know if there is an equivalent in Xamarin forms to this feature or if you know how to use this with the new mvvmlight .net standard library