From f866eaccb33fe16ad29f726e998bd5650089c58b Mon Sep 17 00:00:00 2001 From: marcchevaldonne Date: Tue, 23 Apr 2024 14:21:38 +0200 Subject: [PATCH] :construction: toolbar sample --- Samples.sln | 7 + ch02_DesigningViews/ex_Toolbar/App.xaml | 14 + ch02_DesigningViews/ex_Toolbar/App.xaml.cs | 11 + ch02_DesigningViews/ex_Toolbar/AppShell.xaml | 15 + .../ex_Toolbar/AppShell.xaml.cs | 9 + ch02_DesigningViews/ex_Toolbar/MainPage.xaml | 53 +++ .../ex_Toolbar/MainPage.xaml.cs | 24 + ch02_DesigningViews/ex_Toolbar/MauiProgram.cs | 24 + .../Platforms/Android/AndroidManifest.xml | 6 + .../Platforms/Android/MainActivity.cs | 10 + .../Platforms/Android/MainApplication.cs | 15 + .../Android/Resources/values/colors.xml | 6 + .../Platforms/MacCatalyst/AppDelegate.cs | 9 + .../Platforms/MacCatalyst/Entitlements.plist | 14 + .../Platforms/MacCatalyst/Info.plist | 38 ++ .../Platforms/MacCatalyst/Program.cs | 15 + .../ex_Toolbar/Platforms/Tizen/Main.cs | 16 + .../Platforms/Tizen/tizen-manifest.xml | 15 + .../ex_Toolbar/Platforms/Windows/App.xaml | 8 + .../ex_Toolbar/Platforms/Windows/App.xaml.cs | 24 + .../Platforms/Windows/Package.appxmanifest | 46 ++ .../ex_Toolbar/Platforms/Windows/app.manifest | 15 + .../ex_Toolbar/Platforms/iOS/AppDelegate.cs | 9 + .../ex_Toolbar/Platforms/iOS/Info.plist | 32 ++ .../ex_Toolbar/Platforms/iOS/Program.cs | 15 + .../ex_Toolbar/Properties/launchSettings.json | 8 + .../ex_Toolbar/Resources/AppIcon/appicon.svg | 4 + .../Resources/AppIcon/appiconfg.svg | 8 + .../Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107184 bytes .../Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111072 bytes .../Resources/Images/captions_bubble.png | Bin 0 -> 531 bytes .../Images/captions_bubble_primary.png | Bin 0 -> 832 bytes .../Images/captions_bubble_primarydark.png | Bin 0 -> 831 bytes .../Resources/Images/dotnet_bot.png | Bin 0 -> 69811 bytes .../ex_Toolbar/Resources/Images/hare.png | Bin 0 -> 1116 bytes .../Resources/Images/hare_primary.png | Bin 0 -> 1780 bytes .../Resources/Images/hare_primarydark.png | Bin 0 -> 1820 bytes .../Resources/Images/info_circle.png | Bin 0 -> 903 bytes .../Resources/Images/info_circle_primary.png | Bin 0 -> 1099 bytes .../Images/info_circle_primarydark.png | Bin 0 -> 1100 bytes .../Resources/Images/quote_bubble.png | Bin 0 -> 918 bytes .../Resources/Images/quote_bubble_primary.png | Bin 0 -> 944 bytes .../Images/quote_bubble_primarydark.png | Bin 0 -> 945 bytes .../ex_Toolbar/Resources/Raw/AboutAssets.txt | 15 + .../ex_Toolbar/Resources/Splash/splash.svg | 8 + .../ex_Toolbar/Resources/Styles/Colors.xaml | 45 ++ .../ex_Toolbar/Resources/Styles/Styles.xaml | 426 ++++++++++++++++++ .../ex_Toolbar/ex_Toolbar.csproj | 66 +++ 48 files changed, 1030 insertions(+) create mode 100644 ch02_DesigningViews/ex_Toolbar/App.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/App.xaml.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/AppShell.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/MainPage.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/MainPage.xaml.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/MauiProgram.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Android/AndroidManifest.xml create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Android/MainActivity.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Android/MainApplication.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Android/Resources/values/colors.xml create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/MacCatalyst/Entitlements.plist create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/MacCatalyst/Info.plist create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/MacCatalyst/Program.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Tizen/Main.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Tizen/tizen-manifest.xml create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Windows/App.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Windows/App.xaml.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Windows/Package.appxmanifest create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/Windows/app.manifest create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/iOS/AppDelegate.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/iOS/Info.plist create mode 100644 ch02_DesigningViews/ex_Toolbar/Platforms/iOS/Program.cs create mode 100644 ch02_DesigningViews/ex_Toolbar/Properties/launchSettings.json create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/AppIcon/appicon.svg create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/AppIcon/appiconfg.svg create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/captions_bubble.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/captions_bubble_primary.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/captions_bubble_primarydark.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/dotnet_bot.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/hare.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/hare_primary.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/hare_primarydark.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/info_circle.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/info_circle_primary.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/info_circle_primarydark.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/quote_bubble.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/quote_bubble_primary.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Images/quote_bubble_primarydark.png create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Raw/AboutAssets.txt create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Splash/splash.svg create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Styles/Colors.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/Resources/Styles/Styles.xaml create mode 100644 ch02_DesigningViews/ex_Toolbar/ex_Toolbar.csproj diff --git a/Samples.sln b/Samples.sln index 2f3cbeb..f1678e3 100644 --- a/Samples.sln +++ b/Samples.sln @@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_ShadowLabel", "ch02_Desi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_OutlineText", "ch02_DesigningViews\ex_OutlineText\ex_OutlineText.csproj", "{EAD02985-9DBA-459D-B12E-32A89D2C95C5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_Toolbar", "ch02_DesigningViews\ex_Toolbar\ex_Toolbar.csproj", "{0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,6 +45,10 @@ Global {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Debug|Any CPU.Build.0 = Debug|Any CPU {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.ActiveCfg = Release|Any CPU {EAD02985-9DBA-459D-B12E-32A89D2C95C5}.Release|Any CPU.Build.0 = Release|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -53,5 +59,6 @@ Global {C93C6EF6-C535-44C0-B5BF-0DD4988F3FA4} = {E9273679-4D52-465F-8C23-8096DD8C2A7B} {62F4D4C2-7C79-4090-BB4B-20F848322113} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} {EAD02985-9DBA-459D-B12E-32A89D2C95C5} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} + {0D77C4EE-DD5C-4DCB-8FCB-F3548BDD398C} = {1E07D063-F377-413B-B9A0-FB94AF14B1A9} EndGlobalSection EndGlobal diff --git a/ch02_DesigningViews/ex_Toolbar/App.xaml b/ch02_DesigningViews/ex_Toolbar/App.xaml new file mode 100644 index 0000000..07afafd --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/ch02_DesigningViews/ex_Toolbar/App.xaml.cs b/ch02_DesigningViews/ex_Toolbar/App.xaml.cs new file mode 100644 index 0000000..764e1f5 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/App.xaml.cs @@ -0,0 +1,11 @@ +namespace ex_Toolbar; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/ch02_DesigningViews/ex_Toolbar/AppShell.xaml b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml new file mode 100644 index 0000000..8aa41a4 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs new file mode 100644 index 0000000..a6c8b01 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace ex_Toolbar; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/ch02_DesigningViews/ex_Toolbar/MainPage.xaml b/ch02_DesigningViews/ex_Toolbar/MainPage.xaml new file mode 100644 index 0000000..d722d69 --- /dev/null +++ b/ch02_DesigningViews/ex_Toolbar/MainPage.xaml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + +