Search code examples
c#windowswinformsui-automationpoint

Cannot find System.Windows.Point


I am using UIAutomation with the method

System.Windows.Automation.AutomationElement.FromPoint(System.Windows.Point)

to get the element by the mouse cursor, but I cannot find the type System.Windows.Point. I looked up object library and it is still unseen.

I am using .Net Framework 4.5.


Solution

  • System.Windows.Point is part of WPF, if you're trying to do this in a WinForms app, it's not supported – Peter Ritchie Oct 4 '14 at 0:10