XP-YESSSSSSS

Dell's already awesome XPS 15 gets even better in 2017

Surface table meets Windows 10

Yes, we did put Windows 10 on the original Surface table ... and it rocks

Cream o' the crop

Before buying a Microsoft laptop, check out our pick for the absolute best

Simple and secure, just the way I like it

We think Windows 10 Cloud is a great idea, here's why

uber micro

Halo Wars 2 has something for everyone. Here's our full review.

Oldie but goldie

We reviewed Microsoft's decade-old Surface table

Creators Update comin' at ya

These are the coolest new features in the next big Xbox One update (video)

Buyer's guide

The Razer Blade 14 is the best laptop Razer has to offer

Windows 10 app gems

10 terrific Windows 10 apps you should be using

Tower of power

Here's what we think of Dell's XPS Tower Special Edition

Quite a deal

Grab the complete C# coding bootcamp for $41!

Your go-to laptop guide

Introducing our ultimate laptop buyer's guide

Listen here

Attn Android and iPhone users: What you need to know about Windows phone

Old is new?

The original Surface Pro still holds its own in the 2-in-1 world

Xbox Greenlight?

No, internet, Microsoft isn't opening Xbox to all UWP games

Falling in love

HP Envy 34 review: An ultrawide curved all-in-one after my heart

2015 machine in 2017?

Surface 3 still holds its own in 2017

Let Kodi cut your cord

You should be using Kodi for Windows 10

Leader of the pack

HP's Spectre x360 15 just might be the best all-around laptop

New or refurbed?

Is a refurbed Surface right for you?

< >
Welcome to the Windows Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 2 of 2
  1. smithygreg's Avatar
    Member

    Posts
    1 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
       #1  
    Hi everyone. I am developing my first app and I am having a bit of a problem and not sure what it the general way to solve it..

    My app does a scrape of a website and returns a list of results to a pivotpage...

    I build a List<MyObject> where MyObject has all the data I am displaying then I bind it to the listbox using ListBox1.ItemsSource = MyList;

    This part is working just fine and I can link out from there to a details page for each item in the list...

    What I want is to be able to click the back button from the details page and have all of the listboxes still populated... Currently they are blank when I click the back button.

    Is there some setting like "isPostBack" on ASP.NET that needs to be turned on?
    Or do I need to store everything locally as well as display it and then repopulate it when the back button is clicked?
    Or is there a better tool to display/bind my data to that is better at remembering it's state?

    Thanks in advance...Sorry I don't have any code...I'm at work right now and it's on my home computer,,,

    -Greg
  2. rbrunner's Avatar
    Developer

    Posts
    112 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #2  
    Yes, that's a quite fundamental fact of WP7 programming: You have to save and restore any data that your page needs yourself.

    Just check the OnNavigatedTo and OnNavigatedFrom page methods in the source code of any non-trivial WP7 app to see the code there to save and restore state.

Posting Permissions