Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Back-assign elements to MainLayout component from Child page in Blazor

$
0
0

Taking the standard structure of a blazor wasm project as an example, with the MainLayout component and razor pages denoted by the @page directive that is, basically I would need to render an element within the MainLayout component, the one who is calling the @Body directive, that is defined (as html) in another component which is a @page

Reason behind this is that I wish I could reserve a particular "spot" in the layout defined in the MainLayout for the pages to consume it and "inject" their stuff in there.

Something like you do with children RenderFragments but in the opposite direction.

Is it even possible?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>