title: WPF Page Within Tabcontrol TabItem Lazy loading
body: <p>I have Xaml WPF window with <code>TabControl</code> inside. Each <code>TabItem</code> of it contains a page inside frame like this:</p>
  
  <pre><code> &lt;TabItem &gt;
              &lt;TabItem.Header&gt;
                  Users
              &lt;/TabItem.Header&gt;
              &lt;Frame Source="/Views/UsersPage.xaml"  /&gt;
   &lt;/TabItem&gt;
   &lt;TabItem&gt;
              &lt;TabItem.Header&gt;
                  Stats
              &lt;/TabItem.Header&gt;
              &lt;Frame Source="/Views/OrdersPage.xaml"/&gt;
  &lt;/TabItem&gt;
  </code></pre>
  
  <p>The problem is when i open this window all pages inside frames loads simultaneously, so if , eg, I put <code>MessageBox</code> on each page load i got a lot of them. I want my pages to load only when I click on  corresponding tab header.
  How can i achieve this?</p>