protected override void OnMouseUp(MouseEventArgs e) { clickFinished = DateTime.Now; IsDown = false; ClickEventArgs args = new ClickEventArgs( new System.Windows.Point(e.Location.X, e.Location.Y), new System.Windows.Duration(clickFinished - clickStarted) ); if (isHover) { LeftClick?.Invoke(this, args); } Refresh(); }
private void OnVolume(object obj, ClickEventArgs args) { Win32ApiHelper.Mute(Handle); }
private void OnPrev(object obj, ClickEventArgs args) { MediaController.Instance.Previous(); }
private void OnNext(object obj, ClickEventArgs args) { MediaController.Instance.Next(); }
//private void OnTimelinePropertiesChanged(object sender, TimelinePropertiesChangedEventArgs e) //{ // this.Invoke((Action)delegate () { this.UpdatePlaybackPosition(); }); //} private void OnPlayPouse(object obj, ClickEventArgs args) { MediaController.Instance.PlayPause(); }