Beispiel #1
0
 private void LSTVWchat_SizeChanged(object sender, SizeChangedEventArgs e)
 {
     lock (newJudgeLock)
     {
         if (newLoad)
         {
             SCRVWchat.ChangeView(0, SCRVWchat.ScrollableHeight, 1, true);
             return;
         }
     }
     if (Math.Abs(SCRVWchat.ScrollableHeight - historyHeight) < 10)
     {
         return;
     }
     SCRVWchat.ChangeView(0, SCRVWchat.ScrollableHeight - historyHeight, 1, true);
     historyHeight = SCRVWchat.ScrollableHeight;
 }
Beispiel #2
0
 private void TXTBXchat_GotFocus(object sender, RoutedEventArgs e)
 {
     SCRVWchat.ChangeView(0, SCRVWchat.ScrollableHeight, 1, true);
 }