The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Scroller/Repeater back button behaviour

Last post 10-12-2008, 7:08 PM by IgnoranceIsBliss. 3 replies.
Sort Posts: Previous Next
  •  10-03-2008, 6:18 AM 8438

    Scroller/Repeater back button behaviour

    I have a gridlayout repeater in a scroller that displays 2 rows by 4 columns on the screen.  Selecting one the items in the grid navigates to a detail page using HistoryOrientedPageSession.  My problem is when I go back to the grid page from a detail page using the back button.

    If I have navigated to a detail page of one of the first 48 items when I return to the grid and scroller by pressing the back button it automatically jumps to the previously selected item.  This is the behaviour I want.  Unfortunately, selecting an item after the first 48 items and then returning to the grid by pressing the back button does not result in it automatically jumping to the previously selceted item.  The item that is selected is simply the first in the grid.

    Is this normal behaviour?  Can I configure it in some way to behave the way I want or do I have to find a work around?

    Thanks

  •  10-04-2008, 12:56 AM 8440 in reply to 8438

    Re: Scroller/Repeater back button behaviour

    Have a look at video browser source, we subclass HistoryOrientedPage and trigger a navigation command to the grid on back navigation.


  •  10-07-2008, 8:13 AM 8466 in reply to 8440

    Re: Scroller/Repeater back button behaviour

    I've implemented this as per IgnoranceIsBliss' solution here - http://discuss.mediacentersandbox.com/forums/permalink/3177/3197/ShowThread.aspx#3197
  •  10-12-2008, 7:08 PM 8482 in reply to 8466

    Re: Scroller/Repeater back button behaviour

    Now-adays I also use the 'Scroller.Scroll' function occasionally, too. But if you are only ever moving one item ahead, this solution will work fine.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems