public void RegisterHtmlHeadContents(HtmlHeadAppender htmlHeadAppender, TextBoxStyle textBoxStyle)
        {
            ArgumentUtility.CheckNotNull("htmlHeadAppender", htmlHeadAppender);

            textBoxStyle.RegisterJavaScriptInclude(ResourceUrlFactory, htmlHeadAppender);

            string styleKey  = typeof(BocTextValueRenderer).FullName + "_Style";
            var    styleFile = ResourceUrlFactory.CreateThemedResourceUrl(typeof(BocTextValueRenderer), ResourceType.Html, "BocTextValue.css");

            htmlHeadAppender.RegisterStylesheetLink(styleKey, styleFile, HtmlHeadAppender.Priority.Library);
        }
Exemplo n.º 2
0
        public void RegisterHtmlHeadContents(HtmlHeadAppender htmlHeadAppender, TextBoxStyle textBoxStyle)
        {
            ArgumentUtility.CheckNotNull("htmlHeadAppender", htmlHeadAppender);

            textBoxStyle.RegisterJavaScriptInclude(SafeServiceLocator.Current.GetInstance <IResourceUrlFactory>(), htmlHeadAppender);

            string styleKey = typeof(BocMultilineTextValueQuirksModeRenderer).FullName + "_Style";

            var styleUrl = ResourceUrlFactory.CreateResourceUrl(typeof(BocMultilineTextValueQuirksModeRenderer), ResourceType.Html, "BocMultilineTextValue.css");

            htmlHeadAppender.RegisterStylesheetLink(styleKey, styleUrl, HtmlHeadAppender.Priority.Library);
        }
        public void RegisterHtmlHeadContents(HtmlHeadAppender htmlHeadAppender, TextBoxStyle textBoxStyle)
        {
            ArgumentUtility.CheckNotNull("htmlHeadAppender", htmlHeadAppender);

            textBoxStyle.RegisterJavaScriptInclude(SafeServiceLocator.Current.GetInstance <IResourceUrlFactory>(), htmlHeadAppender);
        }