title: How do I set a Tag attribute to a typeof(Page) in XAML for UWP application?
body: <p>How do I set a Tag attribute (which is type System.Object) to the type of a Page in XAML for a UWP application?</p>
  
  <p>In particular I am declaring a NavigationViewItem in XAML, and I would like to set it's Tag to the type of a Page, e.g.</p>
  
  <pre><code>&lt;NavigationViewItem Icon="Home" Content="Home" Tag=views:HomePage /&gt;
  </code></pre>
  
  <p>In C# I would code something like this <code>navItem.Tag = typeof(HomePage)</code>.</p>
  
  <p>Note that I am not trying to set the Tag to an instance of the page but rather the Type of a page.
  If I quote the <code>views:HomeView</code> part, it gets stored as a string. I declared the views namespace previously:</p>
  
  <pre><code>xmlns:views="using:MyApp.Views"
  </code></pre>
  
  <p>How can I assign an attribute a value for typeof(Page) in XAML? Thanks.</p>