Ffimageloading: 'fftransformations' is an undeclared prefix

Created on 8 Feb 2018  路  1Comment  路  Source: luberda-molinet/FFImageLoading

Description

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>

Steps to Reproduce

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

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue:
  • Last known good version:
  • Platform:

Screenshots

Reproduction Link / Code

Xamarin.Forms question

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

xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" 
xmlns:fftransformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations" 

>All comments

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" 
Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeoJHarris picture LeoJHarris  路  22Comments

softsan picture softsan  路  32Comments

rredoh picture rredoh  路  17Comments

ericruelas picture ericruelas  路  15Comments

JTOne123 picture JTOne123  路  22Comments