Sample Applications DoubleTapped

This commit is contained in:
ClemensFischer 2024-08-25 18:02:23 +02:00
parent 45b6c012e0
commit 49bd02863a
4 changed files with 13 additions and 25 deletions

View file

@ -36,14 +36,12 @@ namespace SampleApplication
Debug.WriteLine("SelectedItems: " + string.Join(", ", ((MapItemsControl)sender).SelectedItems.OfType<PointItem>().Select(item => item.Name)));
}
private void MapItemsControlDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
e.Handled = true; // prevent MapDoubleTapped
}
private void MapDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
map.TargetCenter = map.ViewToLocation(e.GetPosition(map));
if (e.OriginalSource is Map map)
{
map.TargetCenter = map.ViewToLocation(e.GetPosition(map));
}
}
private void ResetHeadingButtonClick(object sender, RoutedEventArgs e)