I seems transformations are not working in XAML.
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:local="clr-namespace:myapp"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="myapp.somePage"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms">
<ContentPage.Content>
<ffimageloading:CachedImage Source="location.png">
<ffimageloading:CachedImage.Transformations>
<fftransformations:GrayscaleTransformation />
</ffimageloading:CachedImage.Transformations>
</ffimageloading:CachedImage>
</ContentPage.Content>
</ContentPage>
Once you add transformations even hitting "control+I" to auto formate code, VisualStudio says
'fftransformations' is an undeclared prefix
this will not be solved by adding any code to AppDelegate.cs or MainActivity
because VS doesn't even recognize fftransformations on the first place
Well
I found that I should have declared the fftransformations namespace
That is not clear in the guide.
for people who come here from search
declare the namespace same as declaring it for the plugin
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
xmlns:fftransformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations"
Most helpful comment
Well
I found that I should have declared the fftransformations namespace
That is not clear in the guide.
for people who come here from search
declare the namespace same as declaring it for the plugin