예제 #1
0
 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时间
 }
예제 #2
0
 private void SongPic_MouseLeave(object sender, MouseEventArgs e)
 {
     CustomAnimations.OpacityAnimation(gridCover, 1, 200);
     CustomAnimations.ScaleEasingAnimationShow(gridCover, 0.9, 1, 500);
 }
예제 #3
0
 private void Back_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     player.Stop();
     timer.Stop();
     CustomAnimations.FloatSlider(sliSong, 0, 200);
 }
예제 #4
0
 private void Next_MouseLeave(object sender, MouseEventArgs e)
 {
     CustomAnimations.OpacityAnimation(Next, 1, 200);
     CustomAnimations.ScaleEasingAnimationShow(Next, 0.9, 1, 500);
 }
예제 #5
0
 private void Back_MouseEnter(object sender, MouseEventArgs e)
 {
     CustomAnimations.OpacityAnimation(Back, 0.9, 200);
     CustomAnimations.ScaleEasingAnimationShow(Back, 1, 0.9, 500);
 }
예제 #6
0
 private void PlayStop_MouseLeave(object sender, MouseEventArgs e)
 {
     CustomAnimations.OpacityAnimation(btnPlayStop, 1, 200);
     CustomAnimations.ScaleEasingAnimationShow(btnPlayStop, 0.9, 1, 500);
 }
예제 #7
0
 private void b_MouseUp(object sender, MouseButtonEventArgs e)
 {
     CustomAnimations.OpacityAnimation(button, _mouseDownOpacity, _mouseEnterOpacity, 100);
     CustomAnimations.ScaleEasingAnimationShow(button, _mouseDownScale, _mouseEnterScale, 150);
 }
예제 #8
0
 private void b_MouseLeave(object sender, MouseEventArgs e)
 {
     CustomAnimations.OpacityAnimation(button, _mouseEnterOpacity, 1, 200);
     CustomAnimations.ScaleEasingAnimationShow(button, _mouseEnterScale, 1, 300);
 }