Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ContactPicker currently not possible with Xamarin Forms? (Windows Phone 8.1RT/ Visual Studio 2013)

$
0
0

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.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>