FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

TintTransformation Color bindable?

Open bPoller2810 opened this issue 4 years ago • 1 comments

The first requests about getting the TintTransformation bindable in Xamarin forms reach back to early 2018. But i could not find any informations about if and when this is expected to happen..

so are there any plans to get FFImageLoading to let me tint an image via a xaml binding or not?

bPoller2810 avatar Dec 05 '20 20:12 bPoller2810

Found a solution that sometimes work: Import xamarin community tool kit: xmlns:xct="http://xamarin.com/schemas/2020/toolkit" and then add the tintcolor to your svg like so

<ffimageloadingsvg:SvgCachedImage 
                        x:Name="NeedleSVG"
                        WidthRequest="200" 
                        HeightRequest="200" 
                        CacheType="None"
                        Source="resource://XamarinAttributeProgrammer.Resources.Images.Needle.svg"
                        xct:IconTintColorEffect.TintColor="{Binding NeedleColorInHex}"/> <!-- KEY PART RIGHT HERE-->

For my project, I have to update a property in order for it to render in real time, but idk why that certain (bool) value would have any affects to this....

tamnguyen98 avatar Oct 04 '21 21:10 tamnguyen98