Basem Abdelfattah
Basem Abdelfattah

Reputation: 119

SelectedItem of Listbox in WP7, doesnt scroll

i have 3 listboxes in a pivot page. Normaly when i write something like: listBox3.SelectedIndex = 10;

the item is selected and is displayed. No i have the problem, that the right item is selected, but that the listbox doesnt scroll to the selected item. Does someone has an idea what problem this is?

Upvotes: 1

Views: 402

Answers (1)

Praetorian
Praetorian

Reputation: 109089

Use the ScrollIntoView method.

listBox3.SelectedIndex = 10;
listBox3.ScrollIntoView( listBox3.SelectedItem );

Upvotes: 3

Related Questions