Removed MapItem TouchDown handler

This commit is contained in:
ClemensFischer 2025-03-19 23:28:32 +01:00
parent 6e20f6be49
commit 8c1c420cec
2 changed files with 0 additions and 9 deletions

View file

@ -14,7 +14,6 @@
</DataTemplate>
<Style x:Key="PointItemStyle" TargetType="map:MapItem">
<EventSetter Event="TouchDown" Handler="MapItemTouchDown"/>
<Setter Property="AutoCollapse" Value="True"/>
<Setter Property="Location" Value="{Binding Location}"/>
<Setter Property="Template">
@ -86,7 +85,6 @@
</Style>
<Style x:Key="PushpinItemStyle" TargetType="map:MapItem">
<EventSetter Event="TouchDown" Handler="MapItemTouchDown"/>
<Setter Property="AutoCollapse" Value="True"/>
<Setter Property="Location" Value="{Binding Location}"/>
<Setter Property="HorizontalAlignment" Value="Center"/>

View file

@ -103,13 +103,6 @@ namespace SampleApplication
e.TranslationBehavior.DesiredDeceleration = 0.001;
}
private void MapItemTouchDown(object sender, TouchEventArgs e)
{
var mapItem = (MapItem)sender;
mapItem.IsSelected = !mapItem.IsSelected;
e.Handled = true;
}
private static string GetLatLonText(Location location)
{
var latitude = (int)Math.Round(location.Latitude * 60000d);