Tuesday, January 22, 2013

passing value from one page to another

passing value from one page to another

i m new developer to mobile apps and working on silverlight.

i want to knw how to pass value from textbox on one page to textbox on another page in mobile windows apps not in web apps using silverlight in c#.

Answers & Comments...

Answer: 1

So many options for this one:

  • Add variables to your app class
  • Global variable anywhere in the app (yuk)
  • Use a shared ViewModel if you are following the MVVM pattern
  • Store in App.Resource settings (these are easily bound to)
  • There is a shared app data store specifically for binding, but I can't remember what it is called or if it is in the mobile version (anybody?).

What are you doing with this value that is shared between to pages? The usage determines where/how it should be stored.

by : HiTech Magichttp://stackoverflow.com/users/201078

Answer: 2

I had a same problem but with MVVM. i found a nice answer here

EDIT:

Unfortunately Microsft closed the http://Silverlight.Net hence this link is broken! if you have this problem too,describe it specifically in another question if you need (Silverlight is a dead project or reincarnates in other form)

by : Meysam Javadihttp://stackoverflow.com/users/157405




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog