I am building an application on phone 7 using Silverlight, and you need to maintain some state between the pages. I was hoping to save the object in app.cs and access it from every page, but I could not find the documentation on how to do this.
What is the best way to access the same object between multiple pages?
Thank you for your time,
- Henry
Answered my own question. I can access the objects in app.cs by simply doing:
App app = (App)Application.Current; app.whateverMyObjectIsCalled
Is this a reasonable thing?
Source: https://habr.com/ru/post/1767015/More articles:How to use Curl from the command line to send a GET using cookies - curlWhy can't I find the "0" field in Solr? - luceneHow to open a specific section of a chm file in Python? - pythonSQL Server: get all parent child urls from one table - sqlHow to associate a complex dictionary with Gridview in asp.net? - c #SDL - (hardware) pixel scaling - pixelНесколько версий одного и того же браузера на ПК - cross-browserHow to manage PowerPoint Office 2010 presentation remotely using an Android application? - javaIdeas for implementing the Magento order approval process? - magentoALSA: a problem with loop sound - c ++All Articles