C# store app, send parameters on Basic page back button -
i made c# store app. send parameters page , read them, works fine. send parameters other pages this:
this.frame.navigate(typeof(itemdetailpage), uniqueid); //(works)
i make use of basic pages (because has default backbutton , title. want send parameter sended itemdetailpage (like did in above example) in page on, perhaps in button?
does has solution how can save/ retreive de value when return current page?
thanks in advance.
there 2 ways perform this: 1) store value in isolatedstoragesettings object define in app.xaml.cs , store value in , retrive in desired pages. example :
public isolatedstoragesettings settings = isolatedstoragesettings.applicationsettings; store value : (app.current app).settings.add("sampledata", txtsomething.text); retrive : (string)(app.current app).settings["sampledata"]; , whenever want update data remove value inside , add again.
2) decalre variable in app.xaml.cs , access anywhere.
Comments
Post a Comment