From 0cdcc4a5f040e0f6846c0208519b2db727ac6606 Mon Sep 17 00:00:00 2001 From: "Maria Manolova (INFRAGISTICS INC)" Date: Thu, 25 Jun 2026 17:22:57 +0300 Subject: [PATCH] Fix Hyperlink UIA Name including control type on Text page The Hyperlink sample on the Text > Hyperlink page used 'Hyperlink' as its visible text, so its UI Automation Name matched its LocalizedControlType, violating WCAG/MAS 4.1.2 (Name, Role, Value). Change the link text to 'Microsoft' (its navigation target) so the Name is meaningful and no longer repeats the control type. Also update the displayed XamlCode snippet to match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml b/Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml index e0489be5d..7b591a2df 100644 --- a/Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml +++ b/Sample Applications/WPFGallery/Views/Text/HyperlinkPage.xaml @@ -22,10 +22,10 @@ + XamlCode="<TextBlock Margin="20"> <Hyperlink NavigateUri="https://www.microsoft.com" RequestNavigate="Hyperlink_RequestNavigate"> Microsoft </Hyperlink> </TextBlock>"> - Hyperlink + Microsoft