public virtual void Apply(ContentAreaRenderingContext context, TagBuilder tagBuilder) { if (context.IsRenderingContentArea()) { ApplyCore(context, tagBuilder, "customattributes"); } else if (context.IsRenderingContentAreaItem()) { ApplyCore(context, tagBuilder, "childrencustomattributes"); } }
protected override bool ShouldApply(ContentAreaRenderingContext context, TagBuilder tagBuilder) { return(context.IsRenderingContentAreaItem()); }
public void Apply(ContentAreaRenderingContext context, TagBuilder tagBuilder) { if(context.IsRenderingContentAreaItem()) ApplyCore(context, tagBuilder); }