public WindowProxy(AutomationElement element) { this.Element = element; wp = element.Pattern<WindowPattern>(); }