void RemovePin(Pin pin) { var child = _pushPinLayer.FirstOrDefault(p => ((Pushpin)p.Content).Tag == (object)pin); if (child != null) { _pushPinLayer.Remove(child); } }