Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Windows Phone 7.5 Listbox / button text update across multiple pages

Windows Phone 7.5 Listbox / button text update across multiple pages

Scheduled Pinned Locked Moved Mobile
wpftutorialquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 8442265
    wrote on last edited by
    #1

    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?

    R 1 Reply Last reply
    0
    • U User 8442265

      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?

      R Offline
      R Offline
      rd sandeep
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups