4 instantiations of EditContext
Aspire.Dashboard (3)
Components\Dialogs\FilterDialog.razor.cs (1)
47
EditContext = new
EditContext
(_formModel);
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
46
_editContext = new
EditContext
(Content);
Components\Pages\Login.razor.cs (1)
51
EditContext = new
EditContext
(_formModel);
Microsoft.AspNetCore.Components.Web (1)
Forms\EditForm.cs (1)
126
_editContext = new
EditContext
(Model!);
87 references to EditContext
Aspire.Dashboard (3)
Components\Dialogs\FilterDialog.razor.cs (1)
34
public
EditContext
EditContext { get; private set; } = default!;
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
37
private
EditContext
_editContext = default!;
Components\Pages\Login.razor.cs (1)
22
public
EditContext
EditContext { get; private set; } = default!;
Microsoft.AspNetCore.Components.Forms (40)
DataAnnotationsValidator.cs (6)
9
/// Adds Data Annotations validation support to an <see cref="
EditContext
"/>.
11
/// by storing an <see cref="IClientValidationService"/> on the <see cref="
EditContext
.Properties"/>.
16
private
EditContext
? _originalEditContext;
18
[CascadingParameter]
EditContext
? CurrentEditContext { get; set; }
34
$"parameter of type {nameof(
EditContext
)}. For example, you can use {nameof(DataAnnotationsValidator)} " +
60
$"{nameof(
EditContext
)} dynamically.");
EditContext.cs (17)
25
/// Constructs an instance of <see cref="
EditContext
"/>.
27
/// <param name="model">The model object for the <see cref="
EditContext
"/>. This object should hold the data being edited, for example as a set of properties.</param>
80
/// on this <see cref="
EditContext
"/>'s <see cref="Model"/>.
83
/// <returns>A <see cref="FieldIdentifier"/> corresponding to a specified field name on this <see cref="
EditContext
"/>'s <see cref="Model"/>.</returns>
88
/// Gets the model object for this <see cref="
EditContext
"/>.
133
/// Clears all modification flags within this <see cref="
EditContext
"/>.
144
/// Determines whether any of the fields in this <see cref="
EditContext
"/> have been modified.
146
/// <returns>True if any of the fields in this <see cref="
EditContext
"/> have been modified; otherwise false.</returns>
210
/// Determines whether the specified fields in this <see cref="
EditContext
"/> has been modified.
219
/// Determines whether the specified fields in this <see cref="
EditContext
"/> has been modified.
227
/// Determines whether the specified fields in this <see cref="
EditContext
"/> has no associated validation messages.
234
/// Determines whether the specified fields in this <see cref="
EditContext
"/> has no associated validation messages.
242
/// Validates this <see cref="
EditContext
"/>.
249
/// handler attached to the same <see cref="
EditContext
"/>; doing so produces undefined
286
/// Validates this <see cref="
EditContext
"/> asynchronously.
313
/// handler attached to the same <see cref="
EditContext
"/>; doing so produces undefined
428
/// and the new task replaces it. The <see cref="
EditContext
"/> takes ownership of the supplied
EditContextDataAnnotationsExtensions.cs (7)
19
/// Extension methods to add DataAnnotations validation to an <see cref="
EditContext
"/>.
24
/// Enables DataAnnotations validation support for the <see cref="
EditContext
"/>.
26
/// <param name="editContext">The <see cref="
EditContext
"/>.</param>
28
/// <returns>A disposable object whose disposal will remove DataAnnotations validation support from the <see cref="
EditContext
"/>.</returns>
29
public static IDisposable EnableDataAnnotationsValidation(this
EditContext
editContext, IServiceProvider serviceProvider)
48
private readonly
EditContext
_editContext;
58
public DataAnnotationsEventSubscriptions(
EditContext
editContext, IServiceProvider serviceProvider)
EditContextProperties.cs (1)
9
/// Holds arbitrary key/value pairs associated with an <see cref="
EditContext
"/>.
FieldChangedEventArgs.cs (1)
7
/// Provides information about the <see cref="
EditContext
.OnFieldChanged"/> event.
ValidationMessageStore.cs (6)
9
/// Holds validation messages for an <see cref="
EditContext
"/>.
13
private readonly
EditContext
_editContext;
19
/// <param name="editContext">The <see cref="
EditContext
"/> with which this store should be associated.</param>
20
public ValidationMessageStore(
EditContext
editContext)
60
/// To get the validation messages across all validation message stores, use <see cref="
EditContext
.GetValidationMessages(FieldIdentifier)"/> instead
70
/// To get the validation messages across all validation message stores, use <see cref="
EditContext
.GetValidationMessages(FieldIdentifier)"/> instead
ValidationRequestedEventArgs.cs (1)
7
/// Provides information about the <see cref="
EditContext
.OnValidationRequested"/> event.
ValidationStateChangedEventArgs.cs (1)
7
/// Provides information about the <see cref="
EditContext
.OnValidationStateChanged"/> event.
Microsoft.AspNetCore.Components.Web (44)
Forms\EditContextFieldClassExtensions.cs (9)
9
/// Provides extension methods to describe the state of <see cref="
EditContext
"/>
20
/// <param name="editContext">The <see cref="
EditContext
"/>.</param>
23
public static string FieldCssClass<TField>(this
EditContext
editContext, Expression<Func<TField>> accessor)
29
/// <param name="editContext">The <see cref="
EditContext
"/>.</param>
32
public static string FieldCssClass(this
EditContext
editContext, in FieldIdentifier fieldIdentifier)
42
/// Associates the supplied <see cref="FieldCssClassProvider"/> with the supplied <see cref="
EditContext
"/>.
43
/// This customizes the field CSS class names used within the <see cref="
EditContext
"/>.
45
/// <param name="editContext">The <see cref="
EditContext
"/>.</param>
47
public static void SetFieldCssClassProvider(this
EditContext
editContext, FieldCssClassProvider fieldCssClassProvider)
Forms\EditForm.cs (9)
17
private
EditContext
? _editContext;
36
/// from the <see cref="
EditContext
.Model"/> property.
39
public
EditContext
? EditContext
68
[Parameter] public RenderFragment<
EditContext
>? ChildContent { get; set; }
74
/// manually, e.g., by calling <see cref="
EditContext
.Validate"/>.
76
[Parameter] public EventCallback<
EditContext
> OnSubmit { get; set; }
82
[Parameter] public EventCallback<
EditContext
> OnValidSubmit { get; set; }
88
[Parameter] public EventCallback<
EditContext
> OnInvalidSubmit { get; set; }
167
builder.OpenComponent<CascadingValue<
EditContext
>>(7);
Forms\FieldCssClassProvider.cs (5)
10
/// state information from an <see cref="
EditContext
"/>.
20
/// <see cref="
EditContext
.IsModified(in FieldIdentifier)"/> is <c>true</c>.
23
/// <see cref="
EditContext
.AddValidationTask"/> is in flight, and supersedes valid/invalid
32
/// <param name="editContext">The <see cref="
EditContext
"/>.</param>
35
public virtual string GetFieldCssClass(
EditContext
editContext, in FieldIdentifier fieldIdentifier)
Forms\InputBase.cs (5)
15
/// integrates with an <see cref="Forms.
EditContext
"/>, which must be supplied
30
[CascadingParameter] private
EditContext
? CascadedEditContext { get; set; }
65
/// Gets the associated <see cref="Forms.
EditContext
"/>.
68
protected
EditContext
EditContext { get; set; } = default!;
289
$"{nameof(Forms.
EditContext
)} dynamically.");
Forms\Mapping\EditContextFormMappingExtensions.cs (4)
12
public static IDisposable EnableFormMappingContextExtensions(this
EditContext
context, FormMappingContext mappingContext)
22
public static string? GetAttemptedValue(this
EditContext
context, string fieldName)
37
private readonly
EditContext
_editContext;
42
public MappingContextEventSubscriptions(
EditContext
editContext, FormMappingContext mappingContext)
Forms\Mapping\FormMappingValidator.cs (4)
12
private
EditContext
? _originalEditContext;
14
[Parameter] public
EditContext
? CurrentEditContext { get; set; }
24
$"parameter of type {nameof(
EditContext
)}.");
49
$"{nameof(
EditContext
)} dynamically.");
Forms\ValidationMessage.cs (4)
11
/// Displays a list of validation messages for a specified field within a cascaded <see cref="
EditContext
"/>.
15
private
EditContext
? _previousEditContext;
25
[CascadingParameter]
EditContext
CurrentEditContext { get; set; } = default!;
48
$"of type {nameof(
EditContext
)}. For example, you can use {GetType()} inside " +
Forms\ValidationSummary.cs (4)
14
/// Displays a list of validation messages from a cascaded <see cref="
EditContext
"/>.
18
private
EditContext
? _previousEditContext;
32
[CascadingParameter]
EditContext
CurrentEditContext { get; set; } = default!;
48
$"of type {nameof(
EditContext
)}. For example, you can use {nameof(ValidationSummary)} inside " +