From 0681b283ce4216d96fd7a1780e8c250d8f015b08 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Tue, 5 Sep 2023 17:20:12 +0200 Subject: [PATCH] feat(NavigationView): Include Make NavigationView SettingsItem Tag not localized https://github.com/microsoft/microsoft-ui-xaml/pull/6769 --- .../UI/Xaml/Controls/NavigationView/NavigationView.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Uno.UI/Microsoft/UI/Xaml/Controls/NavigationView/NavigationView.cs b/src/Uno.UI/Microsoft/UI/Xaml/Controls/NavigationView/NavigationView.cs index 0958f42bbc14..fa26a135893b 100644 --- a/src/Uno.UI/Microsoft/UI/Xaml/Controls/NavigationView/NavigationView.cs +++ b/src/Uno.UI/Microsoft/UI/Xaml/Controls/NavigationView/NavigationView.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. -// MUX Reference NavigationView.cpp, commit 3ac8fc1 +// MUX Reference NavigationView.cpp, commit 05a0b06 #pragma warning disable 105 // remove when moving to WinUI tree @@ -59,6 +59,7 @@ public partial class NavigationView : ContentControl private const string c_navViewCloseButtonToolTip = "NavigationViewCloseButtonToolTip"; private const string c_paneShadowReceiverCanvas = "PaneShadowReceiver"; private const string c_flyoutRootGrid = "FlyoutRootGrid"; + private const string c_settingsItemTag = "Settings"; // DisplayMode Top specific items private const string c_topNavMenuItemsHost = "TopNavMenuItemsHost"; @@ -1474,7 +1475,7 @@ private void CreateAndHookEventsToSettings() // Do localization for settings item label and Automation Name var localizedSettingsName = ResourceAccessor.GetLocalizedStringResource(ResourceAccessor.SR_SettingsButtonName); AutomationProperties.SetName(settingsItem, localizedSettingsName); - settingsItem.Tag = localizedSettingsName; + settingsItem.Tag = c_settingsItemTag; UpdateSettingsItemToolTip(); // Add the name only in case of horizontal nav