How to refer to properties of a global variable in an application from another page for a Windows phone

understand that in App.Xaml.cs I can create a global variable and properties. How do I link to other pages? Itis ike App ... something.

+5
source share
1 answer

Using:

(App)App.Current 

You can also create this property in your App class, so you do not need to do it every time:

 public static new App Current { get { return Application.Current as App; } } 

With this property, you can only link to your application using App.Current

Hope this helps!

+14
source

All Articles