Share via


MapElementHandler Class

Definition

Handler for IMapElement objects that manages the platform-specific implementation.

public ref class MapElementHandler : Microsoft::Maui::Handlers::ElementHandler<Microsoft::Maui::Maps::IMapElement ^, System::Object ^>, Microsoft::Maui::Maps::Handlers::IMapElementHandler
public class MapElementHandler : Microsoft.Maui.Handlers.ElementHandler<Microsoft.Maui.Maps.IMapElement,object>, Microsoft.Maui.Maps.Handlers.IMapElementHandler
type MapElementHandler = class
    inherit ElementHandler<IMapElement, obj>
    interface IMapElementHandler
    interface IElementHandler
Public Class MapElementHandler
Inherits ElementHandler(Of IMapElement, Object)
Implements IMapElementHandler
Inheritance
Implements

Constructors

Name Description
MapElementHandler()

Initializes a new instance of the MapElementHandler class with the default mapper.

MapElementHandler(IPropertyMapper)

Initializes a new instance of the MapElementHandler class with an optional custom mapper.

Fields

Name Description
Mapper

The property mapper that maps cross-platform properties to platform-specific methods.

Properties

Name Description
MauiContext (Inherited from ElementHandler)
PlatformView (Inherited from ElementHandler<TVirtualView,TPlatformView>)
Services (Inherited from ElementHandler)
VirtualView (Inherited from ElementHandler<TVirtualView,TPlatformView>)

Methods

Name Description
ConnectHandler(TPlatformView) (Inherited from ElementHandler<TVirtualView,TPlatformView>)
CreatePlatformElement()
DisconnectHandler(TPlatformView) (Inherited from ElementHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (Inherited from ElementHandler)
MapFill(IMapElementHandler, IMapElement)
MapIsVisible(IMapElementHandler, IMapElement)
MapStroke(IMapElementHandler, IMapElement)
MapStrokeThickness(IMapElementHandler, IMapElement)
MapZIndex(IMapElementHandler, IMapElement)
SetMauiContext(IMauiContext) (Inherited from ElementHandler)
SetVirtualView(IElement) (Inherited from ElementHandler)
UpdateValue(String) (Inherited from ElementHandler)

Explicit Interface Implementations

Name Description
IElementHandler.DisconnectHandler() (Inherited from ElementHandler)
IElementHandler.PlatformView (Inherited from ElementHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Inherited from ElementHandler<TVirtualView,TPlatformView>)
IMapElementHandler.PlatformView
IMapElementHandler.VirtualView

Extension Methods

Name Description
GetRequiredService<T>(IElementHandler, Type)
GetRequiredService<T>(IElementHandler)
GetService<T>(IElementHandler, Type)
GetService<T>(IElementHandler)
GetServiceProvider(IElementHandler)
IsConnected(IElementHandler)

Applies to