Share via


IViewHandler Interface

Definition

Defines members that view handlers should implement to provide mapping virtual views to platform views.

public interface class IViewHandler : Microsoft::Maui::IElementHandler
public interface IViewHandler : Microsoft.Maui.IElementHandler
type IViewHandler = interface
    interface IElementHandler
Public Interface IViewHandler
Implements IElementHandler
Derived
Implements

Properties

ContainerView

Gets the container view for this view.

HasContainer

Gets or sets a value that indicates whether the PlatformView is contained within a view.

MauiContext

Gets the .NET MAUI context associated with the element.

(Inherited from IElementHandler)
PlatformView

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

(Inherited from IElementHandler)
VirtualView

Gets the virtual view (.NET MAUI layer) that is managed by this handler.

Methods

DisconnectHandler()

Disconnects the element handler from the element for clean up.

(Inherited from IElementHandler)
GetDesiredSize(Double, Double)

Computes the actual size of a view based on the desired size and constraints.

Invoke(String, Object)

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

(Inherited from IElementHandler)
PlatformArrange(Rect)

Positions child elements and determines a size for a view.

SetMauiContext(IMauiContext)

Sets the .NET MAUI context for the element handler.

(Inherited from IElementHandler)
SetVirtualView(IElement)

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

(Inherited from IElementHandler)
UpdateValue(String)

Updates the value of the specified property on the handler.

(Inherited from IElementHandler)

Extension Methods

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

Applies to