158 references to RenderFragment
Aspire.Dashboard (12)
Components\Controls\Grid\AspireFluentDataGridHeaderCell.razor.cs (1)
79RenderFragment GetHeaderContent(ColumnBase<T> value) => builder =>
Components\Controls\GridValue.razor.cs (3)
29public RenderFragment? ContentBeforeValue { get; set; } 35public RenderFragment? ContentAfterValue { get; set; } 41public RenderFragment? ContentInButtonArea { get; set; }
Components\Controls\PropertyGrid.razor.cs (1)
142private RenderFragment? GetContentAfterValue(TItem context) => ContentAfterValue == s_emptyChildContent
Components\Controls\SummaryDetailsView.razor.cs (1)
18public RenderFragment? Summary { get; set; }
Components\Layout\AspirePageContentLayout.razor.cs (5)
19public RenderFragment? MobilePageTitleToolbarSection { get; set; } 22public RenderFragment? ToolbarSection { get; set; } 28public RenderFragment? MainSection { get; set; } 31public RenderFragment? FooterSection { get; set; } 121public record MobileToolbar(RenderFragment ToolbarSection, string MobileToolbarButtonText);
Components\Resize\GridColumnManager.razor.cs (1)
23public RenderFragment? ChildContent { get; set; }
Microsoft.AspNetCore.Components (29)
CascadingValue.cs (2)
20[Parameter] public RenderFragment? ChildContent { get; set; } 74ChildContent = (RenderFragment)parameter.Value;
ComponentBase.cs (1)
24private readonly RenderFragment _renderFragment;
DynamicComponent.cs (1)
16private readonly RenderFragment _cachedRenderFragment;
ErrorBoundaryBase.cs (1)
18[Parameter] public RenderFragment? ChildContent { get; set; }
LayoutComponentBase.cs (1)
22public RenderFragment? Body { get; set; }
LayoutView.cs (5)
17private static readonly RenderFragment EmptyRenderFragment = builder => { }; 25public RenderFragment ChildContent { get; set; } = default!; 53var fragment = ChildContent ?? EmptyRenderFragment; 67private static RenderFragment WrapInLayout([DynamicallyAccessedMembers(Component)] Type layoutType, RenderFragment bodyParam)
RenderFragment.cs (2)
17/// a function that returns a <see cref="RenderFragment"/>. 21public delegate RenderFragment RenderFragment<TValue>(TValue value);
RenderHandle.cs (1)
91public void Render(RenderFragment renderFragment)
Rendering\ComponentState.cs (1)
90internal void RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, out Exception? renderFragmentException)
Rendering\RenderQueueEntry.cs (2)
12public readonly RenderFragment RenderFragment; 14public RenderQueueEntry(ComponentState componentState, RenderFragment renderFragment)
Rendering\RenderTreeBuilder.cs (1)
104public void AddContent(int sequence, RenderFragment? fragment)
RenderTree\Renderer.cs (2)
652/// <param name="renderFragment">A <see cref="RenderFragment"/> that will supply the updated UI contents.</param> 653internal void AddToRenderQueue(int componentId, RenderFragment renderFragment)
RouteView.cs (1)
84builder.AddComponentParameter(2, nameof(LayoutView.ChildContent), (RenderFragment)RenderPageWithParameters);
Routing\Router.cs (2)
71public RenderFragment NotFound { get; set; } 83[Parameter] public RenderFragment? Navigating { get; set; }
Sections\SectionContent.cs (2)
36[Parameter] public RenderFragment? ChildContent { get; set; } 101ChildContent = (RenderFragment)param.Value;
Sections\SectionOutlet.cs (4)
13private static readonly RenderFragment _emptyRenderFragment = _ => { }; 99var fragment = _currentContentProvider?.ChildContent ?? _emptyRenderFragment; 139var fragment = parameters.GetValueOrDefault<RenderFragment>(ContentParameterName)!;
Microsoft.AspNetCore.Components.Authorization (8)
AuthorizeRouteView.cs (7)
25private static readonly RenderFragment _defaultAuthorizingContent 28private readonly RenderFragment _renderAuthorizeRouteViewCoreDelegate; 31private readonly RenderFragment _renderAuthorizingDelegate; 41RenderFragment renderBaseRouteViewDelegate = base.Render; 58public RenderFragment? Authorizing { get; set; } 104private void RenderContentInDefaultLayout(RenderTreeBuilder builder, RenderFragment content) 120var content = Authorizing ?? _defaultAuthorizingContent;
AuthorizeViewCore.cs (1)
37[Parameter] public RenderFragment? Authorizing { get; set; }
Microsoft.AspNetCore.Components.Authorization.Tests (9)
AuthorizeRouteViewTest.cs (2)
252RenderFragment customAuthorizing = 417builder.AddComponentParameter(2, nameof(CascadingValue<object>.ChildContent), (RenderFragment)(builder =>
AuthorizeViewTest.cs (5)
500RenderFragment authorizing = null, 521private readonly RenderFragment _childContent; 526public TestAuthStateProviderComponent(RenderFragment childContent) 535builder.AddComponentParameter(2, "ChildContent", (RenderFragment)(builder => 550[Parameter] public RenderFragment ChildContent { get; set; }
src\Components\Shared\test\AutoRenderFragmentComponent.cs (2)
10private readonly RenderFragment _renderFragment; 12public AutoRenderFragmentComponent(RenderFragment renderFragment)
Microsoft.AspNetCore.Components.Endpoints (1)
RazorComponentEndpointHost.cs (1)
47builder.AddComponentParameter(2, nameof(LayoutView.ChildContent), (RenderFragment)RenderPageWithParameters);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
EndpointHtmlRendererTest.cs (2)
1579private readonly RenderFragment _renderFragment; 1581public TestComponent(RenderFragment renderFragment)
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AutoRenderFragmentComponent.cs (2)
10private readonly RenderFragment _renderFragment; 12public AutoRenderFragmentComponent(RenderFragment renderFragment)
Microsoft.AspNetCore.Components.QuickGrid (8)
Columns\ColumnBase.razor.cs (3)
47[Parameter] public RenderFragment? ColumnOptions { get; set; } 91/// Gets or sets a <see cref="RenderFragment" /> that will be rendered for this column's header cell. 96protected internal RenderFragment HeaderContent { get; protected set; }
Infrastructure\Defer.cs (1)
21[Parameter] public RenderFragment? ChildContent { get; set; }
Pagination\Paginator.razor.cs (1)
23[Parameter] public RenderFragment? SummaryTemplate { get; set; }
QuickGrid.razor.cs (3)
51[Parameter] public RenderFragment? ChildContent { get; set; } 136private readonly RenderFragment _renderColumnHeaders; 137private readonly RenderFragment _renderNonVirtualizedRows;
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteRenderer.cs (2)
414public PendingRender(int componentId, RenderFragment renderFragment) 421public RenderFragment RenderFragment { get; }
Microsoft.AspNetCore.Components.Server.Tests (10)
Circuits\CircuitHostTest.cs (2)
908private readonly RenderFragment _renderFragment = (builder) => 915public TestComponent(RenderFragment renderFragment) : this() => _renderFragment = renderFragment;
Circuits\RemoteRendererTest.cs (8)
203RenderFragment initialContent = (builder) => 266RenderFragment initialContent = (builder) => 334RenderFragment initialContent = (builder) => 391RenderFragment initialContent = (builder) => 732private readonly RenderFragment _renderFragment = (builder) => 743internal TestComponent(RenderFragment renderFragment) 778[Parameter] public RenderFragment Content { get; set; } 789Content = parameters.GetValueOrDefault<RenderFragment>(nameof(Content));
Microsoft.AspNetCore.Components.Tests (50)
CascadingParameterTest.cs (4)
876[Parameter] public RenderFragment ChildContent { get; set; } 909private readonly RenderFragment _renderFragment; 911public TestComponent(RenderFragment renderFragment) 1035[Parameter] public RenderFragment ChildContent { get; set; }
DynamicComponentTest.cs (2)
73{ nameof(TestComponent.ChildContent), (RenderFragment)(builder => 131[Parameter] public RenderFragment ChildContent { get; set; }
LayoutViewTest.cs (9)
42{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 90{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 122{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 163{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 173{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 207{ nameof(LayoutView.ChildContent), (RenderFragment)(builder => { 278public RenderFragment Body { get; set; } 298public RenderFragment Body { get; set; } 312public RenderFragment Body { get; set; }
RendererTest.cs (23)
257[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 416[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 460[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 518[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3565[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3598[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3631[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3669[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3779[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3835[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3890[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3946[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4059[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4093[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4135[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 5186private readonly RenderFragment _renderFragment; 5188public TestComponent(RenderFragment renderFragment) 5614public RenderFragment RenderFragment { get; set; } 5673private Func<NestedAsyncComponent, RenderFragment> CreateRenderFactory(int[] childrenToRender) 5703[Parameter] public IDictionary<int, Func<NestedAsyncComponent, RenderFragment>> WhatToRender { get; set; } 5973[Parameter] public RenderFragment ChildContent { get; set; } 5984public static void RenderNestedErrorBoundaries(RenderTreeBuilder builder, RenderFragment innerContent) 5988builder.AddComponentParameter(1, nameof(TestErrorBoundary.ChildContent), (RenderFragment)(builder =>
Rendering\RenderTreeBuilderTest.cs (1)
687RenderFragment fragment = fragmentBuilder =>
RenderTreeDiffBuilderTest.cs (4)
35public void RecognizesEquivalentFramesAsSame(RenderFragment appendFragment) 49=> new RenderFragment[] 1737RenderFragment fragmentWillNotChange = builder => throw new NotImplementedException(); 1791RenderFragment fragmentWillNotChange = builder => throw new NotImplementedException();
RouteViewTest.cs (2)
202public RenderFragment Body { get; set; } 215public RenderFragment Body { get; set; }
Routing\RouterTest.cs (3)
189{ nameof(Router.NotFound), (RenderFragment)(builder => { }) }, 209{ nameof(Router.NotFound), (RenderFragment)(builder => { }) }, 235{ nameof(Router.NotFound), (RenderFragment)(builder => builder.AddContent(0, "Custom content")) },
src\Components\Shared\test\AutoRenderFragmentComponent.cs (2)
10private readonly RenderFragment _renderFragment; 12public AutoRenderFragmentComponent(RenderFragment renderFragment)
Microsoft.AspNetCore.Components.Web (10)
Forms\InputRadioGroup.cs (1)
21[Parameter] public RenderFragment? ChildContent { get; set; }
Forms\InputSelect.cs (1)
28[Parameter] public RenderFragment? ChildContent { get; set; }
Head\HeadContent.cs (1)
18public RenderFragment? ChildContent { get; set; }
Head\HeadOutlet.cs (1)
49builder.AddComponentParameter(5, nameof(SectionContent.ChildContent), (RenderFragment)BuildDefaultTitleRenderTree);
Head\PageTitle.cs (2)
18public RenderFragment? ChildContent { get; set; } 25builder.AddComponentParameter(2, nameof(SectionContent.ChildContent), (RenderFragment)BuildTitleRenderTree);
Routing\NavLink.cs (1)
45public RenderFragment? ChildContent { get; set; }
Virtualization\Virtualize.cs (3)
58private RenderFragment? _emptyContent; 88public RenderFragment? EmptyContent { get; set; } 457private RenderFragment DefaultPlaceholder(PlaceholderContext context) => (builder) =>
Microsoft.AspNetCore.Components.Web.Tests (15)
Forms\InputRadioTest.cs (3)
76private static RenderFragment RadioButtonsWithoutGroup(string name) => (builder) => 87private static RenderFragment RadioButtonsWithGroup(string name, Expression<Func<TestEnum>> valueExpression) => (builder) => 140public RenderFragment InnerContent { get; set; }
Forms\Mapping\FormMappingScopeTest.cs (2)
136private readonly RenderFragment _renderFragment; 138public TestComponent(RenderFragment renderFragment)
HtmlRendering\HtmlRendererTest.cs (6)
648RenderFragment Content(ParameterView pc) => new RenderFragment((RenderTreeBuilder rtb) => 658var serviceProvider = GetServiceProvider(collection => collection.AddSingleton(new Func<ParameterView, RenderFragment>(Content))); 742Func<ParameterView, RenderFragment> CreateRenderFragment { get; set; } 822{ nameof(SectionContent.ChildContent), (RenderFragment)(builder => 1282private RenderFragment CreateRenderFragment(string content) 1300public RenderFragment Fragment { get; set; }
src\Components\Shared\test\AutoRenderFragmentComponent.cs (2)
10private readonly RenderFragment _renderFragment; 12public AutoRenderFragmentComponent(RenderFragment renderFragment)
Virtualization\VirtualizeTest.cs (2)
108private RenderFragment BuildVirtualize<TItem>( 130public RenderFragment InnerContent { get; set; }