Copying an AutomationElement into a White.Core.UIItems.WindowItems.Window

Oct 30, 2012 at 11:17 AM



Does anyone know of a way to copy items of type AutomationElement into a Window?

For example, should I wish to copy items from an AutomationElementCollection into a List<Window>, can this be achieved? 

I know it can be done the other way,

e.g. AutomationElement window = Window.AutomationElement; 

the AutomationElement property of Window is read only, so is there another way to assign\convert it?