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)

适用于