I’m trying to figure out how to click on a feature on a map and “select” it.
I have multiple layers including two PersonalGeoDatabaseFeatureLayers, two ShapeFileFeatureLayers, and the TrackShapeLayer containing user drawn shapes. What’s the best way to loop through all of these to find the feature I clicked on?
private void wpfMap1_Click(object sender, MapClickWpfMapEventArgs e)
{
    Point point = new Point(e.WorldX, e.WorldY);
    InMemoryFeatureLayer selectLayer = (InMemoryFeatureLayer)Map1.FindFeatureLayer("SelectLayer");
    selectLayer.InternalFeatures.Clear();
    foreach (Layer layer in worldOverlay.Layers) //worldOverlay is the main overlay containing my layers
    {
         //code to find selected feature here
    }
}
I checked some examples on here but no luck. Thanks in advance.
