1 instantiation of FormMappingScope
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
36var 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"/>. 44throw new InvalidOperationException($"The {nameof(FormMappingScope)} component requires a nonempty {nameof(Name)} parameter value."); 58throw 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)
244builder.OpenComponent<FormMappingScope>(0); 245builder.AddComponentParameter(1, nameof(FormMappingScope.Name), MappingContextName); 246builder.AddComponentParameter(3, nameof(FormMappingScope.ChildContent), (RenderFragment<FormMappingContext>)(_ => RenderForm));
Forms\Mapping\FormMappingScopeTest.cs (15)
32builder.OpenComponent<FormMappingScope>(0); 33builder.AddAttribute(1, nameof(FormMappingScope.Name), "named-context"); 34builder.AddAttribute(2, nameof(FormMappingScope.ChildContent), contents); 54b.OpenComponent<FormMappingScope>(0); 55b.AddAttribute(1, nameof(FormMappingScope.Name), "child-context"); 56b.AddAttribute(2, nameof(FormMappingScope.ChildContent), contents); 62builder.OpenComponent<FormMappingScope>(0); 63builder.AddAttribute(1, nameof(FormMappingScope.Name), "parent-context"); 64builder.AddAttribute(2, nameof(FormMappingScope.ChildContent), nested); 84builder.OpenComponent<FormMappingScope>(0); 85builder.AddAttribute(1, nameof(FormMappingScope.Name), name); 100builder.OpenComponent<FormMappingScope>(0); 119builder.OpenComponent<FormMappingScope>(0); 120builder.AddAttribute(1, nameof(FormMappingScope.Name), contextName); 121builder.AddAttribute(2, nameof(FormMappingScope.ChildContent), contents);
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
36var formMappingScope = new FormMappingScope
HtmlRendering\HtmlRendererTest.cs (3)
1088rtb.OpenComponent<FormMappingScope>(0); 1089rtb.AddComponentParameter(1, nameof(FormMappingScope.Name), "myscope"); 1090rtb.AddComponentParameter(1, nameof(FormMappingScope.ChildContent), (RenderFragment<FormMappingContext>)(ctx => rtb =>