Horizontal ListView Xamarin.Forms

As of Xamarin Forms 2.3 CarouselView does just that, and more. Read more here. <ContentView HorizontalOptions=”FillAndExpand” VerticalOptions=”FillAndExpand”> <CarouselView ItemsSource=”{Binding MyDataSource}”> <CarouselView.ItemTemplate> <DataTemplate> <Label Text=”{Binding LabelText}” /> </DataTemplate> </CarouselView.ItemTemplate> </CarouselView> </ContentView>

How to terminate a Xamarin application?

If you are using Xamarin.Forms create a Dependency Service. Interface public interface ICloseApplication { void closeApplication(); } Android : Using FinishAffinity() won’t restart your activity. It will simply close the application. public class CloseApplication : ICloseApplication { public void closeApplication() { var activity = (Activity)Forms.Context; activity.FinishAffinity(); } } IOS : As already suggested above. public … Read more

Xamarin Studio – can not login – One of the identified items was in an invalid format

Guys from Xamarin Support already post an answer to this http://forums.xamarin.com/discussion/63675/activation-error/p1 In general you should Update to the “Cycle 6 – Service Release 3” versions or newer. The minimum version of Xamarin Studio that supports MSDN licenses is here: http://download.xamarin.com/studio/Mac/XamarinStudio-5.10.3.51-0.dmg Log out and log back into your Xamarin account following the “Quick manual refresh steps” … Read more

Enable Entity Framework migrations in Mono

All of the Entity Framework Migrations commands are just thin wrappers over an underlying API. To enable migrations, simply create a new class that derives from DbMigrationsConfiguration<TContext> in your project. For Add-Migration use code similar to the following. var config = new MyMigrationsConfiguration(); var scaffolder = new MigrationScaffolder(config); var migration = scaffolder.Scaffold(“Migration1”); File.WriteAllText(migration.MigrationId + “.cs”, … Read more

Xamarin Forms Android Error: Please install package ‘Android Support Library’

The error message tells you pretty explicitly what the error is C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\android_m2repository_r10.zip is not a valid zip file How to fix it Please download https://dl-ssl.google.com/android/repository/android_m2repository_r10.zip and extract it to the C:\Users\dev\AppData\Local\Xamarin\Android.Support.v4\21.0.3\content directory.