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

Hooking into platform specific methods with xamarin forms buttons.

$
0
0

Right now I'm working on a lite drawing app for iOS and Android using Xamarin forms. So far I've been able to get the actual drawing aspect done with a custom UI view and renderer by way of this pretty awesome tutorial: http://www.infinite-x.net/2014/06/05/creating-a-drawing-app-using-xamarin-forms/

Now I'd like to start doing things like clearing the view, saving the file, etc. I can figure out how to do these things in the actual platform projects. What I don't get is how to, say... connect the 'clear' action to a Xamarin forms button. I'm pretty sure I can think of some ways to do this (say, a custom button using an interface that has a reference passed to it from the needed classes/variables), but I figured I'd ask in case there was a better and standard way to pull this off.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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