1 write to EditContext
Microsoft.AspNetCore.Components.Web (1)
Forms\InputBase.cs (1)
243
EditContext
= CascadedEditContext;
17 references to EditContext
Microsoft.AspNetCore.Components.Web (16)
Forms\InputBase.cs (15)
98
EditContext
?.NotifyFieldChanged(FieldIdentifier);
137
if (
EditContext
is not null)
139
_parsingValidationMessages ??= new ValidationMessageStore(
EditContext
);
143
EditContext
.NotifyFieldChanged(FieldIdentifier);
150
EditContext
?.NotifyValidationStateChanged();
191
var fieldClass =
EditContext
?.FieldCssClass(FieldIdentifier);
244
EditContext
.OnValidationStateChanged += _validationStateChangedHandler;
245
_shouldGenerateFieldNames =
EditContext
.ShouldUseFieldIdentifiers;
256
else if (CascadedEditContext !=
EditContext
)
282
if (
EditContext
is null)
288
if (
EditContext
.GetValidationMessages(FieldIdentifier).Any())
292
var attemptedValue =
EditContext
.GetAttemptedValue(NameAttributeValue);
372
if (
EditContext
is not null)
374
EditContext
.OnValidationStateChanged -= _validationStateChangedHandler;
381
EditContext
!.NotifyValidationStateChanged(); // when _parsingValidationMessages is not null, EditContext is also not null.
Forms\InputRadioGroup.cs (1)
65
_context.FieldClass =
EditContext
?.FieldCssClass(FieldIdentifier);
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
556
public new EditContext EditContext => base.
EditContext
;