Joseph Anderson
Joseph Anderson

Reputation: 4144

The app failed to resume properly from snapped view

When my Windows 8 app returns from snapped view, it sends the user to the first page of the app. I received a failure notice that my app fails to resume properly, however, Windows passed it before. Is it illegal to send the user to the first page, when the user resumes from snapped mode? How do I tell the app what page the user is located and to restore it?

When my app enter exits snapped mode, this code runs:

void ShowCurrentViewState()
    {
        //this.UpdateUnsnapButtonState();

        // Query for the current view state
        ApplicationViewState currentState = Windows.UI.ViewManagement.ApplicationView.Value;

        if (currentState != ApplicationViewState.Snapped)
        {
            App.DataMode = Mode.Featured;
            this.Frame.Navigate(typeof(RestaurantSearchDetails));
        }
    }

Upvotes: 0

Views: 278

Answers (1)

Zhiming Xue
Zhiming Xue

Reputation: 352

The Reading and writing data sample shows how you can navigate between two different screens and change the layout for each screen depending on the view state, snapped vs. filled.

Upvotes: 1

Related Questions