WinRTXamlToolkit.Debugging.Views.DebugConsoleView.Append C# (CSharp) Méthode

Append() private méthode

private Append ( string line ) : void
line string
Résultat void
        internal void Append(string line)
        {
            if (!this.Dispatcher.HasThreadAccess)
            {
#pragma warning disable 4014
                this.Dispatcher.RunAsync(CoreDispatcherPriority.High, () => Append(line));
#pragma warning restore 4014

                return;
            }

            DebugTextBox.Text += line;
            var sv = DebugTextBox.GetFirstDescendantOfType<ScrollViewer>();

            if (sv != null &&
                sv.VerticalOffset + sv.ViewportHeight >= sv.ScrollableHeight - 1)
            {
                sv.ChangeView(0, 10000000, 1);
            }
        }