title: Cannot implicitly convert type 'string' to 'Windows.UI.Xaml.Media.Imaging.BitmapImage
body: <p>I am trying to show an image stored in local directory inside XAML design.</p>
  
  <p>I have the path to local image.</p>
  
  <p><strong>ImagePage.xaml</strong></p>
  
  <pre><code>&lt;ScrollViewer&gt;
      &lt;ListView x:Name="ViewImage" SelectionMode="None" IsActiveView="True"&gt;
          &lt;ListView.ItemsPanel&gt;
               &lt;ItemsPanelTemplate&gt;
                   &lt;WrapGrid Orientation="Horizontal" MaximumRowsOrColumns="1" /&gt;
               &lt;/ItemsPanelTemplate&gt;
          &lt;/ListView.ItemsPanel&gt;
          &lt;ListView.ItemTemplate&gt;
               &lt;DataTemplate&gt;
                   &lt;Grid x:Name="imgGrid"&gt;
                        &lt;Grid.RowDefinitions&gt;
                            &lt;RowDefinition Height="Auto" /&gt;
                            &lt;RowDefinition Height="Auto" /&gt;
                        &lt;/Grid.RowDefinitions&gt;
                        &lt;StackPanel&gt;
                            &lt;Grid Height="50" Width="50"&gt;
                                &lt;Grid Margin="2" Background="red"&gt;
                                    &lt;Image Source="{Binding imgArt}" Stretch="UniformToFill"
                                           Height="40" Width="40"/&gt;
                                &lt;/Grid&gt;
                            &lt;/Grid&gt;
                        &lt;/StackPanel&gt;
                   &lt;/Grid&gt;
               &lt;/DataTemplate&gt;
           &lt;/ListView.ItemTemplate&gt;
       &lt;/ListView&gt;
  &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p><strong>ImagePage.xaml.cs</strong></p>
  
  <pre><code>string strImgPath = "ms-appx:///Images/Music/localImg.png";
  public string imgPath
  {
       get { return strImgPath; }
  }
  imageClaz obj = new imageClaz();
  obj.imgArt = imgPath;
  </code></pre>
  
  <p><strong>imageClaz()</strong></p>
  
  <pre><code>public class imageClaz
  {
       public string imgArt { get; set; }
  }
  </code></pre>