Custom pin again

Mar 23, 2011 at 4:04 PM
Edited Mar 23, 2011 at 4:39 PM


I have read this topic and tried to insert a custom pin as explained. My new point "blinks" when the map first loaded and disappears, and this is all I see. I try to insert a Polygon instead custom control and it works fine.  Can anybody explain me what to do?

This is my code:

Map.BaseLayer.Source = new DMTileSource();
var geoLayer = new GeometryLayer(Map) { UpdateMode = GeometryLayer.UpdateModes.ElementUpdate };
var marker = new MarkerLabel { LabelText = "hello world", Point = new Point(10,10)};
var myPoint = new Polygon(Colors.Red, Colors.Blue, 1)
   Points = new ObservableCollection<Point>  {new Point(0, 0), new Point(10, 10), new Point(5, 10)}

where "marker" is my custom control. Its template contains only a Border element and text, and control inherits PointBase

Thank you.