Skip to content

MapTapMapViewEventArgs

Namespace: ThinkGeo.UI.Wpf

Provides event data for tap gestures, including both screen and world coordinates.

public class MapTapMapViewEventArgs : System.EventArgs

Inheritance objectEventArgsMapTapMapViewEventArgs

Remarks:

The event arguments capture the tap location in both pixel and world coordinates so handlers can respond using whichever coordinate system is most convenient. A tap is treated as a quick mouse or touch interaction without button state information.

Properties

ScreenX

Gets or sets the tap location's X coordinate in screen pixels.

public float ScreenX { get; set; }

Property Value

float

ScreenY

Gets or sets the tap location's Y coordinate in screen pixels.

public float ScreenY { get; set; }

Property Value

float

WorldX

Gets or sets the tap location's X coordinate in world units.

public double WorldX { get; set; }

Property Value

double

WorldY

Gets or sets the tap location's Y coordinate in world units.

public double WorldY { get; set; }

Property Value

double

Constructors

MapTapMapViewEventArgs()

Initializes a new instance of the MapTapMapViewEventArgs class with undefined coordinates.

public MapTapMapViewEventArgs()

MapTapMapViewEventArgs(float, float, double, double)

Initializes a new instance of the MapTapMapViewEventArgs class using explicit screen and world coordinates.

public MapTapMapViewEventArgs(float screenX, float screenY, double worldX, double worldY)

Parameters

screenX float
The tap location's X coordinate in screen pixels.

screenY float
The tap location's Y coordinate in screen pixels.

worldX double
The tap location's X coordinate in world units.

worldY double
The tap location's Y coordinate in world units.