/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/Microsoft.CmdPal.UI/Helpers/UIHelper.cs
32 строки
940 B
Jessica Dene Earley-Cha
move Automation Notification functionality to UIHelper, implement UIHelper in ListPage and SettingsWindow (#41016)
22 авг 2025, 09:23
Не верифицирован
22 авг 2025, 09:23
da36d41
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Automation.Peers; namespace Microsoft.CmdPal.UI.Helpers; public static partial class UIHelper { static UIHelper() { } public static void AnnounceActionForAccessibility(UIElement ue, string announcement, string activityID) { if (FrameworkElementAutomationPeer.FromElement(ue) is AutomationPeer peer) { peer.RaiseNotificationEvent( AutomationNotificationKind.ActionCompleted, AutomationNotificationProcessing.ImportantMostRecent, announcement, activityID); } } }