Share via


ViewExtensions.ToHandler(IView, IMauiContext) Method

Definition

Gets the platform-specific view handler for the specified view.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::IViewHandler ^ ToHandler(Microsoft::Maui::IView ^ view, Microsoft::Maui::IMauiContext ^ context);
public static Microsoft.Maui.IViewHandler ToHandler(this Microsoft.Maui.IView view, Microsoft.Maui.IMauiContext context);
static member ToHandler : Microsoft.Maui.IView * Microsoft.Maui.IMauiContext -> Microsoft.Maui.IViewHandler
<Extension()>
Public Function ToHandler (view As IView, context As IMauiContext) As IViewHandler

Parameters

view
IView

The view to get the handler for.

context
IMauiContext

The Maui context used to create the handler.

Returns

The platform-specific view handler.

Applies to