1 instantiation of FormMappingContext
Microsoft.AspNetCore.Components.Web (1)
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (1)
23
_mappingContext = new
FormMappingContext
(mappingScopeName);
29 references to FormMappingContext
Microsoft.AspNetCore.Components.Web (18)
Forms\EditForm.cs (1)
90
[CascadingParameter] private
FormMappingContext
? MappingContext { get; set; }
Forms\Mapping\EditContextFormMappingExtensions.cs (4)
12
public static IDisposable EnableFormMappingContextExtensions(this EditContext context,
FormMappingContext
mappingContext)
27
if (context.Properties.TryGetValue(_key, out var result) && result is
FormMappingContext
mappingContext)
38
private readonly
FormMappingContext
_mappingContext;
42
public MappingContextEventSubscriptions(EditContext editContext,
FormMappingContext
mappingContext)
Forms\Mapping\FormMappingContext.cs (1)
148
internal void SetErrors(string formName,
FormMappingContext
childContext)
Forms\Mapping\FormMappingScope.cs (1)
27
[Parameter] public RenderFragment<
FormMappingContext
> ChildContent { get; set; } = default!;
Forms\Mapping\FormMappingValidator.cs (2)
7
/// Exposes validation messages for a given <see cref="
FormMappingContext
"/>.
16
[CascadingParameter] internal
FormMappingContext
? MappingContext { get; set; }
Forms\Mapping\SupplyParameterFromFormValueProvider.cs (5)
16
private readonly
FormMappingContext
_mappingContext;
18
public
FormMappingContext
MappingContext => _mappingContext;
35
if (parameterInfo.Attribute is CascadingParameterAttribute && parameterInfo.PropertyType == typeof(
FormMappingContext
))
52
if (parameterInfo.Attribute is CascadingParameterAttribute && parameterInfo.PropertyType == typeof(
FormMappingContext
))
72
internal static object? GetFormPostValue(IFormValueMapper formValueMapper,
FormMappingContext
? mappingContext, in CascadingParameterInfo parameterInfo)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (4)
22
typeof(
FormMappingContext
));
224
/// a <see cref="
FormMappingContext
"/> (whether or not that mapping context is named).
247
private
FormMappingContext
? FindFormMappingContext(int forComponentId)
255
return (
FormMappingContext
?)supplier?.GetCurrentValue(_findFormMappingContext);
Microsoft.AspNetCore.Components.Web.Tests (11)
Forms\EditFormTest.cs (1)
246
builder.AddComponentParameter(3, nameof(FormMappingScope.ChildContent), (RenderFragment<
FormMappingContext
>)(_ => RenderForm));
Forms\Mapping\FormMappingContextTest.cs (2)
13
var
context = new FormMappingContext("");
20
var
context = new FormMappingContext("name");
Forms\Mapping\FormMappingScopeTest.cs (7)
27
FormMappingContext
capturedContext = null;
28
RenderFragment<
FormMappingContext
> contents = (ctx) => b => { capturedContext = ctx; };
50
FormMappingContext
capturedContext = null;
51
RenderFragment<
FormMappingContext
> contents = (ctx) => b => { capturedContext = ctx; };
52
RenderFragment<
FormMappingContext
> nested = (ctx) => b =>
113
FormMappingContext
capturedContext = null;
114
RenderFragment<
FormMappingContext
> contents = (ctx) => b => { capturedContext = ctx; };
HtmlRendering\HtmlRendererTest.cs (1)
1090
rtb.AddComponentParameter(1, nameof(FormMappingScope.ChildContent), (RenderFragment<
FormMappingContext
>)(ctx => rtb =>