From f9679e84cdbbff5b06c292df7c58a1d09bb72d8b Mon Sep 17 00:00:00 2001 From: Tobias Scholze Date: Tue, 20 Feb 2024 17:34:38 +0100 Subject: [PATCH] Enhanced BeginnersSeries sample (MauiApp2) to be more beginner's friendly - Updated solution, project and namespace to 'BeginnersTask' to be aligned with other samples naming structure - Fixed missing indents - Added comment to MauiProgram.cs with helpful links to Microsoft Learn - Added comment to MainViewModel.cs with helpful code pointers to see related setups and receivers of routings --- .../{MauiApp2.sln => BeginnersTask.sln} | 2 +- .../{MauiApp2 => BeginnersTask}/App.xaml | 4 ++-- .../{MauiApp2 => BeginnersTask}/App.xaml.cs | 2 +- .../{MauiApp2 => BeginnersTask}/AppShell.xaml | 5 ++--- .../AppShell.xaml.cs | 2 +- .../BeginnersTask.csproj} | 6 +++--- .../DetailPage.xaml | 8 ++++---- .../DetailPage.xaml.cs | 4 ++-- .../{MauiApp2 => BeginnersTask}/MainPage.xaml | 4 ++-- .../MainPage.xaml.cs | 4 ++-- .../MauiProgram.cs | 10 +++++---- .../Platforms/Android/AndroidManifest.xml | 2 +- .../Platforms/Android/MainActivity.cs | 2 +- .../Platforms/Android/MainApplication.cs | 2 +- .../Android/Resources/values/colors.xml | 0 .../Platforms/MacCatalyst}/AppDelegate.cs | 2 +- .../Platforms/MacCatalyst/Info.plist | 0 .../Platforms/MacCatalyst}/Program.cs | 2 +- .../Platforms/Tizen/Main.cs | 2 +- .../Platforms/Tizen/tizen-manifest.xml | 6 +++--- .../Platforms/Windows/App.xaml | 4 ++-- .../Platforms/Windows/App.xaml.cs | 2 +- .../Platforms/Windows/Package.appxmanifest | 0 .../Platforms/Windows/app.manifest | 2 +- .../Platforms/iOS}/AppDelegate.cs | 2 +- .../Platforms/iOS/Info.plist | 0 .../Platforms/iOS}/Program.cs | 2 +- .../Properties/launchSettings.json | 0 .../Resources/Colors.xaml | 0 .../Resources/Fonts/OpenSans-Regular.ttf | Bin .../Resources/Fonts/OpenSans-Semibold.ttf | Bin .../Resources/Images/dotnet_bot.svg | 0 .../Resources/Images/logo.png | Bin .../Resources/Raw/AboutAssets.txt | 0 .../Resources/Styles.xaml | 0 .../Resources/appicon.svg | 0 .../Resources/appiconfg.svg | 0 .../ViewModel/DetailViewModel.cs | 2 +- .../ViewModel/MainViewModel.cs | 19 +++++++++++++----- 39 files changed, 56 insertions(+), 46 deletions(-) rename 8.0/Beginners-Series/{MauiApp2.sln => BeginnersTask.sln} (88%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/App.xaml (84%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/App.xaml.cs (80%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/AppShell.xaml (79%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/AppShell.xaml.cs (86%) rename 8.0/Beginners-Series/{MauiApp2/MauiApp2.csproj => BeginnersTask/BeginnersTask.csproj} (95%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/DetailPage.xaml (69%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/DetailPage.xaml.cs (71%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/MainPage.xaml (95%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/MainPage.xaml.cs (69%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/MauiProgram.cs (71%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Android/AndroidManifest.xml (93%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Android/MainActivity.cs (93%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Android/MainApplication.cs (91%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Android/Resources/values/colors.xml (100%) rename 8.0/Beginners-Series/{MauiApp2/Platforms/iOS => BeginnersTask/Platforms/MacCatalyst}/AppDelegate.cs (87%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/MacCatalyst/Info.plist (100%) rename 8.0/Beginners-Series/{MauiApp2/Platforms/iOS => BeginnersTask/Platforms/MacCatalyst}/Program.cs (92%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Tizen/Main.cs (91%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Tizen/tizen-manifest.xml (54%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Windows/App.xaml (72%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Windows/App.xaml.cs (95%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Windows/Package.appxmanifest (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/Windows/app.manifest (90%) rename 8.0/Beginners-Series/{MauiApp2/Platforms/MacCatalyst => BeginnersTask/Platforms/iOS}/AppDelegate.cs (87%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Platforms/iOS/Info.plist (100%) rename 8.0/Beginners-Series/{MauiApp2/Platforms/MacCatalyst => BeginnersTask/Platforms/iOS}/Program.cs (92%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Properties/launchSettings.json (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Colors.xaml (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Fonts/OpenSans-Regular.ttf (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Fonts/OpenSans-Semibold.ttf (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Images/dotnet_bot.svg (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Images/logo.png (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Raw/AboutAssets.txt (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/Styles.xaml (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/appicon.svg (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/Resources/appiconfg.svg (100%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/ViewModel/DetailViewModel.cs (89%) rename 8.0/Beginners-Series/{MauiApp2 => BeginnersTask}/ViewModel/MainViewModel.cs (64%) diff --git a/8.0/Beginners-Series/MauiApp2.sln b/8.0/Beginners-Series/BeginnersTask.sln similarity index 88% rename from 8.0/Beginners-Series/MauiApp2.sln rename to 8.0/Beginners-Series/BeginnersTask.sln index 124e276ad..a43c0bef4 100644 --- a/8.0/Beginners-Series/MauiApp2.sln +++ b/8.0/Beginners-Series/BeginnersTask.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31611.283 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiApp2", "MauiApp2\MauiApp2.csproj", "{E00D4313-A6CA-4A1D-A1DB-C242961F1D15}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeginnersTask", "BeginnersTask\BeginnersTask.csproj", "{E00D4313-A6CA-4A1D-A1DB-C242961F1D15}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/8.0/Beginners-Series/MauiApp2/App.xaml b/8.0/Beginners-Series/BeginnersTask/App.xaml similarity index 84% rename from 8.0/Beginners-Series/MauiApp2/App.xaml rename to 8.0/Beginners-Series/BeginnersTask/App.xaml index a4492a0bd..a0f53e361 100644 --- a/8.0/Beginners-Series/MauiApp2/App.xaml +++ b/8.0/Beginners-Series/BeginnersTask/App.xaml @@ -1,8 +1,8 @@  + xmlns:local="clr-namespace:BeginnersTasks" + x:Class="BeginnersTasks.App"> diff --git a/8.0/Beginners-Series/MauiApp2/App.xaml.cs b/8.0/Beginners-Series/BeginnersTask/App.xaml.cs similarity index 80% rename from 8.0/Beginners-Series/MauiApp2/App.xaml.cs rename to 8.0/Beginners-Series/BeginnersTask/App.xaml.cs index 343ae2ac4..68f0dc474 100644 --- a/8.0/Beginners-Series/MauiApp2/App.xaml.cs +++ b/8.0/Beginners-Series/BeginnersTask/App.xaml.cs @@ -1,4 +1,4 @@ -namespace MauiApp2; +namespace BeginnersTasks; public partial class App : Application { diff --git a/8.0/Beginners-Series/MauiApp2/AppShell.xaml b/8.0/Beginners-Series/BeginnersTask/AppShell.xaml similarity index 79% rename from 8.0/Beginners-Series/MauiApp2/AppShell.xaml rename to 8.0/Beginners-Series/BeginnersTask/AppShell.xaml index 956c6fba7..4cce020dd 100644 --- a/8.0/Beginners-Series/MauiApp2/AppShell.xaml +++ b/8.0/Beginners-Series/BeginnersTask/AppShell.xaml @@ -1,13 +1,12 @@ - diff --git a/8.0/Beginners-Series/MauiApp2/AppShell.xaml.cs b/8.0/Beginners-Series/BeginnersTask/AppShell.xaml.cs similarity index 86% rename from 8.0/Beginners-Series/MauiApp2/AppShell.xaml.cs rename to 8.0/Beginners-Series/BeginnersTask/AppShell.xaml.cs index c39debce5..24f219c53 100644 --- a/8.0/Beginners-Series/MauiApp2/AppShell.xaml.cs +++ b/8.0/Beginners-Series/BeginnersTask/AppShell.xaml.cs @@ -1,4 +1,4 @@ -namespace MauiApp2; +namespace BeginnersTasks; public partial class AppShell : Shell { diff --git a/8.0/Beginners-Series/MauiApp2/MauiApp2.csproj b/8.0/Beginners-Series/BeginnersTask/BeginnersTask.csproj similarity index 95% rename from 8.0/Beginners-Series/MauiApp2/MauiApp2.csproj rename to 8.0/Beginners-Series/BeginnersTask/BeginnersTask.csproj index b8be842a0..b10b5e3f3 100644 --- a/8.0/Beginners-Series/MauiApp2/MauiApp2.csproj +++ b/8.0/Beginners-Series/BeginnersTask/BeginnersTask.csproj @@ -14,16 +14,16 @@ Exe - MauiApp2 + BeginnersTasks true true enable - MauiApp2 + BeginnersTasks - com.companyname.mauiapp2 + com.companyname.BeginnersTasks 1.0 diff --git a/8.0/Beginners-Series/MauiApp2/DetailPage.xaml b/8.0/Beginners-Series/BeginnersTask/DetailPage.xaml similarity index 69% rename from 8.0/Beginners-Series/MauiApp2/DetailPage.xaml rename to 8.0/Beginners-Series/BeginnersTask/DetailPage.xaml index 4c3ce6a04..2ee7167db 100644 --- a/8.0/Beginners-Series/MauiApp2/DetailPage.xaml +++ b/8.0/Beginners-Series/BeginnersTask/DetailPage.xaml @@ -1,15 +1,15 @@