使用ListBox的ScrollIntoView方法实现。
If the object is not visible, it is aligned at the top or bottom of the viewport.
以下的代码在Loaded event事件中实现listbox的翻页,当然也可以是在其他事件中实现。
private
void listBox1_Loaded(object sender, RoutedEventArgs e)
{
listBox1.ScrollIntoView(listBox1.Items[14]);
}
Cedar