diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml new file mode 100644 index 0000000..89c7e99 --- /dev/null +++ b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml @@ -0,0 +1,8 @@ + + Welcome to Avalonia! + diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml.cs b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml.cs new file mode 100644 index 0000000..a8a9911 --- /dev/null +++ b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Views/LibraryTab.axaml.cs @@ -0,0 +1,19 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace FRESHMusicPlayer.Views +{ + public partial class LibraryTab : UserControl + { + public LibraryTab() + { + InitializeComponent(); + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } + } +} diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow.xaml b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow.xaml index b2e9f54..4819688 100644 --- a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow.xaml +++ b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow.xaml @@ -62,7 +62,7 @@ - + @@ -78,8 +78,8 @@ - - + + @@ -147,10 +147,8 @@ - - - - + + diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow_Logic.xaml.cs b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow_Logic.xaml.cs index b39722d..11952e2 100644 --- a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow_Logic.xaml.cs +++ b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/MainWindow_Logic.xaml.cs @@ -245,9 +245,9 @@ namespace FRESHMusicPlayer } if (CurrentPane != Pane.None) await HideAuxilliaryPane(true); - if (!openleft) DockPanel.SetDock(RightFrameBorder, Dock.Right); else DockPanel.SetDock(RightFrameBorder, Dock.Left); - RightFrameBorder.Visibility = Visibility.Visible; - RightFrameBorder.Width = width; + if (!openleft) DockPanel.SetDock(RightFrame, Dock.Right); else DockPanel.SetDock(RightFrame, Dock.Left); + RightFrame.Visibility = Visibility.Visible; + RightFrame.Width = width; RightFrame.Content = GetPageForPane(pane); var sb = InterfaceUtils.GetThicknessAnimation( @@ -257,7 +257,7 @@ namespace FRESHMusicPlayer new PropertyPath(MarginProperty), new ExponentialEase { EasingMode = EasingMode.EaseOut, Exponent = 3 }); - sb.Begin(RightFrameBorder); + sb.Begin(RightFrame); CurrentPane = pane; } @@ -265,13 +265,13 @@ namespace FRESHMusicPlayer { var sb = InterfaceUtils.GetThicknessAnimation( new Thickness(0), - DockPanel.GetDock(RightFrameBorder) == Dock.Left ? new Thickness(RightFrameBorder.Width * -1, 0, 0, 0) : new Thickness(0, 0, RightFrameBorder.Width * -1, 0), + DockPanel.GetDock(RightFrame) == Dock.Left ? new Thickness(RightFrame.Width * -1, 0, 0, 0) : new Thickness(0, 0, RightFrame.Width * -1, 0), TimeSpan.FromMilliseconds(120), new PropertyPath(MarginProperty), new ExponentialEase { EasingMode = EasingMode.EaseIn, Exponent = 3 }); - if (animate) await sb.BeginStoryboardAsync(RightFrameBorder); - RightFrameBorder.Visibility = Visibility.Collapsed; + if (animate) await sb.BeginStoryboardAsync(RightFrame); + RightFrame.Visibility = Visibility.Collapsed; RightFrame.Content = null; CurrentPane = Pane.None; } diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/LibraryPage.xaml b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/LibraryPage.xaml index beec897..17f06e1 100644 --- a/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/LibraryPage.xaml +++ b/FRESHMusicPlayer/FRESHMusicPlayer-WPF/Pages/Library/LibraryPage.xaml @@ -17,16 +17,14 @@ - - - - - - - - + + + + + + - - - - - - - - @@ -65,11 +62,11 @@ --> - -