diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/LyricsPageViewModel.cs b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/LyricsPageViewModel.cs index b2f62af..7fd1534 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/LyricsPageViewModel.cs +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/ViewModels/LyricsPageViewModel.cs @@ -10,6 +10,7 @@ using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; using CommunityToolkit.Mvvm.Messaging.Messages; using Microsoft.UI.Xaml; +using System.Numerics; using System.Threading.Tasks; namespace BetterLyrics.WinUI3.ViewModels @@ -62,6 +63,9 @@ namespace BetterLyrics.WinUI3.ViewModels //[ObservableProperty] //public partial int Volume { get; set; } + [ObservableProperty] + public partial Vector3 BottomCenterCommandGridTranslation { get; set; } = new Vector3(0, 0, 0); + [ObservableProperty] public partial bool IsImmersiveMode { get; set; } diff --git a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/LyricsPage.xaml b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/LyricsPage.xaml index aba274f..e7c6d1f 100644 --- a/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/LyricsPage.xaml +++ b/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Views/LyricsPage.xaml @@ -18,7 +18,7 @@ xmlns:ui="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - + @@ -140,14 +140,15 @@ + Style="{StaticResource CardGridStyle}" + Translation="{x:Bind ViewModel.BottomCenterCommandGridTranslation, Mode=OneWay}"> + + + - - -