Поделиться через


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

Методы расширения

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

Применяется к