Reputation: 547
I have define some properties at application level in windows phone 8.1 sliverlight. Now I want to get an object of app.xaml.cs from any page like we can get application class in android. Please let me know if anyone knows.
Upvotes: 0
Views: 115
Reputation: 759
If i'm not mistake the App class is static which means that you can call it in your page like this
App.MyProperty
Just make sure you make your properties static
If you have many things you want to access just create a new static class and add everything there, you'll it like I mentioned above
Upvotes: 1