6 instantiations of FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (2)
RenderAtEndOfFormTagHelper.cs (2)
37ViewContext.FormContext = new FormContext 62ViewContext.FormContext = new FormContext();
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
HtmlHelper.cs (2)
236_viewContext.FormContext = new FormContext 253_viewContext.FormContext = new FormContext
Rendering\MvcForm.cs (1)
60_viewContext.FormContext = new FormContext();
Rendering\ViewContext.cs (1)
68FormContext = new FormContext();
14 references to FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (1)
RenderAtEndOfFormTagHelper.cs (1)
51var formContext = ViewContext.FormContext;
Microsoft.AspNetCore.Mvc.ViewFeatures (13)
DefaultHtmlGenerator.cs (2)
169var formContext = viewContext.FormContext; 734var formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;
DefaultValidationHtmlAttributeProvider.cs (1)
53var formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;
FormContext.cs (2)
14/// Literal &lt;form&gt; elements in a view will share the default <see cref="FormContext"/> instance unless tag 93/// an HTML helper; <c>false</c> when using the default <see cref="FormContext"/> instance.
Rendering\CheckBoxHiddenInputRenderMode.cs (1)
23/// If <see cref="Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.CanRenderAtEndOfForm"/> is <c>false</c>, will fall back on <see cref="Inline"/>.
Rendering\MvcForm.cs (2)
53/// Renders <see cref="ViewFeatures.FormContext.EndOfFormContent"/> and 65var formContext = _viewContext.FormContext;
Rendering\ViewContext.cs (3)
19private FormContext _formContext = default!; 118public virtual FormContext FormContext 213public FormContext? GetFormContextForClientValidation()
ValidationHtmlAttributeProvider.cs (2)
46/// Tracks the <paramref name="expression"/> in the current <see cref="FormContext"/> to avoid generating 61var formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;