mirror of
https://github.com/microsoft/terminal.git
synced 2026-02-04 05:35:20 +00:00
Add automation properties to SettingsNav
This commit is contained in:
@@ -51,6 +51,10 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
|
||||
_InitializeProfilesList();
|
||||
|
||||
_colorSchemesNavState = winrt::make<ColorSchemesPageNavigationState>(_settingsClone);
|
||||
|
||||
Automation::AutomationProperties::SetHelpText(SaveButton(), RS_(L"Settings_SaveSettingsButton/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
|
||||
Automation::AutomationProperties::SetHelpText(ResetButton(), RS_(L"Settings_ResetSettingsButton/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
|
||||
Automation::AutomationProperties::SetHelpText(OpenJsonNavItem(), RS_(L"Nav_OpenJSON/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
|
||||
}
|
||||
|
||||
// Method Description:
|
||||
|
||||
@@ -89,6 +89,7 @@ the MIT License. See LICENSE in the project root for license information. -->
|
||||
<muxc:NavigationView.PaneFooter>
|
||||
<!--The OpenJson item needs both Tapped and KeyDown handler-->
|
||||
<muxc:NavigationViewItem x:Uid="Nav_OpenJSON"
|
||||
x:Name="OpenJsonNavItem"
|
||||
Tapped="OpenJsonTapped"
|
||||
KeyDown="OpenJsonKeyDown">
|
||||
<muxc:NavigationViewItem.Icon>
|
||||
@@ -119,9 +120,10 @@ the MIT License. See LICENSE in the project root for license information. -->
|
||||
Margin="30,0,0,0"/>
|
||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,0,30,0">
|
||||
<Button x:Uid="Settings_ResetSettingsButton"
|
||||
ToolTipService.Placement="Mouse"
|
||||
x:Name="ResetButton"
|
||||
Click="ResetButton_Click"/>
|
||||
<Button x:Uid="Settings_SaveSettingsButton"
|
||||
x:Name="SaveButton"
|
||||
Style="{StaticResource AccentButtonStyle}"
|
||||
Margin="10,0,0,0"
|
||||
Click="SaveButton_Click"/>
|
||||
|
||||
Reference in New Issue
Block a user