Posts

Showing posts from 2016

Xamarin forms Media Picker

In this post I will show you how to configure your app to use the MediaPecker component from Xlabs. While xamarin forms comes with many UI classes out of the box, it doesn't have any class for media picking. which means you have to implement this feature yourself in each platform. This will take a lot of coding and good experience in platform specific code for each platform (iOS, Android & Win Phone). Luckily, there is an open source project called "Xlabs forms" which provides many of the missing controls in xamarin forms. We will use the MediaPicker from Xlabs. The following is a step by step guide using Xamarin studio for mac: Adding the necessary NuGet packages * Create a new solution and call it MeidaPickerApp. For the shared code, choose: Use portable class library. * Add the xlabs-forms nugget package in the PCL & platform specific projects (iOS & Android). Configuring the iOS project * Open the AppDelegate class and modify it as follows