Skip to content

MapKeyDownMapViewEventArgs

Namespace: ThinkGeo.UI.Wpf

Provides data for MapViewBase.MapKeyDown, exposing the pressed key and modifier state.

public class MapKeyDownMapViewEventArgs : System.EventArgs

Inheritance object → EventArgs → MapKeyDownMapViewEventArgs

Remarks:

MapView-level notification fired once per physical key-down event, synchronously, before any InteractiveOverlay dispatch. Distinct from InteractiveOverlay.MapKeyDown, which fires only if dispatch reaches that overlay.

Properties

Key

Gets the keyboard key that was pressed.

public Key Key { get; }

Property Value

Key

IsCtrlKeyPressed

Gets a value indicating whether the CTRL modifier was held.

public bool IsCtrlKeyPressed { get; }

Property Value

bool

IsShiftKeyPressed

Gets a value indicating whether the SHIFT modifier was held.

public bool IsShiftKeyPressed { get; }

Property Value

bool

IsAltKeyPressed

Gets a value indicating whether the ALT modifier was held.

public bool IsAltKeyPressed { get; }

Property Value

bool

Constructors

MapKeyDownMapViewEventArgs()

Initializes a new instance of the MapKeyDownMapViewEventArgs class with no key and no modifiers.

public MapKeyDownMapViewEventArgs()

MapKeyDownMapViewEventArgs(Key, bool, bool, bool)

Initializes a new instance of the MapKeyDownMapViewEventArgs class.

public MapKeyDownMapViewEventArgs(Key key, bool isCtrlKeyPressed, bool isShiftKeyPressed, bool isAltKeyPressed)

Parameters

key Key
The keyboard key that was pressed.

isCtrlKeyPressed bool
Whether the CTRL modifier was held.

isShiftKeyPressed bool
Whether the SHIFT modifier was held.

isAltKeyPressed bool
Whether the ALT modifier was held.