39 references to TagRenderMode
Microsoft.AspNetCore.Mvc.TagHelpers (3)
InputTagHelper.cs (3)
333var renderingMode = 334output.TagMode == TagMode.SelfClosing ? TagRenderMode.SelfClosing : TagRenderMode.StartTag;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
InputTagHelperTest.cs (3)
859TagRenderMode = TagRenderMode.SelfClosing, 1184TagRenderMode = TagRenderMode.SelfClosing 1200.Returns(new TagBuilder("hidden") { TagRenderMode = TagRenderMode.SelfClosing })
RenderAtEndOfFormTagHelperTest.cs (4)
22GetTagBuilder("input", "SomeName", "hidden", "false", TagRenderMode.SelfClosing) 29GetTagBuilder("input", "SomeName", "hidden", "false", TagRenderMode.SelfClosing), 30GetTagBuilder("input", "SomeOtherName", "hidden", "false", TagRenderMode.SelfClosing) 120private static TagBuilder GetTagBuilder(string tag, string name, string type, string value, TagRenderMode mode)
TestableHtmlGenerator.cs (1)
106tagBuilder.TagRenderMode = TagRenderMode.SelfClosing;
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
DefaultDisplayTemplates.cs (1)
42inputTag.TagRenderMode = TagRenderMode.SelfClosing;
DefaultHtmlGenerator.cs (2)
243tagBuilder.TagRenderMode = TagRenderMode.SelfClosing; 1163TagRenderMode = TagRenderMode.SelfClosing,
HtmlHelper.cs (2)
913tagBuilder.TagRenderMode = TagRenderMode.StartTag; 969tagBuilder.TagRenderMode = TagRenderMode.StartTag;
Rendering\TagBuilder.cs (13)
114/// The <see cref="Rendering.TagRenderMode"/> with which the tag is written. 116/// <remarks>Defaults to <see cref="TagRenderMode.Normal"/>.</remarks> 117public TagRenderMode TagRenderMode { get; set; } = TagRenderMode.Normal; 338public IHtmlContent RenderStartTag() => new RenderTagHtmlContent(this, TagRenderMode.StartTag); 344public IHtmlContent RenderEndTag() => new RenderTagHtmlContent(this, TagRenderMode.EndTag); 350public IHtmlContent RenderSelfClosingTag() => new RenderTagHtmlContent(this, TagRenderMode.SelfClosing); 356TagRenderMode tagRenderMode) 360case TagRenderMode.StartTag: 366case TagRenderMode.EndTag: 371case TagRenderMode.SelfClosing: 402private readonly TagRenderMode _tagRenderMode; 404public RenderTagHtmlContent(TagBuilder tagBuilder, TagRenderMode tagRenderMode)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Rendering\HtmlHelperFormTest.cs (1)
351tagBuilder.TagRenderMode = TagRenderMode.SelfClosing;
Rendering\TagBuilderTest.cs (9)
11public static TheoryData<TagRenderMode, string> RenderingTestingData 15return new TheoryData<TagRenderMode, string> 17{ TagRenderMode.StartTag, "<p>" }, 18{ TagRenderMode.SelfClosing, "<p />" }, 19{ TagRenderMode.Normal, "<p></p>" } 73public void WriteTo_IgnoresIdAttributeCase(TagRenderMode renderingMode, string expectedOutput) 215tagBuilder.TagRenderMode = TagRenderMode.EndTag; 243tagBuilder.TagRenderMode = TagRenderMode.Normal; 285originalTagBuilder.TagRenderMode = TagRenderMode.SelfClosing;