From 467e001dcd0c28fbb1fdd5a63ec87c362071af4f Mon Sep 17 00:00:00 2001 From: Panagiotis Karaliolios Date: Wed, 21 Oct 2026 23:49:09 +0300 Subject: [PATCH] Add accessible names to Win11 Creator wizard controls (#5152) The Win11 Creator wizard (#4925) was merged after the top-bar naming pass in #4992/#4993. Its glyph-only Back/Forward buttons report the Segoe MDL2 private-use character as their UI Automation name, and the ISO path box, the edition and USB combo boxes and the status log have an empty name because their visible labels are separate TextBlocks. Add AutomationProperties.Name to all six: "Previous Step" and "Next Step" for the arrows, and the visible label text for the other four. Cover them with a XAML test. Co-authored-by: Claude Opus 5.5 Co-authored-by: Chris Titus --- pester/xaml.Tests.ps1 | 16 ++++++++++++++++ xaml/inputXML.xaml | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/pester/xaml.Tests.ps1 b/pester/xaml.Tests.ps1 index c351dadc..12eea9d8 100644 --- a/pester/xaml.Tests.ps1 +++ b/pester/xaml.Tests.ps1 @@ -274,6 +274,22 @@ Describe "XAML document" { } } + It "names the Win11 Creator wizard controls for screen readers" { + $expectedNames = @{ + WPFWin11ISOBackButton = "Previous Step" + WPFWin11ISOForwardButton = "Next Step" + WPFWin11ISOPath = "ISO file" + WPFWin11ISOEditionComboBox = "Windows edition" + WPFWin11ISOUSBDriveComboBox = "USB drive" + WPFWin11ISOStatusLog = "Status Log" + } + + foreach ($controlName in $expectedNames.Keys) { + $control = $script:xaml.SelectSingleNode("//*[@Name='$controlName']") + $control.GetAttribute("AutomationProperties.Name") | Should -Be $expectedNames[$controlName] + } + } + It "defines core tabs in the expected order" { $tabItems = @($script:xaml.SelectNodes('//*[local-name()="TabControl"][@Name="WPFTabNav"]/*[local-name()="TabItem"]')) $actualTabs = @($tabItems | ForEach-Object { "$($_.GetAttribute("Name")):$($_.GetAttribute("Header"))" }) diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index 2eec2796..e53e3bd5 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -1629,6 +1629,7 @@ Background="Transparent" HorizontalAlignment="Right" VerticalAlignment="Center" Panel.ZIndex="1" + AutomationProperties.Name="Previous Step" ToolTip="Back to the previous step">