Example #1
0
        private void PreviewMode_ToggleButton_Checked(object sender, RoutedEventArgs e)
        {
            foreach (Lyric item in _viewModel.LyricItems)
            {
                MultilinePreview.Lyrics.Add(new Lyric(item));
            }

            MultilinePreview.IsEnabled = true;
            MultilinePreview.Reposition(Player.Position);
            SinglePreview.IsEnabled = false;
        }
Example #2
0
 private void Player_PositionChanged(AudioPlayer sender, PositionChangeEventArgs args)
 {
     if (args.IsUserChange)
     {
         SinglePreview.Reposition(args.Position);
         MultilinePreview.Reposition(args.Position);
     }
     else
     {
         SinglePreview.RefreshLyric(args.Position);
         MultilinePreview.RefreshLyric(args.Position);
     }
 }
Example #3
0
        private void Player_SourceChanged(AudioPlayer sender, MusicChangeEventArgs args)
        {
            if (_settings.IsFollowSongAlbumCover)
            {
                BlurBackground.Source = args.Source.AlbumImageData;
            }

            SinglePreview.Reposition(Player.Position);
            MultilinePreview.Reposition(Player.Position);

            #region Replace Lyrics Tags

            _viewModel.LyricsTags[0].TagValue = args.Source.Name;
            _viewModel.LyricsTags[1].TagValue = args.Source.Artist;
            _viewModel.LyricsTags[2].TagValue = args.Source.Album;

            #endregion
        }