Accessing UI elements from delegate function in Windows Phone 7

Posted by EpsilonVector on Programmers See other posts from Programmers or by EpsilonVector
Published on 2012-06-15T17:42:27Z Indexed on 2012/06/15 21:24 UTC
Read the original article Hit count: 361

Filed under:

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?

© Programmers or respective owner

Related posts about windows-phone-7