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

Access to App class methods

$
0
0

It's possible access to my methods implemented in App class?
Sample
using System;
using Xamarin.Forms;
namespace MyApp
{
public class App : Application
{
public App()
{
MainPage = new MyAppPage();
}
// App evets
//...
public void MyMethod()
{
//....
}
}
}
How I access to "MyMethod" in MyAppPage code?
I try:

App.Current.MyMethod();

But don't works :_(

Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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