diff --git a/src/Uno.UI.FluentTheme/Resources/.editorconfig b/src/Uno.UI.FluentTheme/Resources/.editorconfig
new file mode 100644
index 000000000000..dbda9ec6da8a
--- /dev/null
+++ b/src/Uno.UI.FluentTheme/Resources/.editorconfig
@@ -0,0 +1,9 @@
+# Overrides our root .editorconfig to match https://github.com/microsoft/microsoft-ui-xaml/blob/fd22d7ff96871f58fec5d9b284eba02fe762c60e/.editorconfig#L120-L126
+
+[**.{xaml,xml}]
+indent_style = space
+indent_size = 4
+charset = utf-8-bom
+insert_final_newline = true
+trim_trailing_whitespace = true
+end_of_line = crlf
diff --git a/src/Uno.UI.FluentTheme/Resources/Priority02/MenuFlyout_themeresources.xaml b/src/Uno.UI.FluentTheme/Resources/Priority02/MenuFlyout_themeresources.xaml
index 91badc8ba77f..4e868cd9c07c 100644
--- a/src/Uno.UI.FluentTheme/Resources/Priority02/MenuFlyout_themeresources.xaml
+++ b/src/Uno.UI.FluentTheme/Resources/Priority02/MenuFlyout_themeresources.xaml
@@ -639,21 +639,21 @@
Grid.Column="0"
HorizontalAlignment="Left"
Margin="0">
-
+
diff --git a/src/Uno.UI.FluentTheme/Resources/Priority06/RevealBrush_themeresources.xaml b/src/Uno.UI.FluentTheme/Resources/Priority06/RevealBrush_themeresources.xaml
index 75d978287c8b..30c1e38686c4 100644
--- a/src/Uno.UI.FluentTheme/Resources/Priority06/RevealBrush_themeresources.xaml
+++ b/src/Uno.UI.FluentTheme/Resources/Priority06/RevealBrush_themeresources.xaml
@@ -2615,7 +2615,7 @@
-
+
@@ -2844,7 +2844,7 @@
diff --git a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/DropDownButton.xaml b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/DropDownButton.xaml
index 2c5a010abc98..e81484194569 100644
--- a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/DropDownButton.xaml
+++ b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/DropDownButton.xaml
@@ -107,7 +107,7 @@
-
+
diff --git a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/RatingControl_themeresources.xaml b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/RatingControl_themeresources.xaml
index 4c3600302d7f..6302d5a47881 100644
--- a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/RatingControl_themeresources.xaml
+++ b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/RatingControl_themeresources.xaml
@@ -49,7 +49,7 @@
FontSize="32"
Text=""
AutomationProperties.AccessibilityView="Raw"
- FontFamily="Segoe MDL2 Assets"/>
+ FontFamily="{ThemeResource SymbolThemeFontFamily}"/>
@@ -58,7 +58,7 @@
FontSize="32"
Text=""
AutomationProperties.AccessibilityView="Raw"
- FontFamily="Segoe MDL2 Assets"/>
+ FontFamily="{ThemeResource SymbolThemeFontFamily}"/>
diff --git a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/SplitButton.xaml b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/SplitButton.xaml
index 9ea6511b5049..5044a457cd1f 100644
--- a/src/Uno.UI.FluentTheme/Resources/PriorityDefault/SplitButton.xaml
+++ b/src/Uno.UI.FluentTheme/Resources/PriorityDefault/SplitButton.xaml
@@ -195,7 +195,7 @@
diff --git a/src/Uno.UI.FluentTheme/themeresources.xaml b/src/Uno.UI.FluentTheme/themeresources.xaml
index 479e4a6ce3fa..e2ff62da0ff3 100644
--- a/src/Uno.UI.FluentTheme/themeresources.xaml
+++ b/src/Uno.UI.FluentTheme/themeresources.xaml
@@ -5320,13 +5320,13 @@
@@ -8493,7 +8493,7 @@
-
+
@@ -8722,7 +8722,7 @@
@@ -14896,7 +14896,7 @@
-
+
@@ -19388,7 +19388,7 @@
-
+
@@ -19459,11 +19459,11 @@
-
+
-
+
@@ -20521,7 +20521,7 @@
diff --git a/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SplitButton/SplitButtonTests.cs b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SplitButton/SplitButtonTests.cs
index 6a11b5f5e42a..4be7dd31d878 100644
--- a/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SplitButton/SplitButtonTests.cs
+++ b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/SplitButton/SplitButtonTests.cs
@@ -24,6 +24,10 @@
using SplitButton = Microsoft.UI.Xaml.Controls.SplitButton;
using ToggleSplitButton = Microsoft.UI.Xaml.Controls.ToggleSplitButton;
+using Uno.UI.RuntimeTests.Helpers;
+using Windows.UI.Xaml.Media;
+using Private.Infrastructure;
+using Uno.UI.RuntimeTests;
namespace Windows.UI.Xaml.Tests.MUXControls.ApiTests
{
@@ -82,6 +86,22 @@ public void VerifyIsCheckedProperty()
Verify.IsTrue(isChecked, "ToggleSplitButton is not checked");
});
}
+
+ [TestMethod]
+ [RunsOnUIThread]
+ [Description("Verifies that the TextBlock representing the Chevron glyph uses the correct font")]
+ public void VerifyFontFamilyForChevron()
+ {
+ using (StyleHelper.UseFluentStyles())
+ {
+ var splitButton = new SplitButton();
+ TestServices.WindowHelper.WindowContent = splitButton;
+
+ var secondayButton = splitButton.GetTemplateChild("SecondaryButton");
+ var font = ((secondayButton as Button).Content as TextBlock).FontFamily;
+ Verify.AreEqual((FontFamily)Application.Current.Resources["SymbolThemeFontFamily"], font);
+ }
+ }
}
// CanExecuteChanged is never used -- that's ok, disable the compiler warning.
diff --git a/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/ToggleSplitButton/ToggleSplitButtonTests.cs b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/ToggleSplitButton/ToggleSplitButtonTests.cs
new file mode 100644
index 000000000000..90dcfe524cf2
--- /dev/null
+++ b/src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/ToggleSplitButton/ToggleSplitButtonTests.cs
@@ -0,0 +1,33 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Uno.UI.RuntimeTests.Helpers;
+using MUXControlsTestApp.Utilities;
+using Private.Infrastructure;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Media;
+using Common;
+
+namespace Windows.UI.Xaml.Tests.MUXControls.ApiTests
+{
+ [TestClass]
+ public class ToggleSplitButtonTests
+ {
+ [TestMethod]
+ [Description("Verifies that the TextBlock representing the Chevron glyph uses the correct font")]
+ public void VerifyFontFamilyForChevron()
+ {
+ Microsoft.UI.Xaml.Controls.ToggleSplitButton toggleSplitButton = null;
+ using (StyleHelper.UseFluentStyles())
+ {
+ RunOnUIThread.Execute(() =>
+ {
+ toggleSplitButton = new Microsoft.UI.Xaml.Controls.ToggleSplitButton();
+ TestServices.WindowHelper.WindowContent = toggleSplitButton;
+
+ var secondayButton = toggleSplitButton.GetTemplateChild("SecondaryButton");
+ var font = ((secondayButton as Button).Content as TextBlock).FontFamily;
+ Verify.AreEqual((FontFamily)Application.Current.Resources["SymbolThemeFontFamily"], font);
+ });
+ }
+ }
+ }
+}
diff --git a/src/Uno.UI.RuntimeTests/MUX/Windows_UI_Xaml_Controls/DropDownButtonTests.cs b/src/Uno.UI.RuntimeTests/MUX/Windows_UI_Xaml_Controls/DropDownButtonTests.cs
new file mode 100644
index 000000000000..a96dc4fc58a6
--- /dev/null
+++ b/src/Uno.UI.RuntimeTests/MUX/Windows_UI_Xaml_Controls/DropDownButtonTests.cs
@@ -0,0 +1,35 @@
+using Common;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using MUXControlsTestApp.Utilities;
+using Private.Infrastructure;
+using Uno.UI.RuntimeTests.Helpers;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Media;
+
+namespace Windows.UI.Xaml.Tests.MUXControls.ApiTests
+{
+ [TestClass]
+ public class DropDownButtonTests
+ {
+#if !WINDOWS_UWP // GetTemplateChild is protected in UWP while public in Uno.
+ [TestMethod]
+ [Description("Verifies that the TextBlock representing the Chevron glyph uses the correct font")]
+ public void VerifyFontFamilyForChevron()
+ {
+ DropDownButton dropDownButton = null;
+ using (StyleHelper.UseFluentStyles())
+ {
+ RunOnUIThread.Execute(() =>
+ {
+ dropDownButton = new DropDownButton();
+ TestServices.WindowHelper.WindowContent = dropDownButton;
+
+ var chevronTextBlock = dropDownButton.GetTemplateChild("ChevronTextBlock") as TextBlock;
+ var font = chevronTextBlock.FontFamily;
+ Verify.AreEqual((FontFamily)Application.Current.Resources["SymbolThemeFontFamily"], font);
+ });
+ }
+ }
+#endif
+ }
+}
diff --git a/src/Uno.UI/UI/Xaml/Controls/MenuFlyout/MenuFlyout_19h1_themeresources.xaml b/src/Uno.UI/UI/Xaml/Controls/MenuFlyout/MenuFlyout_19h1_themeresources.xaml
index a55c0fa16c8f..afb04f3339ef 100644
--- a/src/Uno.UI/UI/Xaml/Controls/MenuFlyout/MenuFlyout_19h1_themeresources.xaml
+++ b/src/Uno.UI/UI/Xaml/Controls/MenuFlyout/MenuFlyout_19h1_themeresources.xaml
@@ -102,21 +102,21 @@
Grid.Column="0"
HorizontalAlignment="Left"
Margin="0">
-
+