Share via


ViewHandler<TVirtualView,TPlatformView> 类

定义

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

类型参数

TVirtualView
TPlatformView
继承
ViewHandler<TVirtualView,TPlatformView>
派生
实现

构造函数

ViewHandler<TVirtualView,TPlatformView>(IPropertyMapper, CommandMapper)

属性

ContainerView

获取充当 的容器的 PlatformView视图。

(继承自 ViewHandler)
HasContainer

获取或设置一个值,该值指示 是否 PlatformView 包含在视图中。

(继承自 ViewHandler)
MauiContext (继承自 ElementHandler)
NeedsContainer

获取一个值,该值指示 是否需要 VirtualView 容器视图。

(继承自 ViewHandler)
PlatformView
PlatformViewFactory
Services (继承自 ElementHandler)
VirtualView

方法

ConnectHandler(TPlatformView)
CreatePlatformView()
DisconnectHandler(TPlatformView)
GetDesiredSize(Double, Double)
Invoke(String, Object) (继承自 ElementHandler)
PlatformArrange(Rect)
RemoveContainer()
SetMauiContext(IMauiContext) (继承自 ElementHandler)
SetupContainer()
SetVirtualView(IElement)
SetVirtualView(IView)
UpdateValue(String) (继承自 ElementHandler)

显式接口实现

IElementHandler.DisconnectHandler() (继承自 ElementHandler)
IElementHandler.PlatformView
IElementHandler.VirtualView
IViewHandler.ContainerView (继承自 ViewHandler)
IViewHandler.VirtualView

适用于