1 instantiation of FormMappingScope
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
36
var formMappingScope = new
FormMappingScope
27 references to FormMappingScope
Microsoft.AspNetCore.Components.Web (5)
Forms\Mapping\FormMappingScope.cs (3)
25
/// Specifies the content to be rendered inside this <see cref="
FormMappingScope
"/>.
44
throw new InvalidOperationException($"The {nameof(
FormMappingScope
)} component requires a nonempty {nameof(Name)} parameter value.");
58
throw new InvalidOperationException($"{nameof(
FormMappingScope
)} '{nameof(Name)}' can't change after initialization.");
Forms\Mapping\FormValueMappingContext.cs (1)
26
/// Gets the name of <see cref="
FormMappingScope
"/> that is allowed to supply data in this context.
Forms\Mapping\IFormValueMapper.cs (1)
15
/// <param name="scopeName">The name of the current <see cref="
FormMappingScope
"/>.</param>
Microsoft.AspNetCore.Components.Web.Tests (22)
Forms\EditFormTest.cs (3)
244
builder.OpenComponent<
FormMappingScope
>(0);
245
builder.AddComponentParameter(1, nameof(
FormMappingScope
.Name), MappingContextName);
246
builder.AddComponentParameter(3, nameof(
FormMappingScope
.ChildContent), (RenderFragment<FormMappingContext>)(_ => RenderForm));
Forms\Mapping\FormMappingScopeTest.cs (15)
32
builder.OpenComponent<
FormMappingScope
>(0);
33
builder.AddAttribute(1, nameof(
FormMappingScope
.Name), "named-context");
34
builder.AddAttribute(2, nameof(
FormMappingScope
.ChildContent), contents);
54
b.OpenComponent<
FormMappingScope
>(0);
55
b.AddAttribute(1, nameof(
FormMappingScope
.Name), "child-context");
56
b.AddAttribute(2, nameof(
FormMappingScope
.ChildContent), contents);
62
builder.OpenComponent<
FormMappingScope
>(0);
63
builder.AddAttribute(1, nameof(
FormMappingScope
.Name), "parent-context");
64
builder.AddAttribute(2, nameof(
FormMappingScope
.ChildContent), nested);
84
builder.OpenComponent<
FormMappingScope
>(0);
85
builder.AddAttribute(1, nameof(
FormMappingScope
.Name), name);
100
builder.OpenComponent<
FormMappingScope
>(0);
119
builder.OpenComponent<
FormMappingScope
>(0);
120
builder.AddAttribute(1, nameof(
FormMappingScope
.Name), contextName);
121
builder.AddAttribute(2, nameof(
FormMappingScope
.ChildContent), contents);
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
36
var
formMappingScope = new FormMappingScope
HtmlRendering\HtmlRendererTest.cs (3)
1088
rtb.OpenComponent<
FormMappingScope
>(0);
1089
rtb.AddComponentParameter(1, nameof(
FormMappingScope
.Name), "myscope");
1090
rtb.AddComponentParameter(1, nameof(
FormMappingScope
.ChildContent), (RenderFragment<FormMappingContext>)(ctx => rtb =>