From c9f6b7602d6ba03e3f219847832c5ecd8926ad67 Mon Sep 17 00:00:00 2001 From: Harini Malothu Date: Tue, 25 Aug 2026 15:03:32 +0530 Subject: [PATCH] Expose TextBox/NumberBox/AutoSuggestBox clear button to Voice Access The inline clear ("Delete") button shown by TextBox, NumberBox, and AutoSuggestBox could not be targeted by Voice Access "Show numbers". The template set AutomationProperties.AccessibilityView="Raw" on that button, which removes it from the UIA Content view, and Voice Access only tags elements in the Content view. Remove the explicit AccessibilityView="Raw" from the DeleteButton in every affected template so it reverts to the default Content view. The button remains Visibility="Collapsed" (shown only in the ButtonVisible visual state) and keeps IsTabStop="False", so it is exposed to Voice Access only while it is actually visible and keyboard tab order is unchanged. Add interaction tests verifying the visible clear/Delete button is exposed (and invocable) for NumberBox inline mode and for TextBox, distinct from the Increase/Decrease spin buttons. Fixes #7996 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2620f9d2-ff0f-45b0-aa36-3626abe3e83a --- .../AutoSuggestBox_themeresources.xaml | 2 +- ...utoSuggestBox_themeresources_perf2026.xaml | 2 +- .../InteractionTests/CommonStylesTests.cs | 34 +++++++++++++++++ .../CommonStyles/TestUI/TextControlsPage.xaml | 2 +- .../CommonStyles/TextBox_themeresources.xaml | 2 +- .../TextBox_themeresources_perf2026.xaml | 2 +- .../InteractionTests/NumberBoxTests.cs | 38 +++++++++++++++++++ controls/dev/NumberBox/NumberBox.xaml | 2 +- .../dev/NumberBox/NumberBox_perf2026.xaml | 2 +- 9 files changed, 79 insertions(+), 7 deletions(-) diff --git a/controls/dev/AutoSuggestBox/AutoSuggestBox_themeresources.xaml b/controls/dev/AutoSuggestBox/AutoSuggestBox_themeresources.xaml index 7cd762ebf3..692ee167f3 100644 --- a/controls/dev/AutoSuggestBox/AutoSuggestBox_themeresources.xaml +++ b/controls/dev/AutoSuggestBox/AutoSuggestBox_themeresources.xaml @@ -238,7 +238,7 @@ -