// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control // Copyright © 2024 Clemens Fischer // Licensed under the Microsoft Public License (Ms-PL) namespace MapControl { public partial class MapItem { public static readonly StyledProperty AutoCollapseProperty = DependencyPropertyHelper.AddOwner(MapPanel.AutoCollapseProperty); public static readonly StyledProperty LocationProperty = DependencyPropertyHelper.AddOwner(MapPanel.LocationProperty, null, (item, oldValue, newValue) => item.UpdateMapTransform(newValue)); protected override void OnPointerPressed(PointerPressedEventArgs e) { (ItemsControl.ItemsControlFromItemContainer(this) as MapItemsControl)? .OnItemClicked(this, e.KeyModifiers.HasFlag(KeyModifiers.Control)); } } }