From 0190bc4565046e7248fed2193e29a0ab43ca9105 Mon Sep 17 00:00:00 2001 From: Corentin LEMAIRE Date: Sun, 21 May 2023 18:16:49 +0200 Subject: [PATCH] Finish Playlists databinding development --- Sources/Linaris/App.xaml.cs | 1 - Sources/Linaris/Layout.xaml.cs | 32 ++-- Sources/Linaris/LocalFilesPage.xaml | 4 +- Sources/Linaris/LocalFilesPage.xaml.cs | 4 +- Sources/Linaris/PlaylistsPage.xaml | 96 +++++----- Sources/Linaris/PlaylistsPage.xaml.cs | 231 ++++++++++++++++++++++++- Sources/Model/Playlist.cs | 69 +++++++- 7 files changed, 351 insertions(+), 86 deletions(-) diff --git a/Sources/Linaris/App.xaml.cs b/Sources/Linaris/App.xaml.cs index f840c49..e91283f 100644 --- a/Sources/Linaris/App.xaml.cs +++ b/Sources/Linaris/App.xaml.cs @@ -13,7 +13,6 @@ public partial class App : Application public App() { InitializeComponent(); - MainPage = new AppShell(); } 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..a83d2a5 100644 --- a/Sources/Linaris/LocalFilesPage.xaml +++ b/Sources/Linaris/LocalFilesPage.xaml @@ -1,7 +1,7 @@ - +