Exemple #1
0
 public void OnMouseButtonDown(MouseEventArgs e)
 {
     var handler = MouseButtonDown;
     if (handler != null) handler(this, e);
 }
Exemple #2
0
 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));
 }