The EventToCommandBehavior class provide a convenient way to, in XAML, "bind" events to ICommand according to MVVM paradigm to avoid code behind. [Prism docs]
This sample project, shows you how to use couple of common usages of EventToCommandBehavior in Xamarin.Forms.
-
Views/SimpleExamplePage
on this page you can find the simpliest way to useEventToCommandBehavior
withDelegateCommand
. -
Views/EventArgsConverterExamplePage
on this page you can find usage ofEventToCommandBehavior
in combination withEventArgsConverter
property andIValueConverter
. -
Views/EventArgsConverterExamplePage
on this page you can find usage ofEventToCommandBehavior
in combination withEventArgsParameterPath
property andItem
property.