6 instantiations of FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (2)
RenderAtEndOfFormTagHelper.cs (2)
37
ViewContext.FormContext = new
FormContext
62
ViewContext.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)
68
FormContext = new
FormContext
();
14 references to FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (1)
RenderAtEndOfFormTagHelper.cs (1)
51
var
formContext = ViewContext.FormContext;
Microsoft.AspNetCore.Mvc.ViewFeatures (13)
DefaultHtmlGenerator.cs (2)
169
var
formContext = viewContext.FormContext;
734
var
formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;
DefaultValidationHtmlAttributeProvider.cs (1)
53
var
formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;
FormContext.cs (2)
14
/// Literal <form> 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
65
var
formContext = _viewContext.FormContext;
Rendering\ViewContext.cs (3)
19
private
FormContext
_formContext = default!;
118
public virtual
FormContext
FormContext
213
public
FormContext
? GetFormContextForClientValidation()
ValidationHtmlAttributeProvider.cs (2)
46
/// Tracks the <paramref name="expression"/> in the current <see cref="
FormContext
"/> to avoid generating
61
var
formContext = viewContext.ClientValidationEnabled ? viewContext.FormContext : null;