title: How can I do BaseLayout/BaseComponent override In Blazor
body: <p>ToolbarLayout.cs</p>
  
  <pre><code>public class ToolbarLayoutBase : LayoutComponentBase
  {
      public string Text { get; set; }
  
      public virtual void NewData()
      {
          Console.WriteLine("Save Click " + Text);
      }
      public virtual void UpdateData()
      {
          Console.WriteLine("Update Click");
      }
  }
  </code></pre>
  
  <p>ToolbarLayout Razor</p>
  
  <pre><code>@inherits ToolbarLayoutBase
  BtnSave,BtnUpdate,BtnRemove HTML Button
  </code></pre>
  
  <p>EditPage.cs</p>
  
  <pre><code>public class EditPageBase : ToolbarLayoutBase
  {
  
      public override void UpdateData()
      {
          base.UpdateData();
      }
  
  }
  </code></pre>
  
  <p>EditPage Razor</p>
  
  <pre><code>@inherits EditPageBase
  @page "/editpage"
  
  &lt;ToolbarLayout  /&gt;
  </code></pre>
  
  <p>I have components as shown in the pictures above.
  I want to use my "ToolbarLayout" component as a base component, and I need methods, etc. I want to change.
  Like the Base Form structure in WinForm.</p>