diff --git a/samples/MauiEmbedding/Directory.Packages.props b/samples/MauiEmbedding/Directory.Packages.props index 8a4a39df79..52d4140fb5 100644 --- a/samples/MauiEmbedding/Directory.Packages.props +++ b/samples/MauiEmbedding/Directory.Packages.props @@ -1,25 +1,32 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Mobile/MauiEmbedding.Mobile.csproj b/samples/MauiEmbedding/MauiEmbedding.Mobile/MauiEmbedding.Mobile.csproj index 00b520193e..1ceb79e5a1 100644 --- a/samples/MauiEmbedding/MauiEmbedding.Mobile/MauiEmbedding.Mobile.csproj +++ b/samples/MauiEmbedding/MauiEmbedding.Mobile/MauiEmbedding.Mobile.csproj @@ -22,6 +22,10 @@ True true + + + + false diff --git a/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/MauiEmbedding.Skia.Gtk.csproj b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/MauiEmbedding.Skia.Gtk.csproj new file mode 100644 index 0000000000..49eff4367b --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/MauiEmbedding.Skia.Gtk.csproj @@ -0,0 +1,29 @@ + + + + + + WinExe + Exe + net7.0 + app.manifest + + + + + + + + + + + + + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Package.appxmanifest b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Package.appxmanifest new file mode 100644 index 0000000000..d4ac5a40e7 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Package.appxmanifest @@ -0,0 +1,43 @@ + + + + + + + + MauiEmbedding + MauiEmbedding + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Program.cs b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Program.cs new file mode 100644 index 0000000000..03392a6b0c --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/Program.cs @@ -0,0 +1,21 @@ +using System; +using GLib; +using Uno.UI.Runtime.Skia; + +namespace MauiEmbedding.Skia.Gtk; + +public class Program +{ + public static void Main(string[] args) + { + ExceptionManager.UnhandledException += delegate (UnhandledExceptionArgs expArgs) + { + Console.WriteLine("GLIB UNHANDLED EXCEPTION" + expArgs.ExceptionObject.ToString()); + expArgs.ExitApplication = true; + }; + + var host = new GtkHost(() => new AppHead()); + + host.Run(); + } +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/app.manifest b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/app.manifest new file mode 100644 index 0000000000..e56ae778d0 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Skia.Gtk/app.manifest @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/LinkerConfig.xml b/samples/MauiEmbedding/MauiEmbedding.Wasm/LinkerConfig.xml new file mode 100644 index 0000000000..f5396732e4 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/LinkerConfig.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/MauiEmbedding.Wasm.csproj b/samples/MauiEmbedding/MauiEmbedding.Wasm/MauiEmbedding.Wasm.csproj new file mode 100644 index 0000000000..c8a36fe934 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/MauiEmbedding.Wasm.csproj @@ -0,0 +1,75 @@ + + + + + + Exe + net7.0 + $(NoWarn);NU1504;NU1505;NU1701 + + disable + manifest.webmanifest + Properties + + / + + + true + $(DefineConstants);TRACE;DEBUG + portable + true + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/Program.cs b/samples/MauiEmbedding/MauiEmbedding.Wasm/Program.cs new file mode 100644 index 0000000000..5c286eff0e --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/Program.cs @@ -0,0 +1,13 @@ +namespace MauiEmbedding.Wasm; + +public class Program +{ + private static App? _app; + + public static int Main(string[] args) + { + Microsoft.UI.Xaml.Application.Start(_ => _app = new AppHead()); + + return 0; + } +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmCSS/Fonts.css b/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmCSS/Fonts.css new file mode 100644 index 0000000000..4fdd60555f --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmCSS/Fonts.css @@ -0,0 +1,28 @@ +/** + When adding fonts here, make sure to add them using a base64 data uri, otherwise + fonts loading are delayed, and text may get displayed incorrectly. +*/ + +/* https://github.com/unoplatform/uno/issues/3954 */ +@font-face { + font-family: 'Segoe UI'; + src: local('Segoe UI'), local('-apple-system'), local('BlinkMacSystemFont'), local('Inter'), local('Cantarell'), local('Ubuntu'), local('Roboto'), local('Open Sans'), local('Noto Sans'), local('Helvetica Neue'), local('sans-serif'); +} + +@font-face { + font-family: 'Roboto'; + src: url(./Uno.Fonts.Roboto/Fonts/Roboto-Light.ttf) format('truetype'); + font-weight: 300; +} + +@font-face { + font-family: 'Roboto'; + src: url(./Uno.Fonts.Roboto/Fonts/Roboto-Regular.ttf) format('truetype'); + font-weight: 400; +} + +@font-face { + font-family: 'Roboto'; + src: url(./Uno.Fonts.Roboto/Fonts/Roboto-Medium.ttf) format('truetype'); + font-weight: 500; +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmScripts/AppManifest.js b/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmScripts/AppManifest.js new file mode 100644 index 0000000000..480cdd2f2e --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/WasmScripts/AppManifest.js @@ -0,0 +1,3 @@ +var UnoAppManifest = { + displayName: "MauiEmbedding" +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/manifest.webmanifest b/samples/MauiEmbedding/MauiEmbedding.Wasm/manifest.webmanifest new file mode 100644 index 0000000000..eacf7b5d87 --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/manifest.webmanifest @@ -0,0 +1,10 @@ +{ + "background_color": "#ffffff", + "description": "MauiEmbedding", + "display": "standalone", + "name": "MauiEmbedding", + "short_name": "MauiEmbedding", + "start_url": "/index.html", + "theme_color": "#ffffff", + "scope": "/" +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/staticwebapp.config.json b/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/staticwebapp.config.json new file mode 100644 index 0000000000..79c1b17c4b --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/staticwebapp.config.json @@ -0,0 +1,30 @@ +{ + "navigationFallback": { + "rewrite": "/index.html", + "exclude": [ + "*.{css,js}", + "*.{png}", + "*.{c,h,wasm,clr,pdb,dat,txt}" + ] + }, + "routes": [ + { + "route": "/package_*", + "headers": { + "cache-control": "public, immutable, max-age=31536000" + } + }, + { + "route": "/*.ttf", + "headers": { + "cache-control": "public, immutable, max-age=31536000" + } + }, + { + "route": "/*", + "headers": { + "cache-control": "must-revalidate, max-age=3600" + } + } + ] +} diff --git a/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/web.config b/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/web.config new file mode 100644 index 0000000000..8f5a860f5f --- /dev/null +++ b/samples/MauiEmbedding/MauiEmbedding.Wasm/wwwroot/web.config @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding.sln b/samples/MauiEmbedding/MauiEmbedding.sln index daf5cad880..7e88176025 100644 --- a/samples/MauiEmbedding/MauiEmbedding.sln +++ b/samples/MauiEmbedding/MauiEmbedding.sln @@ -73,6 +73,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions Items", "Extensi ..\..\src\Directory.Build.props = ..\..\src\Directory.Build.props ..\..\src\Directory.Build.targets = ..\..\src\Directory.Build.targets ..\..\src\Directory.Packages.props = ..\..\src\Directory.Packages.props + ..\..\src\tfms-ui-maui.props = ..\..\src\tfms-ui-maui.props EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MauiProjects", "MauiProjects", "{24511BF4-9869-4773-AF84-CC8F79AF5085}" @@ -81,6 +82,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiControlsExternal", "Mau EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiApp1", "MauiProjects\MauiApp1\MauiApp1.csproj", "{8577882E-DA52-4D27-A529-C70998034566}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiEmbedding.Skia.Gtk", "MauiEmbedding.Skia.Gtk\MauiEmbedding.Skia.Gtk.csproj", "{00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiEmbedding.Wasm", "MauiEmbedding.Wasm\MauiEmbedding.Wasm.csproj", "{8BD5BF69-6C93-44BE-B31E-625636BD6423}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -875,6 +880,62 @@ Global {8577882E-DA52-4D27-A529-C70998034566}.Release|x64.Build.0 = Release|Any CPU {8577882E-DA52-4D27-A529-C70998034566}.Release|x86.ActiveCfg = Release|Any CPU {8577882E-DA52-4D27-A529-C70998034566}.Release|x86.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|ARM.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|ARM.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|ARM64.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|iPhone.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|x64.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|x64.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|x86.ActiveCfg = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Debug|x86.Build.0 = Debug|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|Any CPU.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|ARM.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|ARM.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|ARM64.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|ARM64.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|iPhone.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|iPhone.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|x64.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|x64.Build.0 = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|x86.ActiveCfg = Release|Any CPU + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB}.Release|x86.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|ARM.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|ARM.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|ARM64.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|ARM64.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|iPhone.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|x64.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|x64.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|x86.ActiveCfg = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Debug|x86.Build.0 = Debug|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|Any CPU.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|ARM.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|ARM.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|ARM64.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|ARM64.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|iPhone.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|iPhone.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|x64.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|x64.Build.0 = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|x86.ActiveCfg = Release|Any CPU + {8BD5BF69-6C93-44BE-B31E-625636BD6423}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -909,6 +970,8 @@ Global {9F4A5914-3D10-4CDE-829C-BE53A9E441DB} = {9B9F35D5-E6DD-4FC7-9198-F8246D3CE366} {A158CC84-0219-4BE4-A3F2-7AB7F613855A} = {24511BF4-9869-4773-AF84-CC8F79AF5085} {8577882E-DA52-4D27-A529-C70998034566} = {24511BF4-9869-4773-AF84-CC8F79AF5085} + {00BAAAC1-9BA0-4F35-B7B6-5B4D64E45FAB} = {1C130CF4-EEF4-44D9-9DEF-C037FE1C221B} + {8BD5BF69-6C93-44BE-B31E-625636BD6423} = {1C130CF4-EEF4-44D9-9DEF-C037FE1C221B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {584E156C-C094-4968-8A1F-3FB06081E34D} diff --git a/samples/MauiEmbedding/MauiEmbedding/App.cs b/samples/MauiEmbedding/MauiEmbedding/App.cs index 4e25e234cc..0cb3d95ff9 100644 --- a/samples/MauiEmbedding/MauiEmbedding/App.cs +++ b/samples/MauiEmbedding/MauiEmbedding/App.cs @@ -1,10 +1,13 @@ -using CommunityToolkit.Maui; using Microsoft.Maui; +using MControls = Microsoft.Maui.Controls; +using CommunityToolkit.Maui; + +#if MAUI_EMBEDDING //using Telerik.Maui.Controls; //using Telerik.Maui.Controls.Compatibility; -using MControls = Microsoft.Maui.Controls; using MauiControlsExternal; using Esri.ArcGISRuntime.Maui; +#endif namespace MauiEmbedding; @@ -21,10 +24,13 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args) maui .UseMauiCommunityToolkit() +#if MAUI_EMBEDDING .UseArcGISRuntime() //.UseTelerik() //.UseTelerikControls() - .UseCustomLibrary(); + .UseCustomLibrary() +#endif + ; Microsoft.Maui.Handlers.ShapeViewHandler.Mapper.AppendToMapping("BackgroundColor", (h, v) => { @@ -35,6 +41,7 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args) } }); }) + // Add navigation support for toolkit controls such as TabBar and NavigationView .UseToolkitNavigation() .Configure(host => host @@ -98,12 +105,14 @@ private static void RegisterRoutes(IViewRegistry views, IRouteRegistry routes) { views.Register( new ViewMap(ViewModel: typeof(ShellViewModel)), - new ViewMap(), - new ViewMap(), + new ViewMap() + ,new ViewMap(), new ViewMap(), - //new ViewMap(), + new ViewMap(), new ViewMap(), +#if MAUI_EMBEDDING new ViewMap(), +#endif new ViewMap(), new ViewMap() ); @@ -113,13 +122,15 @@ private static void RegisterRoutes(IViewRegistry views, IRouteRegistry routes) Nested: new RouteMap[] { new RouteMap("Main", View: views.FindByViewModel()), - new RouteMap(nameof(MauiControlsViewModel), View: views.FindByViewModel()), - new RouteMap(nameof(MCTControlsViewModel), View: views.FindByViewModel()), - new RouteMap(nameof(MauiEssentialsViewModel), View: views.FindByViewModel()), - new RouteMap(nameof(MauiColorsViewModel), View: views.FindByViewModel()), - new RouteMap(nameof(EsriMapsViewModel), View: views.FindByViewModel()), - new RouteMap(nameof(ExternalLibPage), View: views.FindByViewModel()), - //new RouteMap(nameof(TelerikControlsViewModel), View: views.FindByViewModel()), +#if MAUI_EMBEDDING + new RouteMap("MauiControls", View: views.FindByViewModel()), + new RouteMap("MCTControls", View: views.FindByViewModel()), + new RouteMap("MauiEssentials", View: views.FindByViewModel()), + new RouteMap("MauiColors", View: views.FindByViewModel()), + new RouteMap("EsriMaps", View: views.FindByViewModel()), + new RouteMap("ExternalLib", View: views.FindByViewModel()), + new RouteMap("TelerikControls", View: views.FindByViewModel()), +#endif } ) ); diff --git a/samples/MauiEmbedding/MauiEmbedding/MauiEmbedding.csproj b/samples/MauiEmbedding/MauiEmbedding/MauiEmbedding.csproj index be5ace9d76..f92bf770c7 100644 --- a/samples/MauiEmbedding/MauiEmbedding/MauiEmbedding.csproj +++ b/samples/MauiEmbedding/MauiEmbedding/MauiEmbedding.csproj @@ -4,14 +4,14 @@ $(TargetFrameworks);net7.0-windows10.0.19041 - $(TargetFrameworks);net7.0-ios;net7.0-android;net7.0-maccatalyst + $(TargetFrameworks);net7.0;net7.0-ios;net7.0-android;net7.0-maccatalyst true + false - @@ -21,6 +21,9 @@ + + + @@ -56,6 +59,11 @@ + + + + + diff --git a/samples/MauiEmbedding/MauiEmbedding/Presentation/MainPage.xaml b/samples/MauiEmbedding/MauiEmbedding/Presentation/MainPage.xaml index e29f9bdc96..3b91a33d71 100644 --- a/samples/MauiEmbedding/MauiEmbedding/Presentation/MainPage.xaml +++ b/samples/MauiEmbedding/MauiEmbedding/Presentation/MainPage.xaml @@ -4,6 +4,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:uen="using:Uno.Extensions.Navigation.UI" NavigationCacheMode="Required" mc:Ignorable="d"> @@ -11,13 +12,13 @@ HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="10"> -