7 writes to FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (2)
RenderAtEndOfFormTagHelper.cs (2)
37
ViewContext.
FormContext
= new FormContext
62
ViewContext.
FormContext
= new FormContext();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
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 (2)
68
FormContext
= new FormContext();
96
FormContext
= viewContext.FormContext;
18 references to FormContext
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (3)
257
ViewContext.
FormContext
.InvariantField(fullName))
355
if (ViewContext.CheckBoxHiddenInputRenderMode == CheckBoxHiddenInputRenderMode.EndOfForm && ViewContext.
FormContext
.CanRenderAtEndOfForm)
357
ViewContext.
FormContext
.EndOfFormContent.Add(hiddenForCheckboxTag);
RenderAtEndOfFormTagHelper.cs (1)
51
var formContext = ViewContext.
FormContext
;
Microsoft.AspNetCore.Mvc.ViewFeatures (14)
DefaultHtmlGenerator.cs (3)
169
var formContext = viewContext.
FormContext
;
734
var formContext = viewContext.ClientValidationEnabled ? viewContext.
FormContext
: null;
1188
viewContext.
FormContext
.InvariantField(fullName, true);
DefaultValidationHtmlAttributeProvider.cs (1)
53
var formContext = viewContext.ClientValidationEnabled ? viewContext.
FormContext
: null;
HtmlHelper.cs (4)
752
if (ViewContext.CheckBoxHiddenInputRenderMode == CheckBoxHiddenInputRenderMode.EndOfForm && ViewContext.
FormContext
.CanRenderAtEndOfForm)
754
ViewContext.
FormContext
.EndOfFormContent.Add(hiddenForCheckbox);
920
ViewContext.
FormContext
.EndOfFormContent.Add(_htmlGenerator.GenerateAntiforgery(ViewContext));
976
ViewContext.
FormContext
.EndOfFormContent.Add(_htmlGenerator.GenerateAntiforgery(ViewContext));
Rendering\MvcForm.cs (1)
65
var formContext = _viewContext.
FormContext
;
Rendering\ViewContext.cs (4)
96
FormContext = viewContext.
FormContext
;
115
/// Gets or sets the <see cref="
FormContext
"/> for the form element being rendered.
210
/// Gets the <see cref="
FormContext
"/> if <see cref="ClientValidationEnabled"/> is enabled.
215
return ClientValidationEnabled ?
FormContext
: null;
ValidationHtmlAttributeProvider.cs (1)
61
var formContext = viewContext.ClientValidationEnabled ? viewContext.
FormContext
: null;