title: UWP Image.Source binding with converter
body: <p>In my code I have a class with the following fields: </p>
  
  <pre><code>public class Source
  {
      public string Name { get; set; }
      ...
  
      public string Path { get =&gt; $"/Assets/Images/{Name}.svg"; }
  }
  </code></pre>
  
  <p>Path property is there just for debugging.</p>
  
  <p>I also develop a converter in order to get rid of Path property.</p>
  
  <pre><code>public class SourceToImageConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, string language)
      {
          return $"/Assets/Images/{value}.svg";
      }
  }
  </code></pre>
  
  <p>When I use Path property as Image Source, everything works fine, but when I try to do the same with the SourceToImageConverter, app is not working. 
  I know converter is working as it Should cause when I use it on a TextBlock it shows the right value.
  Xaml code looks like:</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;local:SourceToImageConverter x:Key="SourceToImage"/&gt;
      &lt;DataTemplate x:Key="SourceListViewTemplate" x:DataType="models:Source"&gt;
          &lt;StackPanel Orientation="Horizontal"&gt;
              &lt;Image Source="{x:Bind Path}"/&gt;
              &lt;Image Source="{x:Bind Name, Converter={StaticResource SourceToImage}}"/&gt;
              &lt;TextBlock Text="{x:Bind Name, Converter={StaticResource SourceToImage}}"/&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
  &lt;/Page.Resources&gt;
  
  ...
  
  &lt;GridView
      x:Name="Source"
      ItemsSource="{x:Bind ViewModel.Sources}"
      ItemTemplate="{StaticResource SourceListViewTemplate}"
      IsItemClickEnabled="True"
      SelectionMode="Single"/&gt;
  </code></pre>