void windowMonitor_LocationChanged(object sender, RectEventArgs e) { Dispatcher.Invoke(() => { base.Top = e.Rectangle.Bottom - this.Height; base.Left = e.Rectangle.Right - this.Width; }); }