2025-02-27 18:46:32 +01:00
|
|
|
|
namespace MapControl
|
2024-05-27 16:35:02 +02:00
|
|
|
|
{
|
|
|
|
|
|
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)
|
|
|
|
|
|
{
|
2025-03-13 19:34:07 +01:00
|
|
|
|
if (e.KeyModifiers.HasFlag(KeyModifiers.Shift))
|
2025-03-12 19:45:08 +01:00
|
|
|
|
{
|
|
|
|
|
|
e.Handled = true;
|
2025-03-17 10:56:42 +01:00
|
|
|
|
MapItemsControl.SetSelectedItemsRange(this);
|
2025-03-13 19:34:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
base.OnPointerPressed(e);
|
2025-03-12 19:45:08 +01:00
|
|
|
|
}
|
2024-05-27 16:35:02 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|