MSAA UI Automation get_accChildCount Incorrectly Returning 0 for Infragistics UltraTree in Winforms

后端 未结 2 509
余生分开走
余生分开走 2020-12-22 12:42

While working on automating an Infragistics UltraTree control in a C# Winforms application I found that the UltraTree implemented the AccessibleObject model (MSAA). I was ab

2条回答
  •  醉酒成梦
    2020-12-22 13:14

    I had the same problem for an infragistics control. If you are able to change the application under test you have 2 options, otherwise i think there is no solution and you are trapped.


    a) override the AutomationPeer implementation of your UltraTree, so just create your own CustomizedUltraTree. Here is a useful link on this topic Docu


    b) contact infragistics customer support, for me it was just some versioning issue and they were pretty quick and confident.

提交回复
热议问题