Hello,
Is there any possibility to get the window containing an UI Automation element ?
ProcessId property gives me a process where the element comes from , but many applications have more than one native windows and I cannot match the element to window.
One possibility is to use TreeWalker and search for the parent which implements NativeWindowHandle property, but it does much more than I want. It iterates over each parent element what may result in slow run and increased CPU consumption.
I would like to see IUIAutomation.HandleFromElement to be almost the opposite of IUIAutomation.ElementFromHandle.
Thanks.