ViewExtensions.ToHandler(IView, IMauiContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.