示例#1
0
 private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (LB.SelectedItem != null)
     {
         LB.ScrollIntoView(LB.SelectedItem);
     }
 }
示例#2
0
 private void LB_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     LB.ScrollIntoView(LB.SelectedItem);
 }