understand that in App.Xaml.cs, I can create global variable and properties. How do I reference them from other page?? Itis ike App... something.
Use:
(App)App.Current
You can also create this property in your App class, so you don't have to cast it everytime:
public static new App Current
{
get { return Application.Current as App; }
}
With this property defined, you can reference your app just with App.Current
Hope it helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With