I'm developing a mobile product utilizing Esri.ArcGISRuntime.Xamarin.form nuget package and I'm having trouble adding a MapView to a Xamarin.Forms.AbsoluteView container. When I look at the documentation I see the mapview inherits from Xamarin.forms.view however when I go to add this child I'm receiving a message that the view is not what it needs to be. In VS2015 when I follow out the definitions of a mapview it takes me to Android.Views.View.
***************CODE SNIPPET***************
using Esri.ArcGISRuntime;
using Esri.ArcGISRuntime.Geometry;
using Esri.ArcGISRuntime.Mapping;
using Esri.ArcGISRuntime.Symbology;
using Esri.ArcGISRuntime.UI;
using Esri.ArcGISRuntime.UI.Controls;
using Xamarin.Forms;
public class MapControlView : ContentPage
{
// Create and hold reference to the used MapView
private MapView _myMapView = new MapView();
private void CreateLayout()
{
Xamarin.Forms.AbsoluteLayout simpleLayout = new Xamarin.Forms.AbsoluteLayout
{
VerticalOptions = LayoutOptions.FillAndExpand
};
simpleLayout.Children.Add(_myMapView);
// Show the layout in the app
this.Content = new StackLayout
{
Children = {simpleLayout}
};
}
}