This is a minor issue but I tried WpfMap.Overlays.Contains("SomeName") and it returned false even though I could clearly see the layer in the Overlay collection within the debugger.
Funny thing is, method sometimes returns the correct answer. I ended up implementing an extension but you may want to look into this. I am sure it is not my code here as the string was fixed.
TIA
Klaus