I noticed that in some cases the AutomationElement.FromPoint method takes long time to return. I measured it and it looks like it is almost 10 times slower for some controls.
The controls I was able to reproduce this behavior on are the sub-menus in mRemoteNG (http://www.mremoteng.org/). I couldn't notice anything special about those controls..
Any ideas what might cause this?
Thanks,
Eyal