public MapKitElement ( string aCaption, IMKAnnotation[] aMKAnnotationObjects, HandleGetViewForAnnotation aHandleGetViewForAnnotation, EventHandler<MKMapViewAccessoryTappedEventArgs> aHandleMapViewCalloutAccessoryControlTapped, EventHandler<MKAnnotationViewEventArgs> aHandleMapViewDidSelectAnnotationView ) : base(aCaption) { mkAnnotationObjects = aMKAnnotationObjects; mkHandleGetViewForAnnotation = aHandleGetViewForAnnotation; mkHandleMapViewCalloutAccessoryControlTapped = aHandleMapViewCalloutAccessoryControlTapped; mkHandleMapViewDidSelectAnnotationView = aHandleMapViewDidSelectAnnotationView; MapView = new MKMapView(){ BackgroundColor = UIColor.White, AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight }; }
public MapKitElement(string aCaption, IMKAnnotation[] aMKAnnotationObjects, HandleGetViewForAnnotation aHandleGetViewForAnnotation, EventHandler <MKMapViewAccessoryTappedEventArgs> aHandleMapViewCalloutAccessoryControlTapped, EventHandler <MKAnnotationViewEventArgs> aHandleMapViewDidSelectAnnotationView) : base(aCaption) { mkAnnotationObjects = aMKAnnotationObjects; mkHandleGetViewForAnnotation = aHandleGetViewForAnnotation; mkHandleMapViewCalloutAccessoryControlTapped = aHandleMapViewCalloutAccessoryControlTapped; mkHandleMapViewDidSelectAnnotationView = aHandleMapViewDidSelectAnnotationView; MapView = new MKMapView() { BackgroundColor = UIColor.White, AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight }; }