如何检测到叙述者工具正在运行? [英] How to detect that narrator tool is running?

查看:79
本文介绍了如何检测到叙述者工具正在运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义控件。我喜欢提供对系统屏幕阅读支持的支持。有没有逻辑可以找到我们的计算机已启用了讲述人或已编码的UI工具。??

I have a custom control. i like to provide the support for System screen reading support. Is there any logic to find that the narrator or coded UI tool is enabled in our machine.??

推荐答案

您可以使用命名空间 Windows.UI.Xaml.Automation.Peers 和这种方法:

You can use namespace Windows.UI.Xaml.Automation.Peers and this method:

var isNarratorStarted = AutomationPeer.ListenerExists(AutomationEvents.AutomationFocusChanged);

这篇关于如何检测到叙述者工具正在运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆