public ViewManager(IntPtr hwnd) { _rootElement = _automation.ElementFromHandle(hwnd); if (null == _rootElement) { throw this.exception; } this.vt = new ViewTree(_rootElement, _automation); this.vt.BuildTree(); }