如何知道页面中的当前元素是选项卡 [英] How to know current element in page is be tabbed

查看:88
本文介绍了如何知道页面中的当前元素是选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过页面中的所有元素测试一个带有tab的页面,以便从左到右验证Tab键顺序,并且每个元素都可以选项卡,单击enter后可以激活功能。但我不知道如何判断当前元素是否在tab b中以
为标签。有没有人有想法?

I want to test a page with tab through the whole elements in page to verify tab order from left to right and every elements can be tabbed, function can be actived after click enter. But I don't know how to judge current elements is be tabbed when tab in it. Is there anyone have ideas?

推荐答案

您好

您的意思是想要查看是否标签后的控件有焦点吗?如果是,您可以尝试使用HasFocus属性来查看该元素是否处于焦点状态 或不。

Do you mean you want to see if the control has Focus after tabbing in? if yes you can try HasFocus property to see if the element is in Focus  or not.

谢谢

Siddhartha

Siddhartha


这篇关于如何知道页面中的当前元素是选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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