本文整理汇总了C#中IHtmlString.Concat方法的典型用法代码示例。如果您正苦于以下问题:C# IHtmlString.Concat方法的具体用法?C# IHtmlString.Concat怎么用?C# IHtmlString.Concat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IHtmlString
的用法示例。
在下文中一共展示了IHtmlString.Concat方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadAbsoluteStyles
public static IHtmlString LoadAbsoluteStyles(this IFrontHtmlHelper frontHtml, string baseUri, string themeName)
{
IEnumerable<IHtmlString> styles = new IHtmlString[0];
var key = "___RegisteredSystemStyles____";
if (frontHtml.Html.ViewContext.HttpContext.Items[key] == null)
{
styles = styles
//.Concat(this.IncludeModuleThemeStyles(baseUri))
//.Concat(this.IncludeInlineEditingStyles(baseUri))
//.Concat(this.IncludeStyleEditingStyles(baseUri))
.Distinct(new IHtmlStringComparer());
//if (this.PageContext.PageRequestContext.Site.EnableJquery)
//{
// styles = styles.Concat(new[] { Kooboo.Common.Web.WebResourceLoader.MvcExtensions.ExternalResources(this.Html, null, "jQuery-Styles", null, baseUri) });
//}
styles = styles.Concat(frontHtml.Page_Context.Styles);
frontHtml.Html.ViewContext.HttpContext.Items[key] = new object();
}
styles = styles.Concat(IncludeThemeStyles(frontHtml, themeName, baseUri));
return new AggregateHtmlString(styles);
}
示例2: RegisterAbsoluteStyles
public virtual IHtmlString RegisterAbsoluteStyles(string baseUri, string themeName)
{
IEnumerable<IHtmlString> styles = new IHtmlString[0];
var key = "___RegisteredSystemStyles____";
if (Html.ViewContext.HttpContext.Items[key] == null)
{
styles = styles
.Concat(this.IncludeModuleThemeStyles(baseUri))
.Concat(this.IncludeInlineEditingStyles(baseUri))
.Concat(this.IncludeStyleEditingStyles(baseUri))
.Distinct(new IHtmlStringComparer());
Html.ViewContext.HttpContext.Items[key] = new object();
}
styles = styles.Concat(this.IncludeThemeStyles(themeName, baseUri))
.Concat(this.PageContext.Styles);
return new AggregateHtmlString(styles);
}
示例3: RegisterAbsoluteStyles
public virtual IHtmlString RegisterAbsoluteStyles(string baseUri, string themeName)
{
IEnumerable<IHtmlString> styles = new IHtmlString[0];
var key = "___RegisteredSystemStyles____";
if (Html.ViewContext.HttpContext.Items[key] == null)
{
styles = styles
.Concat(this.IncludeModuleThemeStyles(baseUri))
.Concat(this.IncludeInlineEditingStyles(baseUri))
.Concat(this.IncludeStyleEditingStyles(baseUri))
.Distinct(new IHtmlStringComparer());
if (this.PageContext.PageRequestContext.Site.EnableJquery)
{
styles = styles.Concat(new[] { Kooboo.Web.Mvc.WebResourceLoader.MvcExtensions.ExternalResources(this.Html, null, "jQuery-Styles", null, baseUri) });
}
styles = styles.Concat(this.PageContext.Styles);
Html.ViewContext.HttpContext.Items[key] = new object();
}
styles = styles.Concat(this.IncludeThemeStyles(themeName, baseUri));
return new AggregateHtmlString(styles);
}