WinRTXamlToolkit.Debugging.Views.DebugConsoleView.Append C# (CSharp) 메소드

Append() 개인적인 메소드

private Append ( string line ) : void
line string
리턴 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);
            }
        }