title: The URI prefix is not recognized Error While Setting WPF UserControl Icon
body: <p>I am creating a WPF window and loading a user control inside like below:</p>
  
  <pre><code>        Uri uri = new Uri("Views/ApplicationInfo.xaml", UriKind.RelativeOrAbsolute);
  
          UserControl versionInfoUserControl = (UserControl)Application.LoadComponent(uri);
  
          #region Initizalizing the Window, Winodw Proporties and Icon
          Window versionWindow = new Window();
  
  
          versionWindow.Height = 250;
          versionWindow.Width = 400;
          versionWindow.ResizeMode = ResizeMode.NoResize;
  </code></pre>
  
  <p>Now When I am trying to add an application icon like below:</p>
  
  <pre><code> versionWindow.Icon = new BitmapImage(new Uri(@"pack://application:,,component/Images/Ico.png"));
  </code></pre>
  
  <p>I am getting  URI prefix is not recognized error.</p>
  
  <p>*Do I need to change <strong>application</strong> with Application name like:</p>
  
  <pre><code> versionWindow.Icon = new BitmapImage(new Uri(@"pack://MyApp.MVVM.WPF:,,component/Images/Ico.png"));
  </code></pre>
  
  <p>Even then I am getting the same error</p>