diff --git a/MyFirstMauiApp/MyFirstMauiApp.sln b/MyFirstMauiApp/MyFirstMauiApp.sln
index 4f7cf5f..915ee51 100644
--- a/MyFirstMauiApp/MyFirstMauiApp.sln
+++ b/MyFirstMauiApp/MyFirstMauiApp.sln
@@ -5,9 +5,11 @@ VisualStudioVersion = 17.8.34511.84
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Phoneword", "Phoneword\Phoneword.csproj", "{B3546A62-5BF5-4659-A76C-626F5781CDA4}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MauiUI", "MauiUI\MauiUI.csproj", "{62F41B46-D4DA-492C-B4B1-7B09FDC97E9F}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiUI", "MauiUI\MauiUI.csproj", "{62F41B46-D4DA-492C-B4B1-7B09FDC97E9F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PageLayout", "PageLayout\PageLayout.csproj", "{6115FFF0-9453-4924-9419-B1660B2BD2CB}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PageLayout", "PageLayout\PageLayout.csproj", "{6115FFF0-9453-4924-9419-B1660B2BD2CB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharedResources", "SharedResources\SharedResources.csproj", "{9A9A55D0-AD77-4510-97E7-A345ABFB5C28}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -33,6 +35,12 @@ Global
{6115FFF0-9453-4924-9419-B1660B2BD2CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6115FFF0-9453-4924-9419-B1660B2BD2CB}.Release|Any CPU.Build.0 = Release|Any CPU
{6115FFF0-9453-4924-9419-B1660B2BD2CB}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9A9A55D0-AD77-4510-97E7-A345ABFB5C28}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/MyFirstMauiApp/SharedResources/App.xaml b/MyFirstMauiApp/SharedResources/App.xaml
new file mode 100644
index 0000000..ce5dee9
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/App.xaml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+ #C0C0C0
+ #0000AD
+ 22
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/App.xaml.cs b/MyFirstMauiApp/SharedResources/App.xaml.cs
new file mode 100644
index 0000000..ef2408f
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/App.xaml.cs
@@ -0,0 +1,12 @@
+namespace SharedResources
+{
+ public partial class App : Application
+ {
+ public App()
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/AppShell.xaml b/MyFirstMauiApp/SharedResources/AppShell.xaml
new file mode 100644
index 0000000..4d6a62d
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/AppShell.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/AppShell.xaml.cs b/MyFirstMauiApp/SharedResources/AppShell.xaml.cs
new file mode 100644
index 0000000..992c2ac
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/AppShell.xaml.cs
@@ -0,0 +1,14 @@
+namespace SharedResources
+{
+ public partial class AppShell : Shell
+ {
+ public AppShell()
+ {
+ InitializeComponent();
+
+ Routing.RegisterRoute(nameof(CustomTipPage), typeof(CustomTipPage));
+
+ Application.Current.UserAppTheme = AppTheme.Light;
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/CustomTipPage.xaml b/MyFirstMauiApp/SharedResources/CustomTipPage.xaml
new file mode 100644
index 0000000..8f08746
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/CustomTipPage.xaml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/CustomTipPage.xaml.cs b/MyFirstMauiApp/SharedResources/CustomTipPage.xaml.cs
new file mode 100644
index 0000000..613ef0b
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/CustomTipPage.xaml.cs
@@ -0,0 +1,56 @@
+namespace SharedResources;
+
+public partial class CustomTipPage : ContentPage
+{
+ public CustomTipPage()
+ {
+ InitializeComponent();
+
+ billInput.TextChanged += (s, e) => CalculateTip(false, false);
+ roundDown.Clicked += (s, e) => CalculateTip(false, true);
+ roundUp.Clicked += (s, e) => CalculateTip(true, false);
+
+ tipPercentSlider.ValueChanged += (s, e) =>
+ {
+ double pct = Math.Round(e.NewValue);
+ tipPercent.Text = $"{pct}%";
+ CalculateTip(false, false);
+ };
+ }
+
+ void CalculateTip(bool roundUp, bool roundDown)
+ {
+ double t;
+ if (Double.TryParse(billInput.Text, out t) && t > 0)
+ {
+ double pct = Math.Round(tipPercentSlider.Value);
+ double tip = Math.Round(t * (pct / 100.0), 2);
+
+ double final = t + tip;
+
+ if (roundUp)
+ {
+ final = Math.Ceiling(final);
+ tip = final - t;
+ }
+ else if (roundDown)
+ {
+ final = Math.Floor(final);
+ tip = final - t;
+ }
+
+ tipOutput.Text = tip.ToString("C");
+ totalOutput.Text = final.ToString("C");
+ }
+ }
+
+ private void OnNormalTip(object sender, EventArgs e)
+ {
+ tipPercentSlider.Value = 15;
+ }
+
+ private void OnGenerousTip(object sender, EventArgs e)
+ {
+ tipPercentSlider.Value = 20;
+ }
+}
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/MauiProgram.cs b/MyFirstMauiApp/SharedResources/MauiProgram.cs
new file mode 100644
index 0000000..3a63731
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/MauiProgram.cs
@@ -0,0 +1,25 @@
+using Microsoft.Extensions.Logging;
+
+namespace SharedResources
+{
+ public static class MauiProgram
+ {
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Android/AndroidManifest.xml b/MyFirstMauiApp/SharedResources/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Android/MainActivity.cs b/MyFirstMauiApp/SharedResources/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..79484e2
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Android/MainActivity.cs
@@ -0,0 +1,11 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace SharedResources
+{
+ [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+ public class MainActivity : MauiAppCompatActivity
+ {
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Android/MainApplication.cs b/MyFirstMauiApp/SharedResources/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..f196d9e
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Android/MainApplication.cs
@@ -0,0 +1,16 @@
+using Android.App;
+using Android.Runtime;
+
+namespace SharedResources
+{
+ [Application]
+ public class MainApplication : MauiApplication
+ {
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Android/Resources/values/colors.xml b/MyFirstMauiApp/SharedResources/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/AppDelegate.cs b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..d4c852d
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace SharedResources
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Info.plist b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..c96dd0a
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Program.cs b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..2dd0870
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace SharedResources
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Tizen/Main.cs b/MyFirstMauiApp/SharedResources/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..4e2e869
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Tizen/Main.cs
@@ -0,0 +1,17 @@
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+using System;
+
+namespace SharedResources
+{
+ internal class Program : MauiApplication
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Tizen/tizen-manifest.xml b/MyFirstMauiApp/SharedResources/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..568ded9
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml b/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..eb9d092
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml.cs b/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..9d4c677
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,25 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace SharedResources.WinUI
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : MauiWinUIApplication
+ {
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Windows/Package.appxmanifest b/MyFirstMauiApp/SharedResources/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..5fd1568
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/Platforms/Windows/app.manifest b/MyFirstMauiApp/SharedResources/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..48b1e06
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/Platforms/iOS/AppDelegate.cs b/MyFirstMauiApp/SharedResources/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..d4c852d
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,10 @@
+using Foundation;
+
+namespace SharedResources
+{
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Platforms/iOS/Info.plist b/MyFirstMauiApp/SharedResources/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/MyFirstMauiApp/SharedResources/Platforms/iOS/Program.cs b/MyFirstMauiApp/SharedResources/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..2dd0870
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Platforms/iOS/Program.cs
@@ -0,0 +1,16 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace SharedResources
+{
+ public class Program
+ {
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+ }
+}
diff --git a/MyFirstMauiApp/SharedResources/Properties/launchSettings.json b/MyFirstMauiApp/SharedResources/Properties/launchSettings.json
new file mode 100644
index 0000000..edf8aad
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Resources/AppIcon/appicon.svg b/MyFirstMauiApp/SharedResources/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Resources/AppIcon/appiconfg.svg b/MyFirstMauiApp/SharedResources/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Regular.ttf b/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..dadcb01
Binary files /dev/null and b/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Semibold.ttf b/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..5601642
Binary files /dev/null and b/MyFirstMauiApp/SharedResources/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/MyFirstMauiApp/SharedResources/Resources/Images/dotnet_bot.svg b/MyFirstMauiApp/SharedResources/Resources/Images/dotnet_bot.svg
new file mode 100644
index 0000000..abfaff2
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/Images/dotnet_bot.svg
@@ -0,0 +1,93 @@
+
diff --git a/MyFirstMauiApp/SharedResources/Resources/Raw/AboutAssets.txt b/MyFirstMauiApp/SharedResources/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..15d6244
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/MyFirstMauiApp/SharedResources/Resources/Splash/splash.svg b/MyFirstMauiApp/SharedResources/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Resources/Styles/Colors.xaml b/MyFirstMauiApp/SharedResources/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..245758b
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/Styles/Colors.xaml
@@ -0,0 +1,44 @@
+
+
+
+
+ #512BD4
+ #DFD8F7
+ #2B0B98
+ White
+ Black
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #F7B548
+ #FFD590
+ #FFE5B9
+ #28C2D1
+ #7BDDEF
+ #C3F2F4
+ #3E8EED
+ #72ACF1
+ #A7CBF6
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/Resources/Styles/Styles.xaml b/MyFirstMauiApp/SharedResources/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..dc4a034
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/Resources/Styles/Styles.xaml
@@ -0,0 +1,405 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/SharedResources.csproj b/MyFirstMauiApp/SharedResources/SharedResources.csproj
new file mode 100644
index 0000000..fe969ce
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/SharedResources.csproj
@@ -0,0 +1,64 @@
+
+
+
+ net7.0-android;net7.0-ios;net7.0-maccatalyst
+ $(TargetFrameworks);net7.0-windows10.0.19041.0
+
+
+ Exe
+ SharedResources
+ true
+ true
+ enable
+
+
+ SharedResources
+
+
+ com.companyname.sharedresources
+ b4de7769-88a7-42b6-a7fc-a22b19027bd3
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MSBuild:Compile
+
+
+ MSBuild:Compile
+
+
+
+
diff --git a/MyFirstMauiApp/SharedResources/StandardTipPage.xaml b/MyFirstMauiApp/SharedResources/StandardTipPage.xaml
new file mode 100644
index 0000000..befa535
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/StandardTipPage.xaml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ #C0C0C0
+ #0000AD
+ 22
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyFirstMauiApp/SharedResources/StandardTipPage.xaml.cs b/MyFirstMauiApp/SharedResources/StandardTipPage.xaml.cs
new file mode 100644
index 0000000..1d72146
--- /dev/null
+++ b/MyFirstMauiApp/SharedResources/StandardTipPage.xaml.cs
@@ -0,0 +1,45 @@
+using Color = Microsoft.Maui.Graphics.Color;
+
+namespace SharedResources;
+
+public partial class StandardTipPage : ContentPage
+{
+ private Color colorNavy = Colors.Navy;
+ private Color colorSilver = Colors.Silver;
+
+ public StandardTipPage()
+ {
+ InitializeComponent();
+ billInput.TextChanged += (s, e) => CalculateTip();
+ }
+
+ private void CalculateTip()
+ {
+ double bill;
+ if (Double.TryParse(billInput.Text, out bill) && bill > 0)
+ {
+ double tip = Math.Round(bill * 0.15, 2);
+ double final = bill + tip;
+
+ tipOutput.Text = tip.ToString("C");
+ totalOutput.Text = final.ToString("C");
+ }
+ }
+
+ private void OnLight(object sender, EventArgs e)
+ {
+ Resources["fgColor"] = colorNavy;
+ Resources["bgColor"] = colorSilver;
+ }
+
+ private void OnDark(object sender, EventArgs e)
+ {
+ Resources["fgColor"] = colorSilver;
+ Resources["bgColor"] = colorNavy;
+ }
+
+ private async void GotoCustom(object sender, EventArgs e)
+ {
+ await Shell.Current.GoToAsync(nameof(CustomTipPage));
+ }
+}
\ No newline at end of file