internal Type GetDesignTimeUserControlType(string tagPrefix, string tagName) { Type type = typeof(UserControl); IDesignerHost designerHost = base.DesignerHost; if (designerHost != null) { IUserControlTypeResolutionService service = (IUserControlTypeResolutionService)designerHost.GetService(typeof(IUserControlTypeResolutionService)); if (service == null) { return(type); } try { type = service.GetType(tagPrefix, tagName); } catch { } } return(type); }
internal Type GetDesignTimeUserControlType(string tagPrefix, string tagName) { Debug.Assert(FInDesigner); Type type = typeof(UserControl); IDesignerHost host = DesignerHost; if (host != null) { IUserControlTypeResolutionService ucTypeResService = (IUserControlTypeResolutionService)host.GetService(typeof(IUserControlTypeResolutionService)); if (ucTypeResService != null) { try { type = ucTypeResService.GetType(tagPrefix, tagName); } catch { } } } return(type); }