Viral Thakker
Viral Thakker

Reputation: 547

How to access App class from any page in Windows phone 8.1 sliverlight application?

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

Answers (1)

Dimitris Batsougiannis
Dimitris Batsougiannis

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

Related Questions