I can't find any demos, I've tried a few things. But it doesn't seem to work with what I've tried.
I'm trying to change the fill color property on an SVG.
You have to reload too
Dictionary<string, string> Map = new Dictionary<string, string>();
Img.ReplaceStringMap = Map;
BTW: Newest version auto reloads when ReplaceStringMap property is changed.
I don't know what i'm doing wrong but I can not get it to work @DanielL
For this svg (got it from project wiki)
How should i use ReplaceStringMap to change color, for example, to red?
i tried Map.Add("fill", "#ff0000") Map.Add("fill", "red") ... and color remains the same or changes to black although i set it to red
Thanks in advance
It's just a simple text replacement, so if you have somewhere a #cccccc string value in your svg, then you just do:
Perfects, it works now. Thanks
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies