Add DoubleTapped handler

This commit is contained in:
ClemensFischer 2025-01-25 16:48:53 +01:00
parent e0e2061014
commit b2ff2d9e04
2 changed files with 9 additions and 0 deletions

View file

@ -37,6 +37,14 @@ namespace SampleApplication
Debug.WriteLine("SelectedItems: " + string.Join(", ", ((MapItemsControl)sender).SelectedItems.OfType<PointItem>().Select(item => item.Name)));
}
private void MapDoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
{
if (e.OriginalSource is Map map)
{
map.TargetCenter = map.ViewToLocation(e.GetPosition(map));
}
}
private void ResetHeadingButtonClick(object sender, RoutedEventArgs e)
{
map.TargetHeading = 0d;