title: How to use Windows Authentication in WPF?
body: <p>I'm not finding much documentation on how to use Windows Authentication in a WPF app.  I wouldn't have thought that it would be any different than in any non-WPF app, but it seems that it is.  I want to go into my project Properties -&gt; Application and ensure that Windows Authentication is on, but that option is not available in a WPF app (as the following document confirms).</p>
  <p><a href="http://msdn.microsoft.com/en-us/library/tzdks800.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/tzdks800.aspx</a></p>
  <p>If I ignore all that and just look at <code>My.User.Name</code> (VB), it is empty.  This tells me that somehow Windows Authentication is not enabled.</p>
  <p>Seems like there is a concept I am missing; could someone point me in the right direction?</p>
  <p>My plan is to use <code>PrincipalPermissionAttribute</code> to restrict access to certain parts of my app (or perhaps the entire app, by applying it to <code>Application_Startup()</code>).</p>