XAM-Consulting / FreshEssentials

FreshEssentials for Xamarin.Forms has ONLY the most common extensions you need for Xamarin.Forms
Apache License 2.0
107 stars 30 forks source link

System.TypeLoadException when using BindablePicker in XAML #21

Closed guncoban closed 7 years ago

guncoban commented 7 years ago

Hello,

I am trying to use BindablePicker to bind with a CarList and car names as DisplayProperty. But when I use the BindablePicker in xaml my app gives a System.TypeLoadException when starting the app: System.TypeLoadException: Could not load type 'FreshEssentials.Droid.BindablePickerRendererDroid' from assembly 'FreshEssentials.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

This is my XAML, I also include fresh essentials. xmlns:fe="clr-namespace:FreshEssentials;assembly=FreshEssentials"

<fe:BindablePicker x:Name ="carPicker" ItemsSource="{Binding curModel.CarsList}" DisplayProperty="CarName" Title="My Cars" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" HorizontalOptions="Center"/>

I have tried to downgrade Xamarin.Forms to 2.2.0.45 but that doesn't work. When i don't use the BindablePicker(but still have the NuGet installed) the app gives no problems.

Thanks in advance