Hi, I wanted to implement a cancel functionality to our application.
I tried subscribing to the Map Keydown event, however it never triggers when pressing a key.
Map.TrackOverlay.MapKeyDown += Map_KeyDown;
private async void Map_KeyDown(object sender, MapKeyDownInteractiveOverlayEventArgs e)
{
Map.TrackOverlay.TrackShapeLayer.InternalFeatures.Clear();
try
{
await Map.RefreshAsync(Map.TrackOverlay);
}
catch { }
}
I also tried subscribing to
Map.KeyDown += Map_KeyDown;
private async void Map_KeyDown(object sender, KeyEventArgs e)
however, that breakpoint is also never hit. I couldnt find anything in the HowDoI, so could you please assist me?
Map Implementation is
</ContentControl>
Thanks