I want to have customizable content in my layout page in blazor. I have tried adding a renderfragment parameter to the layout and adding makeup with the same name in my component but it is not rendered in my layout
eg
layout.razor:
<header>
@HeaderContent
</header>
@body
@code
{
[Parameter] public RenderFragment HeaderContent { get; set; }
}
component.razor:
<HeaderContent>
<p>my page specific content</p>
</HeaderContnt>
but the headercontent is rendered in the body. can anybody explain how to do this, or why its not possible in a layout. The only way I have found that works is this but it wont refresh the content if I change a bound parameter inside the render fragment
