title: How to create a main layout template in XAML
body: <p>I'm new to windows development. I'm making a simple windows app which has a few pages and each page has a similar layout in XAML. Like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kVlYC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kVlYC.jpg" alt="enter image description here"></a></p>
  
  <p>Each page is separated into 3 sections. A will have a title, B is where the content will be inserted and C is for other stuff. My question is: what is the simplest way to build a general layout template so that I can reuse it for every page? And is it possible?</p>
  
  <p>For example, I have a MainTemplate.xaml file with this layout:</p>
  
  <pre><code>&lt;Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"&gt;
      &lt;Grid.RowDefinitions&gt;
          &lt;RowDefinition/&gt;
          &lt;RowDefinition/&gt;
          &lt;RowDefinition/&gt;
      &lt;/Grid.RowDefinitions&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>And then my Page1.xaml will load MainTemplate so I don't have to copy and paste the same layout into every page of mine. I've tried looking online but the solutions are going way over my head. I was wondering if there's a simple way to do this like with webpages.Thanks a lot.</p>