private void DebugLoader_Loaded(object Sender, RoutedEventArgs e) { //place relative to coreloader this.Left = this.Owner.Left + 20; this.Top = this.Owner.Top + 20; this.debugBox.Width = this.Width - 20; this.debugBox.Height = this.Height - 75; //set console out to this control TraceListener debugListener = new MyTraceListener(debugBox); Debug.Listeners.Add(debugListener); //Trace.Listeners.Add(debugListener); }