Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Bind command to custom control and execute?

$
0
0

I've created a custom control which contains a UIButton, and I would like to be able to bind a command from my ViewModel to be executed when a gesture is executed on it.

I have added the action for the button in Xcode and then added a handler in my .cs file for the action - I'm just not sure how I execute a command from my non platform specific view model (presumably it's inside this handler?) when the action is fired?

If anyone could help shine some light on the issue it would be much appreciated, thank you.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>