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

后端 未结 2 510
余生分开走
余生分开走 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:01

    Kind of a crummy answer, but I ended up finding that by running under the CLR (flipping /clr on) the correct number of children is returned. So literally same exact code with the only difference being whether or not the /clr compiler switch is specified. I really don't want to run this code under the CLR though so this isn't an ideal solution for me, but it does technically answer my question.

    I will have to post another question asking why this might be happening :(

提交回复
热议问题