public void Inspect(object rootToInspect) { ExceptionHandler.AddExceptionHandler(this.Dispatcher); this.Load(rootToInspect); this.Owner = SnoopWindowUtils.FindOwnerWindow(this); Trace.WriteLine("Showing snoop UI..."); this.Show(); this.Activate(); Trace.WriteLine("Shown and activated snoop UI."); }