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

How to access a method of MainActivity.cs class from xaml.cs page in xamarin.forms?

$
0
0

HI,
I am working on xamarin.forms shared app. I need to open gallery in android device to select multiple images. I created a method in MainActivity.cs class that opens the gallery for android device. My button is in xaml page that page is placed in global folder in shared project. Now I need to access the method of MainActivity class from clicked event of the button. Can anyone tell me how I can access the method through button successfully.

Regards,
Anand Dubey


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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