Skip to content

EventView

Namespace: ThinkGeo.UI.Maui

Provides gesture handling helpers that translate touch input into map transformations.

public class EventView : Microsoft.Maui.Controls.AbsoluteLayout, System.ComponentModel.INotifyPropertyChanged, Microsoft.Maui.Controls.Internals.IDynamicResourceHandler, Microsoft.Maui.Controls.IElementDefinition, Microsoft.Maui.Controls.Internals.INameScope, Microsoft.Maui.Controls.IElementController, Microsoft.Maui.IVisualTreeElement, Microsoft.Maui.IElement, Microsoft.Maui.Controls.IEffectControlProvider, Microsoft.Maui.IToolTipElement, Microsoft.Maui.IContextFlyoutElement, Microsoft.Maui.Controls.IControlsElement, Microsoft.Maui.IHandlerDisconnectPolicies, Microsoft.Maui.Controls.StyleSheets.IStyleSelectable, Microsoft.Maui.Controls.Internals.INavigationProxy, Microsoft.Maui.Controls.IAnimatable, Microsoft.Maui.Controls.IVisualElementController, Microsoft.Maui.Controls.IResourcesProvider, Microsoft.Maui.Controls.IStyleElement, Microsoft.Maui.Controls.IFlowDirectionController, Microsoft.Maui.Controls.IPropertyPropagationController, Microsoft.Maui.Controls.IVisualController, Microsoft.Maui.Controls.IWindowController, Microsoft.Maui.IView, Microsoft.Maui.ITransform, Microsoft.Maui.Controls.IControlsVisualElement, Microsoft.Maui.IConstrainedView, Microsoft.Maui.Controls.StyleSheets.IStylable, Microsoft.Maui.Controls.IViewController, Microsoft.Maui.Controls.Internals.IGestureController, Microsoft.Maui.Controls.IGestureRecognizers, Microsoft.Maui.IPropertyMapperView, Microsoft.Maui.HotReload.IHotReloadableView, Microsoft.Maui.IReplaceableView, Microsoft.Maui.Controls.IControlsView, Microsoft.Maui.ILayout, Microsoft.Maui.IContainer, System.Collections.Generic.IList`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable, Microsoft.Maui.ISafeAreaView, Microsoft.Maui.IPadding, Microsoft.Maui.ICrossPlatformLayout, Microsoft.Maui.Controls.IBindableLayout, Microsoft.Maui.Controls.IPaddingElement, Microsoft.Maui.Controls.IInputTransparentContainerElement, Microsoft.Maui.ISafeAreaView2, Microsoft.Maui.ISafeAreaElement, Microsoft.Maui.IAbsoluteLayout

Inheritance object → BindableObject → Element → StyleableElement → NavigableElement → VisualElement → View → Layout → AbsoluteLayout → EventView
Implements INotifyPropertyChanged, IDynamicResourceHandler, IElementDefinition, INameScope, IElementController, IVisualTreeElement, IElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IControlsElement, IHandlerDisconnectPolicies, IStyleSelectable, INavigationProxy, IAnimatable, IVisualElementController, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, IWindowController, IView, ITransform, IControlsVisualElement, IConstrainedView, IStylable, IViewController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IControlsView, ILayout, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IBindableLayout, IPaddingElement, IInputTransparentContainerElement, ISafeAreaView2, ISafeAreaElement, IAbsoluteLayout

Fields

transientNamescope

public INameScope transientNamescope;

Properties

DoubleTapMode

Gets or sets the double tap mode.

public MapDoubleTapMode DoubleTapMode { get; set; }

Property Value

MapDoubleTapMode
The double tap mode.

Children

public IList<IView> Children { get; }

Property Value

IList<IView>

Count

public int Count { get; }

Property Value

int

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

Item

public IView Item { get; set; }

Property Value

IView

IsClippedToBounds

public bool IsClippedToBounds { get; set; }

Property Value

bool

Padding

public Thickness Padding { get; set; }

Property Value

Thickness

SafeAreaEdges

public SafeAreaEdges SafeAreaEdges { get; set; }

Property Value

SafeAreaEdges

IgnoreSafeArea

public bool IgnoreSafeArea { get; set; }

Property Value

bool

CascadeInputTransparent

public bool CascadeInputTransparent { get; set; }

Property Value

bool

GestureRecognizers

public IList<IGestureRecognizer> GestureRecognizers { get; }

Property Value

IList<IGestureRecognizer>

HorizontalOptions

public LayoutOptions HorizontalOptions { get; set; }

Property Value

LayoutOptions

Margin

public Thickness Margin { get; set; }

Property Value

Thickness

VerticalOptions

public LayoutOptions VerticalOptions { get; set; }

Property Value

LayoutOptions

Visual

public IVisual Visual { get; set; }

Property Value

IVisual

FlowDirection

public FlowDirection FlowDirection { get; set; }

Property Value

FlowDirection

Window

public Window Window { get; }

Property Value

Window

AnchorX

public double AnchorX { get; set; }

Property Value

double

AnchorY

public double AnchorY { get; set; }

Property Value

double

BackgroundColor

public Color BackgroundColor { get; set; }

Property Value

Color

Background

public Brush Background { get; set; }

Property Value

Brush

Behaviors

public IList<Behavior> Behaviors { get; }

Property Value

IList<Behavior>

Bounds

public Rect Bounds { get; }

Property Value

Rect

Height

public double Height { get; }

Property Value

double

HeightRequest

public double HeightRequest { get; set; }

Property Value

double

InputTransparent

public bool InputTransparent { get; set; }

Property Value

bool

IsEnabled

public bool IsEnabled { get; set; }

Property Value

bool

IsFocused

public bool IsFocused { get; }

Property Value

bool

IsVisible

public bool IsVisible { get; set; }

Property Value

bool

MinimumHeightRequest

public double MinimumHeightRequest { get; set; }

Property Value

double

MinimumWidthRequest

public double MinimumWidthRequest { get; set; }

Property Value

double

MaximumHeightRequest

public double MaximumHeightRequest { get; set; }

Property Value

double

MaximumWidthRequest

public double MaximumWidthRequest { get; set; }

Property Value

double

Opacity

public double Opacity { get; set; }

Property Value

double

Rotation

public double Rotation { get; set; }

Property Value

double

RotationX

public double RotationX { get; set; }

Property Value

double

RotationY

public double RotationY { get; set; }

Property Value

double

Scale

public double Scale { get; set; }

Property Value

double

ScaleX

public double ScaleX { get; set; }

Property Value

double

ScaleY

public double ScaleY { get; set; }

Property Value

double

TranslationX

public double TranslationX { get; set; }

Property Value

double

TranslationY

public double TranslationY { get; set; }

Property Value

double

Triggers

public IList<TriggerBase> Triggers { get; }

Property Value

IList<TriggerBase>

Width

public double Width { get; }

Property Value

double

WidthRequest

public double WidthRequest { get; set; }

Property Value

double

X

public double X { get; }

Property Value

double

Y

public double Y { get; }

Property Value

double

Clip

public Geometry Clip { get; set; }

Property Value

Geometry

Batched

public bool Batched { get; }

Property Value

bool

DisableLayout

public bool DisableLayout { get; set; }

Property Value

bool

IsInPlatformLayout

public bool IsInPlatformLayout { get; set; }

Property Value

bool

IsPlatformStateConsistent

public bool IsPlatformStateConsistent { get; set; }

Property Value

bool

IsPlatformEnabled

public bool IsPlatformEnabled { get; set; }

Property Value

bool

Resources

public ResourceDictionary Resources { get; set; }

Property Value

ResourceDictionary

Frame

public Rect Frame { get; set; }

Property Value

Rect

Handler

public IViewHandler Handler { get; set; }

Property Value

IViewHandler

Shadow

public Shadow Shadow { get; set; }

Property Value

Shadow

ZIndex

public int ZIndex { get; set; }

Property Value

int

DesiredSize

public Size DesiredSize { get; protected set; }

Property Value

Size

IsLoaded

public bool IsLoaded { get; }

Property Value

bool

public INavigation Navigation { get; internal set; }

Property Value

INavigation

public NavigationProxy NavigationProxy { get; }

Property Value

NavigationProxy

Style

public Style Style { get; set; }

Property Value

Style

StyleClass

public IList<string> StyleClass { get; set; }

Property Value

IList<string>

class

public IList<string> class { get; set; }

Property Value

IList<string>

AutomationId

public string AutomationId { get; set; }

Property Value

string

ClassId

public string ClassId { get; set; }

Property Value

string

Effects

public IList<Effect> Effects { get; }

Property Value

IList<Effect>

Id

public Guid Id { get; }

Property Value

Guid

StyleId

public string StyleId { get; set; }

Property Value

string

LogicalChildren

public ReadOnlyCollection<Element> LogicalChildren { get; }

Property Value

ReadOnlyCollection<Element>

RealParent

public Element RealParent { get; }

Property Value

Element

Parent

public Element Parent { get; set; }

Property Value

Element

EffectControlProvider

public IEffectControlProvider EffectControlProvider { get; set; }

Property Value

IEffectControlProvider

Handler

public IElementHandler Handler { get; set; }

Property Value

IElementHandler

Dispatcher

public IDispatcher Dispatcher { get; }

Property Value

IDispatcher

BindingContext

public object BindingContext { get; set; }

Property Value

object

Constructors

EventView()

Initializes a new instance of the EventView class.

public EventView()

Methods

TouchUp(TouchUpMapViewEventArgs, IMapView)

Handles a touch-up gesture and produces the resulting map transformation arguments.

public TransformArguments TouchUp(TouchUpMapViewEventArgs e, IMapView mapView)

Parameters

e TouchUpMapViewEventArgs
The touch-up event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

TouchRotate(TouchRotateMapViewEventArgs, IMapView)

Handles a rotation gesture and produces the resulting map transformation arguments.

public TransformArguments TouchRotate(TouchRotateMapViewEventArgs e, IMapView mapView)

Parameters

e TouchRotateMapViewEventArgs
The rotation event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

TouchDown(TouchDownMapViewEventArgs, IMapView)

Handles a touch-down gesture and produces the resulting map transformation arguments.

public TransformArguments TouchDown(TouchDownMapViewEventArgs e, IMapView mapView)

Parameters

e TouchDownMapViewEventArgs
The touch-down event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

TouchMove(TouchMoveMapViewEventArgs, IMapView)

Handles a touch-move gesture and produces the resulting map transformation arguments.

public TransformArguments TouchMove(TouchMoveMapViewEventArgs e, IMapView mapView)

Parameters

e TouchMoveMapViewEventArgs
The touch-move event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

TouchPointerDown(Pointer1DownMapViewEventArgs, IMapView)

Handles a pointer-down gesture and produces the resulting map transformation arguments.

public TransformArguments TouchPointerDown(Pointer1DownMapViewEventArgs e, IMapView mapView)

Parameters

e Pointer1DownMapViewEventArgs
The pointer-down event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

TouchPointerUp(Pointer1UpMapViewEventArgs, IMapView)

Handles a pointer-up gesture and produces the resulting map transformation arguments.

public TransformArguments TouchPointerUp(Pointer1UpMapViewEventArgs e, IMapView mapView)

Parameters

e Pointer1UpMapViewEventArgs
The pointer-up event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

DoubleTap(DoubleTapMapViewEventArgs, IMapView)

Handles a double-tap gesture and produces the resulting map transformation arguments.

public TransformArguments DoubleTap(DoubleTapMapViewEventArgs e, IMapView mapView)

Parameters

e DoubleTapMapViewEventArgs
The double-tap event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map.

FEc=(ScrollEventArgs, IMapView)

internal TransformArguments FEc=(ScrollEventArgs e, IMapView mapView)

Parameters

e ScrollEventArgs

mapView IMapView

Returns

TransformArguments

TouchDownCore(TouchDownMapViewEventArgs, IMapView)

Processes the core logic for touch-down gestures.

protected TransformArguments TouchDownCore(TouchDownMapViewEventArgs e, IMapView mapView)

Parameters

e TouchDownMapViewEventArgs
The touch-down event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to defer changes.

TouchUpCore(TouchUpMapViewEventArgs, IMapView)

Processes the core logic for touch-up gestures.

protected TransformArguments TouchUpCore(TouchUpMapViewEventArgs e, IMapView mapView)

Parameters

e TouchUpMapViewEventArgs
The touch-up event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null when no change is required.

TouchPointerUpCore(Pointer1UpMapViewEventArgs, IMapView)

Processes the core logic for pointer-up gestures.

protected TransformArguments TouchPointerUpCore(Pointer1UpMapViewEventArgs e, IMapView mapView)

Parameters

e Pointer1UpMapViewEventArgs
The pointer-up event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null when no change is required.

TouchMoveCore(TouchMoveMapViewEventArgs, IMapView)

Processes the core logic for touch-move gestures.

protected TransformArguments TouchMoveCore(TouchMoveMapViewEventArgs e, IMapView mapView)

Parameters

e TouchMoveMapViewEventArgs
The touch-move event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null when no change is required.

GetNewCenterPoint(PointShape, double, double, double, double)

Calculates a new map center based on the specified screen offsets and rotation.

public PointShape GetNewCenterPoint(PointShape oldCenter, double offsetX, double offsetY, double rotation, double resolution)

Parameters

oldCenter PointShape
The original center point.

offsetX double
The offset along the X axis in screen coordinates.

offsetY double
The offset along the Y axis in screen coordinates.

rotation double
The map rotation angle in degrees.

resolution double
The current map resolution.

Returns

PointShape
The new center point after applying the transformation.

TouchRotateCore(TouchRotateMapViewEventArgs, IMapView)

Processes the core logic for rotation gestures.

protected TransformArguments TouchRotateCore(TouchRotateMapViewEventArgs e, IMapView mapView)

Parameters

e TouchRotateMapViewEventArgs
The rotation event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null when no change is required.

TouchPointerDownCore(Pointer1DownMapViewEventArgs, IMapView)

Processes the core logic for pointer-down gestures.

protected TransformArguments TouchPointerDownCore(Pointer1DownMapViewEventArgs e, IMapView mapView)

Parameters

e Pointer1DownMapViewEventArgs
The pointer-down event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null to leave it unchanged.

DoubleTapCore(DoubleTapMapViewEventArgs, IMapView)

Processes the core logic for double-tap gestures.

protected TransformArguments DoubleTapCore(DoubleTapMapViewEventArgs e, IMapView mapView)

Parameters

e DoubleTapMapViewEventArgs
The double-tap event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map.

ScrollWheelCore(ScrollEventArgs, IMapView)

Processes the core logic for scroll-wheel gestures.

protected TransformArguments ScrollWheelCore(ScrollEventArgs e, IMapView mapView)

Parameters

e ScrollEventArgs
The scroll event arguments.

mapView IMapView
The map view receiving the input.

Returns

TransformArguments
The transformation instructions to apply to the map, or null when no change is required.

Events

ChildrenReordered

public event EventHandler ChildrenReordered;

Focused

public event EventHandler<FocusEventArgs> Focused;

MeasureInvalidated

public event EventHandler MeasureInvalidated;

SizeChanged

public event EventHandler SizeChanged;

Unfocused

public event EventHandler<FocusEventArgs> Unfocused;

BatchCommitted

public event EventHandler<EventArg<VisualElement>> BatchCommitted;

FocusChangeRequested

public event EventHandler<FocusRequestArgs> FocusChangeRequested;

Loaded

public event EventHandler Loaded;

Unloaded

public event EventHandler Unloaded;

ChildAdded

public event EventHandler<ElementEventArgs> ChildAdded;

ChildRemoved

public event EventHandler<ElementEventArgs> ChildRemoved;

DescendantAdded

public event EventHandler<ElementEventArgs> DescendantAdded;

DescendantRemoved

public event EventHandler<ElementEventArgs> DescendantRemoved;

ParentChanging

public event EventHandler<ParentChangingEventArgs> ParentChanging;

ParentChanged

public event EventHandler ParentChanged;

HandlerChanging

public event EventHandler<HandlerChangingEventArgs> HandlerChanging;

HandlerChanged

public event EventHandler HandlerChanged;

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged;

PropertyChanging

public event PropertyChangingEventHandler PropertyChanging;

BindingContextChanged

public event EventHandler BindingContextChanged;