private void RTB_Console_TextChanged(object sender, TextChangedEventArgs e) { Dispatcher.BeginInvoke((Action) delegate() { RTB_Console.ScrollToEnd(); }, DispatcherPriority.Render); }
public PopupUpdater() { Opacity = 0; InitializeComponent(); RTB_Console.Document.Blocks.Clear(); RTB_Console.AppendText(Sys.ConfUCS.Changelog); Version thisAppVer = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; lbl_CurVer.Content = "Current UCS version: " + thisAppVer.Major + "." + thisAppVer.Minor + "." + thisAppVer.Build + "." + thisAppVer.MinorRevision; lbl_NewVer.Content = "New UCS version: " + Sys.ConfUCS.NewVer.Major + "." + Sys.ConfUCS.NewVer.Minor + "." + Sys.ConfUCS.NewVer.Build + "." + Sys.ConfUCS.NewVer.MinorRevision; }
//ConsoleA1.ConsoleWrite_BuildAll_A(); #region ConsoleWriteTexts public void ConsoleWrite_ScrollToEnd() { RTB_Console.SelectionStart = RTB_Console.Text.Length; RTB_Console.ScrollToCaret(); }