title: Showing ClickOnce deployment version on WPF application
body: <p>I'm deploying now a WPF c# project and want to put the <strong>clickonce version</strong> (rather than the assembly or product version) on the screen title.
  I used to do it in Win form application in the following way. But it seems that it is not the way in WPF applications. I searched on Google but didn't find anything. Please help.</p>
  <pre><code>    if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
      {
          ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
          lblVer.Text = &quot;V&quot; + ad.CurrentVersion.ToString();
      }
      else
          lblVer.Text = &quot;V&quot; + Application.ProductVersion.ToString();
  </code></pre>