public override object this[ string attribute ] { get { switch ( attribute.ToLower() ) { case "glcontext": return glContext; //case "window": // return _window.WindowInfo.WindowHandle; case "nativewindow": return _window; default: return null; } } }