Hi.
I am using the excellent Xam.Plugins.Forms.Svg plugin for SVG support under Android and am baffled by something that I hope someone can explain to me:
It appears that for the same Image instance I am getting multiple ImageRenderer instances. I declare the SVG image as a resource:
<ContentPage.Resources..
<ResourceDictionary...
<abstractions:SvgImage BindingContext="{x:Reference mainPage}" x:Key="ArrowStraight" ...
Then I use it like this in a datatemplate which is bound to 2 items (creates 2 ContentViews):
<DataTemplate...
<ContentView WidthRequest="30" Padding="0,0,0,0" Content="{StaticResource ArrowStraight}"
This causes a single Image instance to be created but 2 ImageRenderer instances. I thought there was a 1:1 correspondence between PCL control and renderer. I am checking this by breakpointing on the control's and renderer's constructors. SVGImage simply inherits from Image and ImageRenderer in it's implementation.
Why would this be?