UI自动化不会为UIA_LegacyIAccessibleValuePropertyId属性引发PropertyChangedEvent. [英] UI Automation does not raise PropertyChangedEvent for UIA_LegacyIAccessibleValuePropertyId property.

查看:762
本文介绍了UI自动化不会为UIA_LegacyIAccessibleValuePropertyId属性引发PropertyChangedEvent.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发UI自动化(Windows/Win32)CLIENT应用程序,以监视编辑控件"值的值的变化.

解决方案

您好,Sanjay,

LegacyIAccessible属性通常不会触发事件.该模式可以使喜欢看旧属性的MSAA客户继续查看它们,但是如果我们为它们触发事件,则它们实际上总是重复的 其他事件.

我很好奇您在哪里看到旧版Value而不是Value.Value-它们通常是重合的,尽管您还应该注意数值提供者对UIA_RangeValueValuePropertyId的更改.

谢谢,
迈克尔


I am developing a UI Automation (Windows/Win32) CLIENT application to monitor the changes in the values of the Edit Control value.

解决方案

Hi, Sanjay,

The LegacyIAccessible properties do not, in general, fire events.  The pattern exists to allow MSAA clients who liked seeing the old properties to continue to look at them, but if we fired events for them, they would virtually always be duplicates of some other event. 

I'm curious about where you see the legacy Value and not Value.Value - they generally coincide, although you should also watch for changes to UIA_RangeValueValuePropertyId for numeric-valued propviders.

Thanks,
Michael


这篇关于UI自动化不会为UIA_LegacyIAccessibleValuePropertyId属性引发PropertyChangedEvent.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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