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/SimpleExamplePageon this page you can find the simpliest way to useEventToCommandBehaviorwithDelegateCommand. -
Views/EventArgsConverterExamplePageon this page you can find usage ofEventToCommandBehaviorin combination withEventArgsConverterproperty andIValueConverter. -
Views/EventArgsConverterExamplePageon this page you can find usage ofEventToCommandBehaviorin combination withEventArgsParameterPathproperty andItemproperty.