MapItemsControl SelectionMode

This commit is contained in:
ClemensFischer 2024-05-29 16:29:13 +02:00
parent c4c5d2d1df
commit 5a738f7a71
7 changed files with 15 additions and 32 deletions

View file

@ -24,8 +24,8 @@ namespace MapControl
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
(ItemsControl.ItemsControlFromItemContainer(this) as MapItemsControl)?.OnItemClicked(
this, Keyboard.Modifiers.HasFlag(ModifierKeys.Control), Keyboard.Modifiers.HasFlag(ModifierKeys.Shift));
(ItemsControl.ItemsControlFromItemContainer(this) as MapItemsControl)?
.OnItemClicked(this, Keyboard.Modifiers.HasFlag(ModifierKeys.Control));
e.Handled = true;
}