From 7345ab2ecbc35f666ac910c0b110157940635507 Mon Sep 17 00:00:00 2001 From: syneffort Date: Tue, 9 Apr 2024 17:36:04 +0900 Subject: [PATCH] Binding --- MyFirstMauiApp/.vscode/launch.json | 2 +- .../BlazorHybridWithMAUI/wwwroot/css/app.css | 2 +- MyFirstMauiApp/MyFirstMauiApp.sln | 10 +- MyFirstMauiApp/WeatherClient/App.xaml | 14 + MyFirstMauiApp/WeatherClient/App.xaml.cs | 12 + MyFirstMauiApp/WeatherClient/AppShell.xaml | 13 + MyFirstMauiApp/WeatherClient/AppShell.xaml.cs | 10 + MyFirstMauiApp/WeatherClient/MainPage.xaml | 32 ++ MyFirstMauiApp/WeatherClient/MainPage.xaml.cs | 36 ++ MyFirstMauiApp/WeatherClient/MauiProgram.cs | 25 ++ .../WeatherClient/Models/WeatherData.cs | 16 + .../WeatherClient/Models/WeatherType.cs | 14 + .../Platforms/Android/AndroidManifest.xml | 6 + .../Platforms/Android/MainActivity.cs | 11 + .../Platforms/Android/MainApplication.cs | 16 + .../Android/Resources/values/colors.xml | 6 + .../Platforms/MacCatalyst/AppDelegate.cs | 10 + .../Platforms/MacCatalyst/Info.plist | 30 ++ .../Platforms/MacCatalyst/Program.cs | 16 + .../WeatherClient/Platforms/Tizen/Main.cs | 17 + .../Platforms/Tizen/tizen-manifest.xml | 15 + .../WeatherClient/Platforms/Windows/App.xaml | 8 + .../Platforms/Windows/App.xaml.cs | 25 ++ .../Platforms/Windows/Package.appxmanifest | 46 ++ .../Platforms/Windows/app.manifest | 15 + .../Platforms/iOS/AppDelegate.cs | 10 + .../WeatherClient/Platforms/iOS/Info.plist | 32 ++ .../WeatherClient/Platforms/iOS/Program.cs | 16 + .../Properties/launchSettings.json | 8 + .../Resources/AppIcon/appicon.svg | 4 + .../Resources/AppIcon/appiconfg.svg | 8 + .../Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107168 bytes .../Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111060 bytes .../WeatherClient/Resources/Images/cloud.png | Bin 0 -> 2576 bytes .../Resources/Images/dotnet_bot.svg | 93 ++++ .../Resources/Images/question.png | Bin 0 -> 1720 bytes .../WeatherClient/Resources/Images/sunny.png | Bin 0 -> 2669 bytes .../Resources/Raw/AboutAssets.txt | 15 + .../WeatherClient/Resources/Splash/splash.svg | 8 + .../Resources/Styles/Colors.xaml | 44 ++ .../Resources/Styles/Styles.xaml | 405 ++++++++++++++++++ .../WeatherClient/Services/WeatherServer.cs | 30 ++ .../WeatherClient/WeatherClient.csproj | 55 +++ 43 files changed, 1132 insertions(+), 3 deletions(-) create mode 100644 MyFirstMauiApp/WeatherClient/App.xaml create mode 100644 MyFirstMauiApp/WeatherClient/App.xaml.cs create mode 100644 MyFirstMauiApp/WeatherClient/AppShell.xaml create mode 100644 MyFirstMauiApp/WeatherClient/AppShell.xaml.cs create mode 100644 MyFirstMauiApp/WeatherClient/MainPage.xaml create mode 100644 MyFirstMauiApp/WeatherClient/MainPage.xaml.cs create mode 100644 MyFirstMauiApp/WeatherClient/MauiProgram.cs create mode 100644 MyFirstMauiApp/WeatherClient/Models/WeatherData.cs create mode 100644 MyFirstMauiApp/WeatherClient/Models/WeatherType.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Android/AndroidManifest.xml create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Android/MainActivity.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Android/MainApplication.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Android/Resources/values/colors.xml create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/MacCatalyst/Info.plist create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/MacCatalyst/Program.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Tizen/Main.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Tizen/tizen-manifest.xml create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Windows/App.xaml create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Windows/App.xaml.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Windows/Package.appxmanifest create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/Windows/app.manifest create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/iOS/AppDelegate.cs create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/iOS/Info.plist create mode 100644 MyFirstMauiApp/WeatherClient/Platforms/iOS/Program.cs create mode 100644 MyFirstMauiApp/WeatherClient/Properties/launchSettings.json create mode 100644 MyFirstMauiApp/WeatherClient/Resources/AppIcon/appicon.svg create mode 100644 MyFirstMauiApp/WeatherClient/Resources/AppIcon/appiconfg.svg create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Images/cloud.png create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Images/dotnet_bot.svg create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Images/question.png create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Images/sunny.png create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Raw/AboutAssets.txt create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Splash/splash.svg create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Styles/Colors.xaml create mode 100644 MyFirstMauiApp/WeatherClient/Resources/Styles/Styles.xaml create mode 100644 MyFirstMauiApp/WeatherClient/Services/WeatherServer.cs create mode 100644 MyFirstMauiApp/WeatherClient/WeatherClient.csproj diff --git a/MyFirstMauiApp/.vscode/launch.json b/MyFirstMauiApp/.vscode/launch.json index 01677be..d5b7fed 100644 --- a/MyFirstMauiApp/.vscode/launch.json +++ b/MyFirstMauiApp/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "maui", "request": "launch", "preLaunchTask": "maui: Build", - "project": "./" + "project": "./MauiBinding" } ] } diff --git a/MyFirstMauiApp/BlazorHybridWithMAUI/wwwroot/css/app.css b/MyFirstMauiApp/BlazorHybridWithMAUI/wwwroot/css/app.css index 6909156..15f7cf0 100644 --- a/MyFirstMauiApp/BlazorHybridWithMAUI/wwwroot/css/app.css +++ b/MyFirstMauiApp/BlazorHybridWithMAUI/wwwroot/css/app.css @@ -1,4 +1,4 @@ -@import url('open-iconic/font/css/open-iconic-bootstrap.min.css'); +@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css"); html, body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; diff --git a/MyFirstMauiApp/MyFirstMauiApp.sln b/MyFirstMauiApp/MyFirstMauiApp.sln index fbd3ca4..e4122c3 100644 --- a/MyFirstMauiApp/MyFirstMauiApp.sln +++ b/MyFirstMauiApp/MyFirstMauiApp.sln @@ -17,7 +17,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UseRestService", "UseRestSe EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LocalDataStorageWithSQLite", "LocalDataStorageWithSQLite\LocalDataStorageWithSQLite.csproj", "{B15EEC37-30AA-4A54-89D1-D5B3C4DB3E07}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorHybridWithMAUI", "BlazorHybridWithMAUI\BlazorHybridWithMAUI.csproj", "{D1B193FE-7F85-4709-BAB7-3E8B7110CF3E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorHybridWithMAUI", "BlazorHybridWithMAUI\BlazorHybridWithMAUI.csproj", "{D1B193FE-7F85-4709-BAB7-3E8B7110CF3E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeatherClient", "WeatherClient\WeatherClient.csproj", "{CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -73,6 +75,12 @@ Global {D1B193FE-7F85-4709-BAB7-3E8B7110CF3E}.Release|Any CPU.ActiveCfg = Release|Any CPU {D1B193FE-7F85-4709-BAB7-3E8B7110CF3E}.Release|Any CPU.Build.0 = Release|Any CPU {D1B193FE-7F85-4709-BAB7-3E8B7110CF3E}.Release|Any CPU.Deploy.0 = Release|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Release|Any CPU.Build.0 = Release|Any CPU + {CD7D204D-468C-4930-AFA1-9BD1DCE8E31C}.Release|Any CPU.Deploy.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/MyFirstMauiApp/WeatherClient/App.xaml b/MyFirstMauiApp/WeatherClient/App.xaml new file mode 100644 index 0000000..ba92b11 --- /dev/null +++ b/MyFirstMauiApp/WeatherClient/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/MyFirstMauiApp/WeatherClient/App.xaml.cs b/MyFirstMauiApp/WeatherClient/App.xaml.cs new file mode 100644 index 0000000..df96028 --- /dev/null +++ b/MyFirstMauiApp/WeatherClient/App.xaml.cs @@ -0,0 +1,12 @@ +namespace WeatherClient +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} diff --git a/MyFirstMauiApp/WeatherClient/AppShell.xaml b/MyFirstMauiApp/WeatherClient/AppShell.xaml new file mode 100644 index 0000000..8f3b0b1 --- /dev/null +++ b/MyFirstMauiApp/WeatherClient/AppShell.xaml @@ -0,0 +1,13 @@ + + + + + + diff --git a/MyFirstMauiApp/WeatherClient/AppShell.xaml.cs b/MyFirstMauiApp/WeatherClient/AppShell.xaml.cs new file mode 100644 index 0000000..478eb86 --- /dev/null +++ b/MyFirstMauiApp/WeatherClient/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace WeatherClient +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/MyFirstMauiApp/WeatherClient/MainPage.xaml b/MyFirstMauiApp/WeatherClient/MainPage.xaml new file mode 100644 index 0000000..5ceb1c6 --- /dev/null +++ b/MyFirstMauiApp/WeatherClient/MainPage.xaml @@ -0,0 +1,32 @@ + + + + + +