I can't find a way to call the method in @Body from mainLayout. in mainLayout:
<div class="page"> <div class="sidebar">
<NavMenu />
</div>
<div class="main">
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
<div class="top-row px-4">
<a href="https://docs.microsoft.com/en-us/aspnet/" target="_blank">About</a>
</div>
<div class="content px-4">
@Body
</div>
</div>
In the Main Layout there is a Click me button, by pressing which you need to call the method that is in the Body. What are the options for calling the method in Body from mainLayout?