How can I access, using C#, a public instance method declared in App.xaml.cs?
How can I access, using C#, a public instance method declared in App.xaml.cs?
You can also add a static property in your App class with new modifier like so:
public static new App Current => Application.Current as App;
This way you can access your method like so:
App.Current.YourMethod()
Check this answer about new modifier on SO.