private void Play_Click(object sender, RoutedEventArgs e) //PLay Pause на одні кнопці { if (PausePlayMusic) { timerr.Start(); Play.BeginAnimation(Button.WidthProperty, animation); Gif.Play(); PlayerMusic.Play(); PausePlayMusic = false; return; } if (!PausePlayMusic) { timerr.Stop(); PlayerMusic.Pause(); Play.BeginAnimation(Button.HeightProperty, animation); PausePlayMusic = true; return; } }
private void animationButton() { Play.BeginAnimation(Button.WidthProperty, animation); Next.BeginAnimation(Button.WidthProperty, animation); Prev.BeginAnimation(Button.WidthProperty, animation); }