mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-16 03:44:27 +00:00
File scoped namespaces
This commit is contained in:
parent
c14377f976
commit
65aba44af6
152 changed files with 11962 additions and 12115 deletions
|
|
@ -2,38 +2,37 @@
|
|||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace MapControl
|
||||
namespace MapControl;
|
||||
|
||||
public partial class MapItem
|
||||
{
|
||||
public partial class MapItem
|
||||
static MapItem()
|
||||
{
|
||||
static MapItem()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapItem), new FrameworkPropertyMetadata(typeof(MapItem)));
|
||||
}
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapItem), new FrameworkPropertyMetadata(typeof(MapItem)));
|
||||
}
|
||||
|
||||
protected override void OnTouchDown(TouchEventArgs e)
|
||||
protected override void OnTouchDown(TouchEventArgs e)
|
||||
{
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
protected override void OnTouchUp(TouchEventArgs e)
|
||||
{
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
|
||||
{
|
||||
if (Keyboard.Modifiers.HasFlag(ModifierKeys.Shift) &&
|
||||
ItemsControl.ItemsControlFromItemContainer(this) is MapItemsControl mapItemsControl &&
|
||||
mapItemsControl.SelectionMode == SelectionMode.Extended)
|
||||
{
|
||||
mapItemsControl.SelectItemsInRange(this);
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
protected override void OnTouchUp(TouchEventArgs e)
|
||||
else
|
||||
{
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
|
||||
{
|
||||
if (Keyboard.Modifiers.HasFlag(ModifierKeys.Shift) &&
|
||||
ItemsControl.ItemsControlFromItemContainer(this) is MapItemsControl mapItemsControl &&
|
||||
mapItemsControl.SelectionMode == SelectionMode.Extended)
|
||||
{
|
||||
mapItemsControl.SelectItemsInRange(this);
|
||||
e.Handled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.OnMouseLeftButtonDown(e);
|
||||
}
|
||||
base.OnMouseLeftButtonDown(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue