private void sliSong_MouseRightButtonUp(object sender, MouseButtonEventArgs e) { //右键切换为音量条效果 isSliderChanging = false; //CustomAnimations.FloatSlider(sliSong, 0, 200); 问题代码,加了会导致slider卡住 sliVolume.Visibility = Visibility.Visible; sliVolume.Value = 0; lblVolume.Content = player.Volume; lblPosition.Visibility = Visibility.Hidden; lblVolume.Visibility = Visibility.Visible; player.Volume = playervolume; CustomAnimations.FloatSlider(sliVolume, 0, player.Volume, 500); sliSong.Visibility = Visibility.Hidden; //timer.Interval = TimeSpan.FromMilliseconds(50); //加快timer时间 }
private void SongPic_MouseLeave(object sender, MouseEventArgs e) { CustomAnimations.OpacityAnimation(gridCover, 1, 200); CustomAnimations.ScaleEasingAnimationShow(gridCover, 0.9, 1, 500); }
private void Back_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { player.Stop(); timer.Stop(); CustomAnimations.FloatSlider(sliSong, 0, 200); }
private void Next_MouseLeave(object sender, MouseEventArgs e) { CustomAnimations.OpacityAnimation(Next, 1, 200); CustomAnimations.ScaleEasingAnimationShow(Next, 0.9, 1, 500); }
private void Back_MouseEnter(object sender, MouseEventArgs e) { CustomAnimations.OpacityAnimation(Back, 0.9, 200); CustomAnimations.ScaleEasingAnimationShow(Back, 1, 0.9, 500); }
private void PlayStop_MouseLeave(object sender, MouseEventArgs e) { CustomAnimations.OpacityAnimation(btnPlayStop, 1, 200); CustomAnimations.ScaleEasingAnimationShow(btnPlayStop, 0.9, 1, 500); }
private void b_MouseUp(object sender, MouseButtonEventArgs e) { CustomAnimations.OpacityAnimation(button, _mouseDownOpacity, _mouseEnterOpacity, 100); CustomAnimations.ScaleEasingAnimationShow(button, _mouseDownScale, _mouseEnterScale, 150); }
private void b_MouseLeave(object sender, MouseEventArgs e) { CustomAnimations.OpacityAnimation(button, _mouseEnterOpacity, 1, 200); CustomAnimations.ScaleEasingAnimationShow(button, _mouseEnterScale, 1, 300); }