mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-09 18:21:47 +01:00
Avalonia sample application
This commit is contained in:
parent
00e35cfb8a
commit
24c6a70ec7
|
|
@ -16,7 +16,8 @@
|
|||
ManipulationModes="All"
|
||||
DoubleTapped="OnMapDoubleTapped">
|
||||
|
||||
<map:MapItemsControl ItemsSource="{Binding Pushpins}">
|
||||
<map:MapItemsControl ItemsSource="{Binding Pushpins}"
|
||||
DoubleTapped="OnMapItemsControlDoubleTapped">
|
||||
<map:MapItemsControl.Styles>
|
||||
<Style Selector="map|MapItem">
|
||||
<Setter Property="map:MapPanel.Location" Value="{Binding Location}"/>
|
||||
|
|
|
|||
|
|
@ -72,6 +72,11 @@ namespace SampleApplication
|
|||
|
||||
partial void AddTestLayers();
|
||||
|
||||
private void OnMapItemsControlDoubleTapped(object sender, TappedEventArgs e)
|
||||
{
|
||||
e.Handled = true; // prevent OnMapDoubleTapped
|
||||
}
|
||||
|
||||
private void OnMapDoubleTapped(object sender, TappedEventArgs e)
|
||||
{
|
||||
map.TargetCenter = map.ViewToLocation(e.GetPosition(map));
|
||||
|
|
|
|||
Loading…
Reference in a new issue