protected override void OnClick(EventArgs e) { base.OnClick(e); clickCount++; if (clickCount % 3 == 0) { TripleClick?.Invoke(this, clickCount); } }
/// <summary> /// /// </summary> /// <param name="e"></param> protected virtual void OnTripleClick(RoutedEventArgs e = null) { TripleClick?.Invoke(this, e == null ? new RoutedEventArgs() : e); }