示例#1
0
		void HandleCalloutMapAnnotationViewOnAnnotationClicked1 (CalloutMapAnnotation obj)
		{
			Util.Log("Clicked on map annotation view");
			if (_Association != null)
				_Association.ClickImage();
		}
示例#2
0
		public AnnotationBtnAssoc(UIButton button, CalloutMapAnnotation calloutAnnotation)
		{
			CalloutAnnot = calloutAnnotation;
			button.TouchDown += HandleButtonTouchUpInside;
		}
示例#3
-1
		public override void DidSelectAnnotationView (MKMapView mapView, MKAnnotationView view)
		{
			try
			{
				if (view.Annotation is MyAnnotation)
				{
					var myAnnotation = (MyAnnotation)view.Annotation;
					
					CalloutMapAnnotation calloutAnnotation = myAnnotation.AssociatedCalloutMapAnnotation;
					if (calloutAnnotation == null)
					{
						calloutAnnotation = new CalloutMapAnnotation(myAnnotation.Coordinate, myAnnotation.Title, "");
					}
					else
					{
						calloutAnnotation.Coordinate = myAnnotation.Coordinate;
					}
					
					myAnnotation.AssociatedCalloutMapAnnotation = calloutAnnotation;
					calloutAnnotation.ParentAnnotation = myAnnotation;
				
					mapView.AddAnnotation(calloutAnnotation);
					selectedAnnotationView = view;
				}
			}
			catch (Exception ex)
			{
				Util.LogException("DidSelectAnnotationView", ex);
			}
		}