From 58773d678ea332a60a5cad4557db9bce55141514 Mon Sep 17 00:00:00 2001 From: "maxime.BATISTA@etu.uca.fr" Date: Thu, 20 Apr 2023 17:56:02 +0200 Subject: [PATCH] add CounterView and fix RecipesPage --- AppShell.xaml | 5 +++ Pages/MyList.xaml | 12 ------- Pages/MyList.xaml.cs | 9 ------ Pages/MyListPage.xaml | 58 ++++++++++++++++++++++++++++++++++ Pages/MyListPage.xaml.cs | 9 ++++++ Pages/RecipePage.xaml | 50 +++-------------------------- Pages/RecipePage.xaml.cs | 18 +---------- ShoopNCook.csproj | 12 +++++++ Views/CounterView.xaml | 52 ++++++++++++++++++++++++++++++ Views/CounterView.xaml.cs | 51 ++++++++++++++++++++++++++++++ Views/HeadedButton.xaml.cs | 6 ++-- Views/StoredRecipeView.xaml | 57 +++++++++++++++++++++++++++++++++ Views/StoredRecipeView.xaml.cs | 46 +++++++++++++++++++++++++++ 13 files changed, 299 insertions(+), 86 deletions(-) delete mode 100644 Pages/MyList.xaml delete mode 100644 Pages/MyList.xaml.cs create mode 100644 Pages/MyListPage.xaml create mode 100644 Pages/MyListPage.xaml.cs create mode 100644 Views/CounterView.xaml create mode 100644 Views/CounterView.xaml.cs create mode 100644 Views/StoredRecipeView.xaml create mode 100644 Views/StoredRecipeView.xaml.cs diff --git a/AppShell.xaml b/AppShell.xaml index 11750bd..9c51092 100644 --- a/AppShell.xaml +++ b/AppShell.xaml @@ -43,5 +43,10 @@ Title="Favorites Page" ContentTemplate="{DataTemplate pages:FavoritesPage}" Route="Favorites" /> + + \ No newline at end of file diff --git a/Pages/MyList.xaml b/Pages/MyList.xaml deleted file mode 100644 index 5aba502..0000000 --- a/Pages/MyList.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Pages/MyList.xaml.cs b/Pages/MyList.xaml.cs deleted file mode 100644 index 53af6f7..0000000 --- a/Pages/MyList.xaml.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace ShoopNCook.Pages; - -public partial class MyList : ContentPage -{ - public MyList() - { - InitializeComponent(); - } -} \ No newline at end of file diff --git a/Pages/MyListPage.xaml b/Pages/MyListPage.xaml new file mode 100644 index 0000000..e24a5a2 --- /dev/null +++ b/Pages/MyListPage.xaml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Pages/MyListPage.xaml.cs b/Pages/MyListPage.xaml.cs new file mode 100644 index 0000000..3dfaaaa --- /dev/null +++ b/Pages/MyListPage.xaml.cs @@ -0,0 +1,9 @@ +namespace ShoopNCook.Pages; + +public partial class MyListPage : ContentPage +{ + public MyListPage() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Pages/RecipePage.xaml b/Pages/RecipePage.xaml index e8c2942..e65a657 100644 --- a/Pages/RecipePage.xaml +++ b/Pages/RecipePage.xaml @@ -4,6 +4,7 @@ x:Class="ShoopNCook.Pages.RecipePage" Title="RecipePage" x:Name="RecipeViewPage" + xmlns:views="clr-namespace:ShoopNCook.Views" BackgroundColor="{StaticResource BackgroundPrimary}"> - - - - - - - - - - - - - +