Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@dhoehna
Copy link
Contributor

@dhoehna dhoehna commented Mar 29, 2024

Summary of the pull request

  1. Narrator announces the heading of a group of buttons on the main page.
  2. Narrator reads the repo name.
  3. Moved the code for showing the customize DevDrive window to the ViewModel.

References and relevant issues

Detailed description of the pull request / Additional comments

Getting narrator to voice the headings was tricky. The automation property needs to be put on the StackPanel encompassing the buttons.

The tricky part is that adding the name property via x:Uid results in the narrator saying nothing. I had to put the headings in the ViewModel. A side-effect is that the same string is duplicated.

Validation steps performed

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

Movie!

Narrator.mp4


<StackPanel Spacing="{StaticResource SettingsCardSpacing}">
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" x:Uid="ms-resource:///DevHome.SetupFlow/Resources/MainPage_EnvironmentSetup" />
<StackPanel Spacing="{StaticResource SettingsCardSpacing}" AutomationProperties.Name="{x:Bind ViewModel.MainPageEnvironmentSetupGroupName}">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can set the automation attributes directly from resw.

<data name="MyStackPanel.[using:Microsoft.UI.Xaml.Automation]AutomationProperties.Name" ...

@AmelBawa-msft AmelBawa-msft added the Needs-Second Pull request that needs another approval label Mar 29, 2024
</data>
<data name="MainPageEnvironmentSetupGroup" xml:space="preserve">
<value>Set up development environment</value>
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text ). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>
Copy link
Contributor

@vineeththomasalex vineeththomasalex Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text ). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>

@dhoehna dhoehna merged commit a9d28be into main Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Needs-Second Pull request that needs another approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants