4 instantiations of EditContext
Aspire.Dashboard (3)
Components\Dialogs\FilterDialog.razor.cs (1)
47EditContext = new EditContext(_formModel);
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
46_editContext = new EditContext(Content);
Components\Pages\Login.razor.cs (1)
51EditContext = new EditContext(_formModel);
Microsoft.AspNetCore.Components.Web (1)
Forms\EditForm.cs (1)
126_editContext = new EditContext(Model!);
98 references to EditContext
Aspire.Dashboard (3)
Components\Dialogs\FilterDialog.razor.cs (1)
34public EditContext EditContext { get; private set; } = default!;
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
37private EditContext _editContext = default!;
Components\Pages\Login.razor.cs (1)
22public EditContext EditContext { get; private set; } = default!;
Microsoft.AspNetCore.Components.Endpoints (2)
Forms\DataAnnotationsClientValidationProvider.cs (2)
37public override RenderFragment? RenderClientValidationRules(EditContext editContext, IReadOnlyDictionary<FieldIdentifier, string> renderedFields) 62internal string? SerializeClientValidationData(EditContext editContext, IReadOnlyDictionary<FieldIdentifier, string> renderedFields)
Microsoft.AspNetCore.Components.Forms (42)
DataAnnotationsValidator.cs (5)
7/// Adds Data Annotations validation support to an <see cref="EditContext"/>. 12private EditContext? _originalEditContext; 14[CascadingParameter] EditContext? CurrentEditContext { get; set; } 32$"parameter of type {nameof(EditContext)}. For example, you can use {nameof(DataAnnotationsValidator)} " + 53$"{nameof(EditContext)} dynamically.");
EditContext.cs (16)
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> 65/// on this <see cref="EditContext"/>'s <see cref="Model"/>. 68/// <returns>A <see cref="FieldIdentifier"/> corresponding to a specified field name on this <see cref="EditContext"/>'s <see cref="Model"/>.</returns> 73/// Gets the model object for this <see cref="EditContext"/>. 118/// Clears all modification flags within this <see cref="EditContext"/>. 129/// Determines whether any of the fields in this <see cref="EditContext"/> have been modified. 131/// <returns>True if any of the fields in this <see cref="EditContext"/> have been modified; otherwise false.</returns> 195/// Determines whether the specified fields in this <see cref="EditContext"/> has been modified. 204/// Determines whether the specified fields in this <see cref="EditContext"/> has been modified. 212/// Determines whether the specified fields in this <see cref="EditContext"/> has no associated validation messages. 219/// Determines whether the specified fields in this <see cref="EditContext"/> has no associated validation messages. 227/// Validates this <see cref="EditContext"/> synchronously. 250/// Validates this <see cref="EditContext"/> asynchronously, awaiting any validation tasks that handlers 344/// is invoked immediately with a <see cref="CancellationToken"/> owned by this <see cref="EditContext"/>, 350/// The <see cref="EditContext"/> owns the token source end to end; to also cancel from another source,
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> 29public static IDisposable EnableDataAnnotationsValidation(this EditContext editContext, IServiceProvider serviceProvider) 48private readonly EditContext _editContext; 57public 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"/>. 13private readonly EditContext _editContext; 19/// <param name="editContext">The <see cref="EditContext"/> with which this store should be associated.</param> 20public 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 (5)
7/// Provides information about the <see cref="EditContext.OnValidationRequested"/> event. 36/// resulting <see cref="Task"/>. It is invoked by <see cref="EditContext.ValidateAsync(CancellationToken)"/> 50$"Asynchronous validation is not supported during a synchronous {nameof(EditContext)}.{nameof(EditContext.Validate)} call. " + 51$"Call {nameof(EditContext.ValidateAsync)} instead.");
ValidationStateChangedEventArgs.cs (1)
7/// Provides information about the <see cref="EditContext.OnValidationStateChanged"/> event.
Microsoft.AspNetCore.Components.Web (51)
Forms\ClientValidation\ClientValidationData.cs (1)
19[CascadingParameter] private EditContext? CurrentEditContext { get; set; }
Forms\ClientValidation\ClientValidationProvider.cs (2)
16/// <param name="editContext">The <see cref="EditContext"/> of the form being rendered.</param> 27EditContext editContext,
Forms\ClientValidation\RenderedFieldRegistry.cs (4)
7/// Per-form registry of the inputs that rendered under an <see cref="EditContext"/> in static 9/// Stored in <see cref="EditContext.Properties"/> keyed by <c>typeof(RenderedFieldRegistry)</c>. 25public static RenderedFieldRegistry GetOrCreate(EditContext editContext) 38public static RenderedFieldRegistry? Get(EditContext editContext)
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> 23public static string FieldCssClass<TField>(this EditContext editContext, Expression<Func<TField>> accessor) 29/// <param name="editContext">The <see cref="EditContext"/>.</param> 32public 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> 47public static void SetFieldCssClassProvider(this EditContext editContext, FieldCssClassProvider fieldCssClassProvider)
Forms\EditForm.cs (9)
17private EditContext? _editContext; 36/// from the <see cref="EditContext.Model"/> property. 39public EditContext? EditContext 68[Parameter] public RenderFragment<EditContext>? ChildContent { get; set; } 74/// manually, e.g., by calling <see cref="EditContext.ValidateAsync"/>. 76[Parameter] public EventCallback<EditContext> OnSubmit { get; set; } 82[Parameter] public EventCallback<EditContext> OnValidSubmit { get; set; } 88[Parameter] public EventCallback<EditContext> OnInvalidSubmit { get; set; } 167builder.OpenComponent<CascadingValue<EditContext>>(7);
Forms\FieldCssClassProvider.cs (5)
10/// state information from an <see cref="EditContext"/>. 19/// <c>"modified "</c> when <see cref="EditContext.IsModified(in FieldIdentifier)"/> is <c>true</c>. 20/// <c>"pending"</c> (async validation registered via <see cref="EditContext.RegisterAsyncFieldValidator"/> in 25/// <param name="editContext">The <see cref="EditContext"/>.</param> 28public virtual string GetFieldCssClass(EditContext editContext, in FieldIdentifier fieldIdentifier)
Forms\InputBase.cs (5)
14/// integrates with an <see cref="Forms.EditContext"/>, which must be supplied 29[CascadingParameter] private EditContext? CascadedEditContext { get; set; } 64/// Gets the associated <see cref="Forms.EditContext"/>. 67protected EditContext EditContext { get; set; } = default!; 294$"{nameof(Forms.EditContext)} dynamically.");
Forms\Mapping\EditContextFormMappingExtensions.cs (4)
12public static IDisposable EnableFormMappingContextExtensions(this EditContext context, FormMappingContext mappingContext) 22public static string? GetAttemptedValue(this EditContext context, string fieldName) 37private readonly EditContext _editContext; 42public MappingContextEventSubscriptions(EditContext editContext, FormMappingContext mappingContext)
Forms\Mapping\FormMappingValidator.cs (4)
12private EditContext? _originalEditContext; 14[Parameter] public EditContext? CurrentEditContext { get; set; } 24$"parameter of type {nameof(EditContext)}."); 49$"{nameof(EditContext)} dynamically.");
Forms\ValidationMessage.cs (4)
10/// Displays a list of validation messages for a specified field within a cascaded <see cref="EditContext"/>. 14private EditContext? _previousEditContext; 24[CascadingParameter] EditContext CurrentEditContext { get; set; } = default!; 47$"of type {nameof(EditContext)}. For example, you can use {GetType()} inside " +
Forms\ValidationSummary.cs (4)
13/// Displays a list of validation messages from a cascaded <see cref="EditContext"/>. 17private EditContext? _previousEditContext; 31[CascadingParameter] EditContext CurrentEditContext { get; set; } = default!; 47$"of type {nameof(EditContext)}. For example, you can use {nameof(ValidationSummary)} inside " +