Add automation properties to Settings UI #12210

Closed
opened 2026-01-31 03:09:11 +00:00 by claunia · 1 comment
Owner

Originally created by @carlos-zamora on GitHub (Jan 26, 2021).

Originally assigned to: @carlos-zamora on GitHub.

Description of the new feature/enhancement

We need to add automation properties throughout the settings UI. Here are a few examples that really need to be addressed:

  • Profile > Appearance > background image alignment control
  • color schemes > buttons
  • Startup > default profile > combo box items
  • (unverified) Profile/ColorSchemes > Delete button (and any other buttons with icons)

Proposed technical implementation details (optional)

The general approach to adding automation properties is to add something like this to the resw file:

<data name="Profile_BackgroundImageAlignmentBottom.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
	<value>Align to Bottom</value>
</data>

However, this causes some localization burden, and since the help text will most likely match the tooltip, it would be more ideal if we could reuse the same resw entry. This would ensure that they're always in sync.

I think CommandPalette had to do something similar to this.

Originally created by @carlos-zamora on GitHub (Jan 26, 2021). Originally assigned to: @carlos-zamora on GitHub. # Description of the new feature/enhancement We need to add automation properties throughout the settings UI. Here are a few examples that really need to be addressed: - Profile > Appearance > background image alignment control - color schemes > buttons - Startup > default profile > combo box items - (unverified) Profile/ColorSchemes > Delete button (and any other buttons with icons) # Proposed technical implementation details (optional) The general approach to adding automation properties is to add something like this to the resw file: ```xml <data name="Profile_BackgroundImageAlignmentBottom.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve"> <value>Align to Bottom</value> </data> ``` However, this causes some localization burden, and since the help text will most likely match the tooltip, it would be more ideal if we could reuse the same resw entry. This would ensure that they're always in sync. I think CommandPalette had to do something similar to this.
Author
Owner

@ghost commented on GitHub (Mar 1, 2021):

:tada:This issue was addressed in #9196, which has now been successfully released as Windows Terminal Preview v1.7.572.0.🎉

Handy links:

@ghost commented on GitHub (Mar 1, 2021): :tada:This issue was addressed in #9196, which has now been successfully released as `Windows Terminal Preview v1.7.572.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.7.572.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12210