← Back
James Montemagno February 25, 2021 14m

Turn any Event into a Command in Xamarin.Forms (MVVM All The Things)

Summary

The video tutorial explores transforming Xamarin Forms control events into MVVM commands using the Xamarin Community Toolkit's event-to-command behavior, specifically demonstrating how to convert a list view's item selected event into a bindable command. The presenter walks through implementing this technique in a coffee application, highlighting the toolkit's utility for converting events to commands and passing event arguments seamlessly. The practical takeaway is that developers can now easily convert any event into a command, improving MVVM architecture and code cleanliness by leveraging the event-to-command behavior and built-in converters.

View original episode ↗