/// <summary> /// Registers a jQueryUI theme, if it is not already on the page /// </summary> public void RegisterUITheme(UIThemes theme) { if (theme != UIThemes.None) { var themeUri = new Uri(String.Format( "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/{0}/jquery-ui.css", TranslateThemeName(theme))); var themeElem = new jWebResource("jquery-ui-theme", themeUri, jWebResourceType.Css); themeElem.Register(jControl.Page); } }
public jAccordion() : base() { this.IncludeJqueryUI = true; InnerRepeater = new Repeater(); TemplatePanel = null; DataSource = null; Panels = null; UITheme = UIThemes.UiLightness; DisableIcons = false; }
private string TranslateThemeName(UIThemes theme) { return HyphenateStringByCapitalsAndInts(theme.ToString()).ToLower(); }