示例#1
0
        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();
        }
示例#2
0
 private void OnVolume(object obj, ClickEventArgs args)
 {
     Win32ApiHelper.Mute(Handle);
 }
示例#3
0
 private void OnPrev(object obj, ClickEventArgs args)
 {
     MediaController.Instance.Previous();
 }
示例#4
0
 private void OnNext(object obj, ClickEventArgs args)
 {
     MediaController.Instance.Next();
 }
示例#5
0
        //private void OnTimelinePropertiesChanged(object sender, TimelinePropertiesChangedEventArgs e)
        //{
        //    this.Invoke((Action)delegate () { this.UpdatePlaybackPosition(); });
        //}

        private void OnPlayPouse(object obj, ClickEventArgs args)
        {
            MediaController.Instance.PlayPause();
        }