mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
26 lines
864 B
C#
26 lines
864 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)
|
|
{
|
|
if (e.KeyModifiers.HasFlag(KeyModifiers.Shift))
|
|
{
|
|
e.Handled = true;
|
|
MapItemsControl.SetSelectedItemsRange(this);
|
|
}
|
|
else
|
|
{
|
|
base.OnPointerPressed(e);
|
|
}
|
|
}
|
|
}
|
|
}
|