mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapItem.WPF.cs
This commit is contained in:
parent
3c88a81b0d
commit
fde1919356
|
|
@ -20,8 +20,15 @@ namespace MapControl
|
||||||
|
|
||||||
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
|
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
|
// Prevent default handling in ListBoxItem by not calling base.OnMouseLeftButtonDown.
|
||||||
|
|
||||||
(ItemsControl.ItemsControlFromItemContainer(this) as MapItemsControl)?
|
(ItemsControl.ItemsControlFromItemContainer(this) as MapItemsControl)?
|
||||||
.OnItemClicked(this, Keyboard.Modifiers.HasFlag(ModifierKeys.Control));
|
.OnItemClicked(this, Keyboard.Modifiers.HasFlag(ModifierKeys.Control));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
// Prevent default handling in ListBoxItem by not calling base.OnMouseRightButtonDown.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue