mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-09 02:00:48 +01:00
Removed MapItem TouchDown handler
This commit is contained in:
parent
6e20f6be49
commit
8c1c420cec
|
|
@ -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"/>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue