Windows Phone 7.5 Listbox / button text update across multiple pages
-
Hey all, I am trying to figure out something simple...maybe.. A very simple 2 xaml page app for windows phone. Page1 has a button with default text.."button"..no biggie OnHold event navigates to second page: this I have...that was easy. Page 2 has a Listbox, with say 3 items..item1, item2 and item3. Here's what I want to do. I select an item, 1 or 2 or 3, and the items name is displayed in the button...updated text...so now the button says item1 , for example. Also...the item selected, selects an object that resides ina folder in the solution.. Lets say I call this folder Resources..and in the folder are text files or png's or whatever.. How would I update the text in the button, that shows the selected item from a different page?
-
Hey all, I am trying to figure out something simple...maybe.. A very simple 2 xaml page app for windows phone. Page1 has a button with default text.."button"..no biggie OnHold event navigates to second page: this I have...that was easy. Page 2 has a Listbox, with say 3 items..item1, item2 and item3. Here's what I want to do. I select an item, 1 or 2 or 3, and the items name is displayed in the button...updated text...so now the button says item1 , for example. Also...the item selected, selects an object that resides ina folder in the solution.. Lets say I call this folder Resources..and in the folder are text files or png's or whatever.. How would I update the text in the button, that shows the selected item from a different page?
You could pass parameters between pages just like in HTML pages so as to update the button content. An example is mentioned here: How To: Perform Page Navigation Hope this answers your question. Sandeep.