Skip to content

Commit 6ddf021

Browse files
committed
announceactionforaccessibility
1 parent 710c173 commit 6ddf021

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

WinUIGallery/ControlPages/AppBarButtonPage.xaml.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
88
//
99
//*********************************************************
10+
using AppUIBasics.Helper;
1011
using Microsoft.UI.Xaml;
1112
using Microsoft.UI.Xaml.Controls;
1213
using Microsoft.UI.Xaml.Controls.Primitives;
@@ -31,18 +32,23 @@ private void AppBarButton_Click(object sender, RoutedEventArgs e)
3132
{
3233
case "Button1":
3334
Control1Output.Text = "You clicked: " + name;
35+
UIHelper.AnnounceActionForAccessibility(Button1, Control1Output.Text, "AppBarButtonSuccessNotificationId");
3436
break;
3537
case "Button2":
3638
Control2Output.Text = "You clicked: " + name;
39+
UIHelper.AnnounceActionForAccessibility(Button2, Control2Output.Text, "AppBarButtonSuccessNotificationId");
3740
break;
3841
case "Button3":
3942
Control3Output.Text = "You clicked: " + name;
43+
UIHelper.AnnounceActionForAccessibility(Button3, Control3Output.Text, "AppBarButtonSuccessNotificationId");
4044
break;
4145
case "Button4":
4246
Control4Output.Text = "You clicked: " + name;
47+
UIHelper.AnnounceActionForAccessibility(Button4, Control4Output.Text, "AppBarButtonSuccessNotificationId");
4348
break;
4449
case "Button5":
4550
Control5Output.Text = "You clicked: " + name;
51+
UIHelper.AnnounceActionForAccessibility(Button5, Control5Output.Text, "AppBarButtonSuccessNotificationId");
4652
break;
4753
}
4854
}

WinUIGallery/ControlPages/BreadcrumbBarPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private void ResetSampleButton_Click(object sender, Microsoft.UI.Xaml.RoutedEven
4343
items.Add(folders[i]);
4444
}
4545

46-
// Announce reset successful notifiication.
46+
// Announce reset success notifiication.
4747
UIHelper.AnnounceActionForAccessibility(ResetSampleBtn, "BreadcrumbBar sample reset successful.", "BreadCrumbBarSampleResetNotificationId");
4848
}
4949
}

0 commit comments

Comments
 (0)