set tooltip help text for JAWS

This commit is contained in:
Jonas Sourlier 2022-09-22 11:28:33 +02:00
parent 0b9299f88f
commit 20a2c11927
4 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,7 @@
*/ */
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Automation;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Media; using System.Windows.Media;
using SafeExamBrowser.I18n.Contracts; using SafeExamBrowser.I18n.Contracts;
@ -96,6 +97,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.ActionCenter
Text.Text = layout.CultureName; Text.Text = layout.CultureName;
Button.ToolTip = tooltip; Button.ToolTip = tooltip;
AutomationProperties.SetHelpText(Button, tooltip);
} }
private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)

View file

@ -10,6 +10,7 @@ using System;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Controls.Primitives; using System.Windows.Controls.Primitives;
using System.Windows.Media; using System.Windows.Media;
@ -120,6 +121,7 @@ namespace SafeExamBrowser.UserInterface.Desktop.Controls.Taskbar
LayoutCultureCode.Text = layout.CultureCode; LayoutCultureCode.Text = layout.CultureCode;
Button.ToolTip = tooltip; Button.ToolTip = tooltip;
AutomationProperties.SetHelpText(Button, tooltip);
} }
private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)

View file

@ -7,6 +7,7 @@
*/ */
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Automation;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Media; using System.Windows.Media;
using SafeExamBrowser.I18n.Contracts; using SafeExamBrowser.I18n.Contracts;
@ -96,6 +97,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.ActionCenter
Text.Text = layout.CultureName; Text.Text = layout.CultureName;
Button.ToolTip = tooltip; Button.ToolTip = tooltip;
AutomationProperties.SetHelpText(Button, tooltip);
} }
private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)

View file

@ -10,6 +10,7 @@ using System;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Controls.Primitives; using System.Windows.Controls.Primitives;
using System.Windows.Media; using System.Windows.Media;
@ -120,6 +121,7 @@ namespace SafeExamBrowser.UserInterface.Mobile.Controls.Taskbar
LayoutCultureCode.Text = layout.CultureCode; LayoutCultureCode.Text = layout.CultureCode;
Button.ToolTip = tooltip; Button.ToolTip = tooltip;
AutomationProperties.SetHelpText(Button, tooltip);
} }
private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) private void Popup_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)