Hello. How can I execute the following code in a Xamarin.Forms Portable project (Template: Blank App)?
var contactPicker = new Windows.ApplicationModel.Contacts.ContactPicker();
contactPicker.DesiredFieldsWithContactFieldType.Add(ContactFieldType.Email);
var contact = await contactPicker.PickContactAsync();
The problem: There seems to be a bug in Windows Phone 8.1 for Silverlight so with that the above code throws an exception. Thus I wanted to add a new Windows Phone 8.1 RT app but this is again not working because there is no Xamarin.Forms supporting 8.1 RT, right? At least I don't know what I should referencing to use something like
Forms.Init();
Content = XamarinPortable.App.GetMainPage().ConvertPageToUIElement(this);
in the Windows Phone 8.1 RT app.
Any chance to get the code above up and running?
Is there any information about a new release of "Xamarin for Visual Studio" perhaps solving this problem? (Because a 8.1 RT template would be best anyway! )
Thanks a lot for any hint!
Cheers,
Tim.