From 37773637265ea46c32c57e9fe4c5bc21b6945608 Mon Sep 17 00:00:00 2001 From: Corentin LEMAIRE Date: Sun, 21 May 2023 18:47:30 +0200 Subject: [PATCH] Finish albums databinding development --- Sources/Linaris/AlbumPage.xaml | 4 - Sources/Linaris/FooterPage.xaml | 2 +- Sources/Linaris/Layout.xaml.cs | 32 +++---- Sources/Linaris/LocalFilesPage.xaml | 2 +- Sources/Linaris/MainPage.xaml | 87 ++++--------------- Sources/Linaris/MainPage.xaml.cs | 24 +++-- Sources/Linaris/Resources/Styles/Styles.xaml | 2 - .../Serialization/LINQ_XML_Serialization.cs | 21 ++++- 8 files changed, 68 insertions(+), 106 deletions(-) diff --git a/Sources/Linaris/AlbumPage.xaml b/Sources/Linaris/AlbumPage.xaml index 9aebfa2..7f15aca 100644 --- a/Sources/Linaris/AlbumPage.xaml +++ b/Sources/Linaris/AlbumPage.xaml @@ -8,10 +8,6 @@ Style="{StaticResource PageFlyoutTrigger}"> - - - - diff --git a/Sources/Linaris/FooterPage.xaml b/Sources/Linaris/FooterPage.xaml index 36a4be3..62a8718 100644 --- a/Sources/Linaris/FooterPage.xaml +++ b/Sources/Linaris/FooterPage.xaml @@ -17,7 +17,7 @@ - + diff --git a/Sources/Linaris/Layout.xaml.cs b/Sources/Linaris/Layout.xaml.cs index 81d840d..4fd35dd 100644 --- a/Sources/Linaris/Layout.xaml.cs +++ b/Sources/Linaris/Layout.xaml.cs @@ -1,29 +1,29 @@ -namespace Linaris; - -public partial class Layout : ContentView -{ - public Layout() - { - InitializeComponent(); - } - +namespace Linaris; + +public partial class Layout : ContentView +{ + public Layout() + { + InitializeComponent(); + } + private async void Go_Home(object sender, EventArgs e) { await Navigation.PushAsync(new MainPage()); - } - + } + private async void Go_Playlists(object sender, EventArgs e) { await Navigation.PushAsync(new PlaylistsPage()); - } - + } + private async void Go_Back(object sender, EventArgs e) { await Navigation.PopAsync(); - } - + } + private async void Go_Files(object sender, EventArgs e) { await Navigation.PushAsync(new LocalFilesPage()); - } + } } \ No newline at end of file diff --git a/Sources/Linaris/LocalFilesPage.xaml b/Sources/Linaris/LocalFilesPage.xaml index b0676cc..10860d2 100644 --- a/Sources/Linaris/LocalFilesPage.xaml +++ b/Sources/Linaris/LocalFilesPage.xaml @@ -24,7 +24,7 @@ - +