标签:
1 ResultListCtrl.Dispatcher.BeginInvoke( 2 new Action(() => { 3 ResultListCtrl.Items.Add(str); 4 5 if (VisualTreeHelper.GetChildrenCount(ResultListCtrl) > 0) 6 { 7 Border border = (Border)VisualTreeHelper.GetChild(ResultListCtrl, 0); 8 ScrollViewer scrollViewer = (ScrollViewer)VisualTreeHelper.GetChild(border, 0); 9 scrollViewer.ScrollToBottom(); 10 } 11 }), 12 null); 13 Thread.Sleep(200); 14 }
标签:
原文地址:http://www.cnblogs.com/mymeng_feng/p/5177938.html