Skip to content

Commit

Permalink
优化 : 歌词UI
Browse files Browse the repository at this point in the history
* 这下是真的中间了
* 隐藏滚动条
  • Loading branch information
kengwang committed Feb 20, 2021
1 parent 1ce31f6 commit 389ce8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HyPlayer/Pages/ExpandedPlayer.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
Text="歌手" />
<ScrollViewer
x:Name="LyricBoxContainer"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto">
VerticalScrollBarVisibility="Hidden"
HorizontalScrollBarVisibility="Hidden">
<ScrollViewer.Content>
<StackPanel
Name="LyricBox"
Expand Down
2 changes: 2 additions & 0 deletions HyPlayer/Pages/ExpandedPlayer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private void RefreshLyricTime()
public void LoadLyricsBox()
{
LyricBox.Children.Clear();
LyricBox.Children.Add(new Grid(){Height = LyricBoxContainer.ViewportHeight });
if (AudioPlayer.Lyrics.Count == 0)
{
LyricItem lrcitem = new LyricItem(SongLyric.PureSong);
Expand All @@ -96,6 +97,7 @@ public void LoadLyricsBox()
LyricBox.Children.Add(lrcitem);
}
}
LyricBox.Children.Add(new Grid() { Height = LyricBoxContainer.ViewportHeight });
}

public void OnSongChange(MediaPlaybackItem mpi)
Expand Down

0 comments on commit 389ce8c

Please sign in to comment.