mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
19 lines
761 B
C#
19 lines
761 B
C#
namespace MapControl
|
|
{
|
|
public partial class MapItem
|
|
{
|
|
public static readonly StyledProperty<bool> AutoCollapseProperty =
|
|
DependencyPropertyHelper.AddOwner<MapItem, bool>(MapPanel.AutoCollapseProperty);
|
|
|
|
public static readonly StyledProperty<Location> LocationProperty =
|
|
DependencyPropertyHelper.AddOwner<MapItem, Location>(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));
|
|
}
|
|
}
|
|
}
|