From e76c7ecee0758f3846f3223c97f0ae304cb17ea0 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 9 Jun 2021 10:43:03 -0400 Subject: [PATCH] fix: Fix Xaml merge task not supproting conditional namespaces --- .../Uno.UI.Tasks/BatchMergeXaml/MergedDictionary.cs | 3 +++ src/Uno.UI.FluentTheme/themeresources.xaml | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/SourceGenerators/Uno.UI.Tasks/BatchMergeXaml/MergedDictionary.cs b/src/SourceGenerators/Uno.UI.Tasks/BatchMergeXaml/MergedDictionary.cs index 00ae56a4c35e..19dffd3c1171 100644 --- a/src/SourceGenerators/Uno.UI.Tasks/BatchMergeXaml/MergedDictionary.cs +++ b/src/SourceGenerators/Uno.UI.Tasks/BatchMergeXaml/MergedDictionary.cs @@ -108,6 +108,9 @@ private MergedDictionary(XmlDocument document, MergedDictionary parentDictionary mergedThemeDictionaryByKeyDictionary = new Dictionary(); namespaceList = new List(); this.parentDictionary = parentDictionary; + + AddNamespace("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); + xmlElement.SetAttribute("Ignorable", "http://schemas.openxmlformats.org/markup-compatibility/2006", "ios android wasm skia"); } private void AddNamespace(string xmlnsString, string namespaceString) diff --git a/src/Uno.UI.FluentTheme/themeresources.xaml b/src/Uno.UI.FluentTheme/themeresources.xaml index 5cf31d8118fb..e755603c130d 100644 --- a/src/Uno.UI.FluentTheme/themeresources.xaml +++ b/src/Uno.UI.FluentTheme/themeresources.xaml @@ -1,6 +1,6 @@ - + - + True 1 @@ -1481,7 +1481,7 @@ 1 32 - + True 1 @@ -2962,7 +2962,7 @@ 1 32 - + True 1