public void SetUp() { var schema = new Dictionary <String, Object>(); schema["STDDEV"] = typeof(double?); _parentEventType = SupportEventTypeFactory.CreateMapType(schema); var addProps = new Dictionary <String, Object>(); addProps["Symbol"] = typeof(string); var mergeEventType = SupportEventAdapterService.Service.CreateAnonymousWrapperType( "test", _parentEventType, addProps); // Set up length window view and a test child view _myView = new AddPropertyValueOptionalView( SupportStatementContextFactory.MakeAgentInstanceViewFactoryContext(), new String[] { "Symbol" }, "IBM", mergeEventType); _parentView = new SupportMapView(schema); _parentView.AddView(_myView); _childView = new SupportSchemaNeutralView(); _myView.AddView(_childView); }
protected override void OnElementChanged(ElementChangedEventArgs <View> e) { base.OnElementChanged(e); if (e.OldElement != null) { var nativeMap = Control as MKMapView; if (nativeMap != null) { nativeMap.RemoveAnnotations(nativeMap.Annotations); nativeMap.GetViewForAnnotation = null; nativeMap.CalloutAccessoryControlTapped -= OnCalloutAccessoryControlTapped; //nativeMap.DidSelectAnnotationView -= OnDidSelectAnnotationView; //nativeMap.DidDeselectAnnotationView -= OnDidDeselectAnnotationView; } } if (e.NewElement != null) { supportMapView = (SupportMapView)e.NewElement; var nativeMap = Control as MKMapView; nativeMap.GetViewForAnnotation = GetViewForAnnotation; nativeMap.CalloutAccessoryControlTapped += OnCalloutAccessoryControlTapped; //nativeMap.DidSelectAnnotationView += OnDidSelectAnnotationView; //nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView; } }
protected override void OnElementChanged(ElementChangedEventArgs <Map> e) { base.OnElementChanged(e); if (e.OldElement != null) { NativeMap.InfoWindowClick -= OnInfoWindowClick; } if (e.NewElement != null) { supportMapView = (SupportMapView)e.NewElement; Control.GetMapAsync(this); } }
public void SetUp() { _filterExprViewAdapter = new FilterExprView(new SupportExprNode(null), new SupportExprEvaluator(), null); _childView = new SupportMapView(); _filterExprViewAdapter.AddView(_childView); }