0

As per a previous question Xamarin Forms slide button I have a custom controller. However, it currently only has an event attached to it and I would like it to be capable to handling commands so I can apply the MVVM pattern.

1 Answer 1

2

You can use the EventToCommandBehavior class which is part of xamarin.forms.

Documentation & samples here: Invoking a command when an event fires

Hope it helps!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.