I am having trouble with the Overlays collection. I am creating LayerOverlays and I add each with a name using code similar to MapWindow.Overlays.Add(MyOverlay, MyOverlay.Name). At a later point I check for the existence of the overlay using code similar to MapWindow.Overlays.Contains(OverlayName) where OverlayName is the same as Overlay.Name above. Unfortunately, the Contains method returns false even though I can see an Overlay with that name in the collection with the Watch window. Am I doing something wrong here?
Charles