共用方式為


ElementHandler<TVirtualView,TPlatformView> 類別

定義

generic <typename TVirtualView, typename TPlatformView>
 where TVirtualView : class, IElement where TPlatformView : classpublic ref class ElementHandler abstract : Microsoft::Maui::Handlers::ElementHandler
public abstract class ElementHandler<TVirtualView,TPlatformView> : Microsoft.Maui.Handlers.ElementHandler where TVirtualView : class, IElement where TPlatformView : class
type ElementHandler<'VirtualView, 'PlatformView (requires 'VirtualView : null and 'VirtualView :> IElement and 'PlatformView : null)> = class
    inherit ElementHandler
    interface IElementHandler
Public MustInherit Class ElementHandler(Of TVirtualView, TPlatformView)
Inherits ElementHandler

類型參數

TVirtualView
TPlatformView
繼承
ElementHandler<TVirtualView,TPlatformView>
衍生
實作

建構函式

ElementHandler<TVirtualView,TPlatformView>(IPropertyMapper, CommandMapper)

屬性

MauiContext (繼承來源 ElementHandler)
PlatformView
Services (繼承來源 ElementHandler)
VirtualView

方法

ConnectHandler(TPlatformView)
CreatePlatformElement()
DisconnectHandler(TPlatformView)
Invoke(String, Object) (繼承來源 ElementHandler)
SetMauiContext(IMauiContext) (繼承來源 ElementHandler)
SetVirtualView(IElement) (繼承來源 ElementHandler)
UpdateValue(String) (繼承來源 ElementHandler)

明確介面實作

IElementHandler.DisconnectHandler() (繼承來源 ElementHandler)
IElementHandler.PlatformView
IElementHandler.VirtualView

擴充方法

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

適用於