Aracılığıyla paylaş


IElementHandler Interface

Definition

Defines the core behavior necessary to create a custom element handler. Conceptual documentation on handlers

public interface class IElementHandler
public interface IElementHandler
type IElementHandler = interface
Public Interface IElementHandler
Derived

Properties

MauiContext

Gets the .NET MAUI context associated with the element.

PlatformView

Gets the platform-specific view object associated with the handler.

VirtualView

Gets the cross-platform virtual view associated with the handler.

Methods

DisconnectHandler()

Disconnects the element handler from the element for clean up.

Invoke(String, Object)

Invokes the specified command on the element with the given arguments.

SetMauiContext(IMauiContext)

Sets the .NET MAUI context for the element handler.

SetVirtualView(IElement)

Sets the cross-platform virtual view associated with the handler.

UpdateValue(String)

Updates the value of the specified property on the handler.

Extension Methods

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

Applies to