Type fftransformations:CircleTransformation not found
See original GitHub issueHi, only in IOS thrown this error, my image is inside a list view
Error message
Xamarin.Forms.Xaml.XamlParseException: Position 68:11. Type fftransformations:CircleTransformation not found in xmlns clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations
namespace declaration
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" xmlns:fftransformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations"
ListView ` <ListView x:Name="LstView" ItemsSource="{Binding Listado}" IsRefreshing="{Binding IsBusy, Mode=OneWay}" RefreshCommand="{Binding GetListadoCommand}" SelectedItem ="{Binding ObjElegidoList, Mode=TwoWay}" IsPullToRefreshEnabled="true" HasUnevenRows ="True" CachingStrategy="RecycleElement">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal" HorizontalOptions="FillAndExpand">
<ffimageloading:CachedImage
HorizontalOptions="Center"
WidthRequest="80"
HeightRequest="80"
DownsampleToViewSize="true"
TransparencyEnabled = "false"
LoadingPlaceholder = "CargandoFoto.png"
ErrorPlaceholder = "SinFoto.png"
Source = "{Binding Productos_Fotos_Url}">
<ffimageloading:CachedImage.Transformations>
<fftransformations:CircleTransformation />
</ffimageloading:CachedImage.Transformations>
</ffimageloading:CachedImage>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
`
I already remove all packages and install, remove all bin and obj folders, clean project, but the error is there.
in android work well.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
It’s probably Xamarin.Forms linker issue. Just reference you transformation in a platform specific project. Something like this:
Android: MainActivity.cs:
var ignore = new CircleTransformation();
iOS: AppDelegate.cs:
var ignore = new CircleTransformation();
Should this be fixed in 2.3.4? I had to make an instance in appDelegate to make it work in Xamarin Forms