Is there any way to get if an AutomationElement is selected or not. I have used following code to get an AutomationElement object.
System.Windows.Point point = new System.Windows.Point(Cursor.Position.X, Cursor.Position.Y);
AutomationElement element = AutomationElement.FromPoint(point);
//how to know element is selected or not