title: Is there any way to communicate to main layout of blazor pages
body: <p>Here I want to pass some title to the mainlayout.razor page so that my components or pages can update the title of header. Is there any possible way in blazor to do this ? Any help will be appreciated.</p>
  <pre><code>@inherits LayoutComponentBase
  
  &lt;div class=&quot;page&quot;&gt;
      &lt;div class=&quot;sidebar&quot;&gt;
          &lt;NavMenu /&gt;
      &lt;/div&gt;
  
      &lt;div class=&quot;main&quot;&gt;
          &lt;div class=&quot;top-row px-4 bg-success&quot;&gt;
              &lt;button onclick=&quot;toggleNav()&quot;&gt;
                  &lt;span class=&quot;oi oi-menu&quot;&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;div class=&quot;text-center&quot;&gt;
                  hey there
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class=&quot;content px-4&quot;&gt;
              @Body
          &lt;/div&gt;
      &lt;/div&gt;
      
  &lt;/div&gt;
  
  @code
  {
  
  }
  </code></pre>
  <p>and my child component is a router page with @page directive to navigate between pages i want that component to update this mainlayout is there any possible way ? Thanks in advance for any help.</p>
  <p>Regards,</p>