From f8d773b9eb08164571b31c58488621ebe8500016 Mon Sep 17 00:00:00 2001 From: Shane Neuville Date: Sun, 19 Feb 2023 13:20:23 -0600 Subject: [PATCH 01/16] Semantic OrderView --- .../AppShell.xaml.cs | 1 + .../MauiProgram.cs | 1 + .../SemanticOrderViewPage.xaml | 25 ++++++++ .../SemanticOrderViewPage.xaml.cs | 13 ++++ .../SemanticOrderViewPageViewModel.cs | 5 ++ .../ViewModels/Views/ViewsGalleryViewModel.cs | 1 + .../SemanticOrderViewHandler.android.cs | 18 ++++++ .../SemanticOrderViewHandler.macios.cs | 16 +++++ .../SemanticOrderViewHandler.net.cs | 10 +++ .../SemanticOrderViewHandler.shared.cs | 64 +++++++++++++++++++ .../SemanticOrderViewHandler.tizen.cs | 13 ++++ .../SemanticOrderViewHandler.windows.cs | 16 +++++ .../Interfaces/ISemanticOrderView.shared.cs | 19 ++++++ .../MauiSemanticOrderView.android.cs | 62 ++++++++++++++++++ .../MauiSemanticOrderView.ios.cs | 55 ++++++++++++++++ .../MauiSemanticOrderView.windows.cs | 44 +++++++++++++ .../AppBuilderExtensions.shared.cs | 1 + .../SemanticOrderView.shared.cs | 33 ++++++++++ 18 files changed, 397 insertions(+) create mode 100644 samples/CommunityToolkit.Maui.Sample/Pages/Views/SemanticOrderView/SemanticOrderViewPage.xaml create mode 100644 samples/CommunityToolkit.Maui.Sample/Pages/Views/SemanticOrderView/SemanticOrderViewPage.xaml.cs create mode 100644 samples/CommunityToolkit.Maui.Sample/ViewModels/Views/SemanticOrderView/SemanticOrderViewPageViewModel.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.android.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.macios.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.net.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.shared.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.tizen.cs create mode 100644 src/CommunityToolkit.Maui.Core/Handlers/SemanticOrderView/SemanticOrderViewHandler.windows.cs create mode 100644 src/CommunityToolkit.Maui.Core/Interfaces/ISemanticOrderView.shared.cs create mode 100644 src/CommunityToolkit.Maui.Core/Views/SemanticOrderView/MauiSemanticOrderView.android.cs create mode 100644 src/CommunityToolkit.Maui.Core/Views/SemanticOrderView/MauiSemanticOrderView.ios.cs create mode 100644 src/CommunityToolkit.Maui.Core/Views/SemanticOrderView/MauiSemanticOrderView.windows.cs create mode 100644 src/CommunityToolkit.Maui/Views/SemanticOrderView/SemanticOrderView.shared.cs diff --git a/samples/CommunityToolkit.Maui.Sample/AppShell.xaml.cs b/samples/CommunityToolkit.Maui.Sample/AppShell.xaml.cs index 8173f266f..db32d4197 100644 --- a/samples/CommunityToolkit.Maui.Sample/AppShell.xaml.cs +++ b/samples/CommunityToolkit.Maui.Sample/AppShell.xaml.cs @@ -115,6 +115,7 @@ public partial class AppShell : Shell CreateViewModelMapping(), CreateViewModelMapping(), CreateViewModelMapping(), + CreateViewModelMapping(), }); public AppShell() => InitializeComponent(); diff --git a/samples/CommunityToolkit.Maui.Sample/MauiProgram.cs b/samples/CommunityToolkit.Maui.Sample/MauiProgram.cs index e74166826..ac9b9348a 100644 --- a/samples/CommunityToolkit.Maui.Sample/MauiProgram.cs +++ b/samples/CommunityToolkit.Maui.Sample/MauiProgram.cs @@ -168,6 +168,7 @@ static void RegisterViewsAndViewModels(in IServiceCollection services) services.AddTransientWithShellRoute(); services.AddTransientWithShellRoute(); services.AddTransientWithShellRoute(); + services.AddTransientWithShellRoute(); // Add Popups services.AddTransient(); diff --git a/samples/CommunityToolkit.Maui.Sample/Pages/Views/SemanticOrderView/SemanticOrderViewPage.xaml b/samples/CommunityToolkit.Maui.Sample/Pages/Views/SemanticOrderView/SemanticOrderViewPage.xaml new file mode 100644 index 000000000..1531860d4 --- /dev/null +++ b/samples/CommunityToolkit.Maui.Sample/Pages/Views/SemanticOrderView/SemanticOrderViewPage.xaml @@ -0,0 +1,25 @@ + + + + + + + +