public TemplatedMultiContentXhtmlEditorUiControlFactory(TemplatedMultiContentXhtmlEditorUiControlFactoryData data) { _data = data; if (_data.CacheCompiledUserControlType) { _cachedUserControlType = BuildManagerHelper.GetCompiledType(_data.UserControlVirtualPath); } }
public IUiControl CreateControl() { Type userControlType = _cachedUserControlType; if (userControlType == null && System.Web.HttpContext.Current != null) { userControlType = BuildManagerHelper.GetCompiledType(_data.UserControlVirtualPath); } TemplatedMultiContentXhtmlEditorUiControl control = new TemplatedMultiContentXhtmlEditorUiControl(userControlType); control.ClassConfigurationName = _data.ClassConfigurationName; return(control); }