Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.
Peter Foot edited this page Aug 19, 2019 · 1 revision

InTheHand.Forms

InTheHand.Forms is a library with a few handy extensions for Xamarin Forms. In order for these to work you have to initialize the library from each native app project as you would normally with Xamarin Forms itself e.g.

Android

In your MainActivity OnCreate method after Xamarin.Forms.Forms.Init add:-

InTheHand.Forms.Platform.Android.InTheHandForms.Init();

iOS

In AppDelegate.cs after Xamarin.Forms.Forms.Init() add:-

InTheHand.Forms.Platform.iOS.InTheHandForms.Init();

UWP

In App.xaml.cs replace Xamarin.Forms.Forms.Init(e) with:-

var rendererAssemblies = new[] { typeof(InTheHand.Forms.Platform.UWP.MediaElementRenderer).GetTypeInfo().Assembly }; 
Xamarin.Forms.Forms.Init(e, rendererAssemblies);
InTheHand.Forms.Platform.WinRT.InTheHandForms.Init();
Clone this wiki locally