From c0ffa1efd702644c28a0c9274f4d73df6482828a Mon Sep 17 00:00:00 2001 From: "Maria Manolova (INFRAGISTICS INC)" Date: Fri, 26 Jun 2026 11:42:21 +0300 Subject: [PATCH] Fix screen reader announcing only button name, not associated description in WPF Gallery Fold the card Description into AutomationProperties.Name for HeaderTile (5 home tiles) and NavigationCardTemplate (overview/category cards) so Narrator announces both the title and its associated descriptive text. Addresses AzDO 3019241. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Sample Applications/WPFGallery/Controls/HeaderTile.xaml | 7 ++++++- Sample Applications/WPFGallery/Resources/Templates.xaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Sample Applications/WPFGallery/Controls/HeaderTile.xaml b/Sample Applications/WPFGallery/Controls/HeaderTile.xaml index e6d449458..ec3caf906 100644 --- a/Sample Applications/WPFGallery/Controls/HeaderTile.xaml +++ b/Sample Applications/WPFGallery/Controls/HeaderTile.xaml @@ -14,9 +14,14 @@ VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" - AutomationProperties.Name="{Binding Title, RelativeSource={RelativeSource AncestorType=local:HeaderTile}}" Click="RootButton_Click" Padding="24"> + + + + + + diff --git a/Sample Applications/WPFGallery/Resources/Templates.xaml b/Sample Applications/WPFGallery/Resources/Templates.xaml index cac57580c..65014447c 100644 --- a/Sample Applications/WPFGallery/Resources/Templates.xaml +++ b/Sample Applications/WPFGallery/Resources/Templates.xaml @@ -16,9 +16,14 @@ Margin="7" Padding="20,10" HorizontalContentAlignment="Left" - AutomationProperties.Name="{Binding Title, StringFormat='{}{0}Page'}" Command="{Binding ViewModel.NavigateCommand, RelativeSource={RelativeSource AncestorType={x:Type Page}}}" CommandParameter="{Binding PageType}"> + + + + + +