From 8e965cce01919675bda9c11c5faad80a0b3f8485 Mon Sep 17 00:00:00 2001 From: Hamish Duff <99325835+duffh@users.noreply.github.com> Date: Fri, 29 Mar 2024 09:15:13 +0000 Subject: [PATCH] MAUI sample viewer fixes (#1428) --- src/MAUI/Maui.Samples/MauiProgram.cs | 5 ++++- src/Samples.Shared/Managers/SampleManager.cs | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/MAUI/Maui.Samples/MauiProgram.cs b/src/MAUI/Maui.Samples/MauiProgram.cs index a968af007c..a4ad88fa9e 100644 --- a/src/MAUI/Maui.Samples/MauiProgram.cs +++ b/src/MAUI/Maui.Samples/MauiProgram.cs @@ -2,6 +2,7 @@ using CommunityToolkit.Maui; using Esri.ArcGISRuntime.Maui; +using Esri.ArcGISRuntime.Toolkit.Maui; public static class MauiProgram { @@ -19,7 +20,9 @@ public static MauiApp CreateMauiApp() fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); fonts.AddFont("calcite-ui-icons-24.ttf", "calcite-ui-icons-24"); - }).UseArcGISRuntime(); + }) + .UseArcGISRuntime() + .UseArcGISToolkit(); return builder.Build(); } diff --git a/src/Samples.Shared/Managers/SampleManager.cs b/src/Samples.Shared/Managers/SampleManager.cs index 64320b6ea5..854ca792a6 100644 --- a/src/Samples.Shared/Managers/SampleManager.cs +++ b/src/Samples.Shared/Managers/SampleManager.cs @@ -83,6 +83,7 @@ private void BuildSampleCategories() #if INCLUDE_SAMPLES_SUBSET // Add a category for the samples subset. FullTree.Items.Insert(0, GetSearchableTreeNodeFromFile("SubsetSamples.xml", "Subset", false)); + FullTree.Items.Insert(1, GetSearchableTreeNodeFromFile("FeaturedSamples.xml", "Featured")); #else // Add a category for featured samples. FullTree.Items.Insert(0, GetSearchableTreeNodeFromFile("FeaturedSamples.xml", "Featured"));