public void OnMouseButtonDown(MouseEventArgs e) { var handler = MouseButtonDown; if (handler != null) handler(this, e); }
private void SetTitle(object sender, MouseEventArgs mouseEventArgs) { var title = Control.FindByLocation(mouseEventArgs.Point).Title; Application.Current.Dispatcher.BeginInvoke(new Action(() => Title = string.IsNullOrEmpty(title) ? "No title found" : title)); }