From 07c235e56cff7f0a6d87ca47b6afa00aa71d1327 Mon Sep 17 00:00:00 2001 From: Alexandre Agostinho Date: Mon, 22 May 2023 09:57:22 +0200 Subject: [PATCH 1/7] first test link Home page recipe collection --- MCTG/Views/App.xaml | 2 +- MCTG/Views/App.xaml.cs | 6 +- MCTG/Views/Home.xaml | 66 ++++++++--- MCTG/Views/Home.xaml.cs | 14 ++- MCTG/Views/RecipeCase.xaml | 2 +- MCTG/Views/RecipeCase.xaml.cs | 9 ++ MCTG/Views/Views.csproj | 201 +++++++++++++++++----------------- 7 files changed, 182 insertions(+), 118 deletions(-) diff --git a/MCTG/Views/App.xaml b/MCTG/Views/App.xaml index 245d73b..beb7cff 100644 --- a/MCTG/Views/App.xaml +++ b/MCTG/Views/App.xaml @@ -1,7 +1,7 @@  diff --git a/MCTG/Views/App.xaml.cs b/MCTG/Views/App.xaml.cs index 6747bdf..c6a3215 100644 --- a/MCTG/Views/App.xaml.cs +++ b/MCTG/Views/App.xaml.cs @@ -14,7 +14,7 @@ namespace Views public App() { InitializeComponent(); - + /* Microsoft.Maui.Handlers.WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (handler, view) => { #if WINDOWS @@ -27,11 +27,11 @@ namespace Views appWindow.Resize(new SizeInt32(WindowWidth, WindowHeight)); #endif }); - + */ /* - Comment(ctrl-k + ctrl-c)/Uncomment(ctrl-k + ctrl-u) to change page - */ UserAppTheme = AppTheme.Light; - MainPage = new RecipeReviews(); + MainPage = new Home(); //MainPage = new MyPosts(); } } diff --git a/MCTG/Views/Home.xaml b/MCTG/Views/Home.xaml index 3ff47bd..af0f3e2 100644 --- a/MCTG/Views/Home.xaml +++ b/MCTG/Views/Home.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:local="clr-namespace:Views" + xmlns:model="clr-namespace:Model;assembly=Model" x:Class="Views.Home"> -