How do I make a selected listbox item visible RRS feed

  • Question

  • Hi

     I have a ListBox with items in it. The items are shown horizontally.

    When I use the arrow keys to navigate between the items within the list box the selected item is not shown (it is outside the visible region).

    How can I get the selected item to automatically be scrolled into view when the user changes the selection?

    In WinForms you have ListView.EnsureVisible(int) that will do this, but I cant find anything simular in the Silverlight .ListBox.

    Thursday, August 14, 2008 7:44 AM


All replies