title: How to share xaml code between different windows phone pages?
body: <p>In my application I want to have following group of controls:</p>
  
  <pre><code>&lt;StackPanel Height="110" Orientation="Horizontal" HorizontalAlignment="Right"&gt;
      &lt;StackPanel&gt;
          &lt;TextBlock Name="NameTextBox"/&gt;
          &lt;TextBlock Name="NumberTextBox"/&gt;
      &lt;/StackPanel&gt;
      &lt;Image Name="ProfileImage"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>which I want to share across different pages in the project. But here is the problem:</p>
  
  <p>The contents of the <code>TextBlock</code>s and <code>Image</code> control are being loaded at runtime in the <code>PageLoad</code> event. So they have to be loaded every time navigation occurs. I don't want this to happen. I tried putting the controls in a <code>UserControl</code>, loading them in the <code>UserControl</code>'s <code>Loaded</code> event and including the <code>UserControl</code> in various pages. But still the <code>UserControl</code>'s <code>Loaded</code> event fires on every page. Can I have a way in which I can just load it once and every page uses it? Hope I am clear in the question.</p>