Using binding inside Xamarin XAML Extension
<p>I'm trying to bind EmbeddedImages to a ListView so I can show a different icon depending on the item of the list. Using <a href="https://developer.xamarin.com/guides/xamarin-forms/working-with/images/#Embedded_Images" rel="nofollow noreferrer">Working with Images</a> tutorial I've managed to make a extension to show the embedded images, but only if i hard code the location to the icon.</p>

<p>So this works:</p>

<pre><code>&lt;Image Source="{local:ImageResource (namespace).icon.png}"/&gt;
</code></pre>

<p>but I can't bind to the icon I want. I've tried all these and none worked:</p>

<pre><code>&lt;Image Source="{local:ImageResource {Binding _iconLocation}}" /&gt;

&lt;Image Source="{Binding Source=local:ImageResource, Path=_iconLocation}"/&gt;
</code></pre>