Accessing UI elements from delegate function in Windows Phone 7
- by EpsilonVector
I have the following scenario:
a page with a bunch of UI elements (grids, textblocks, whatever), and a button that when clicked launches an asynchronous network transaction which, when finished, launches a delegate function.
I want to reference the page's UI elements from that delegate. Ideally I would like to do something like currentPage.getUIElementByName("uielement").insert(data), or even uielement.insert(data), or something similar.
Is there a way to do this? No matter what I try an exception is being thrown saying that I don't have permissions to access that element.
Is there a more correct way to handle updating pages with data retrieved over network?