title: WPF XAML in XAML, referencing external UserControls?
body: <p>New to WPF, trying to move back and forth between various <code>UserControl</code>s that I've made.</p>
  
  <p>They're defined in separate files, say <code>f1.xaml</code> <code>f2</code> <code>f3</code> <code>f4</code>, and then I made a <code>master</code> view.</p>
  
  <p>Can I import <code>f1</code> and/or <code>f2</code> into <code>master</code>, and then use them with some logic to move between them (<a href="https://rachel53461.wordpress.com/2011/05/28/switching-between-viewsusercontrols-using-mvvm/" rel="nofollow noreferrer">https://rachel53461.wordpress.com/2011/05/28/switching-between-viewsusercontrols-using-mvvm/</a>)?  In that article, the <code>DataTemplate</code>s are all inlined.</p>
  
  <p>Is my initial assumption flawed, and I actually need to inline all my views into one massive file?</p>
  
  <p>If I can use external files, how do I import an external XAML UserControl into another XAML?</p>
  
  <p><del>Tutorial links welcome!</del>
  <em>Edit, post-solve</em></p>
  
  <p>Posting a couple other tutorial links that helped me out:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/5399997/xaml-what-is-local">xaml what is &quot;local:&quot;?</a></li>
  <li><a href="https://wpftutorial.net/DataTemplates.html" rel="nofollow noreferrer">https://wpftutorial.net/DataTemplates.html</a></li>
  <li><a href="https://wpftutorial.net/ListBoxDataTemplate.html" rel="nofollow noreferrer">https://wpftutorial.net/ListBoxDataTemplate.html</a></li>
  <li><a href="https://shenhengbin.wordpress.com/2012/07/06/wpf-applying-data-templates-dynamically-in-contentcontrol/" rel="nofollow noreferrer">https://shenhengbin.wordpress.com/2012/07/06/wpf-applying-data-templates-dynamically-in-contentcontrol/</a> (outdated but helpful)</li>
  </ul>