ImageButtonHandler 类

定义

public ref class ImageButtonHandler : Microsoft::Maui::Handlers::ViewHandler<Microsoft::Maui::IImageButton ^, System::Object ^>, Microsoft::Maui::Handlers::IImageButtonHandler
public class ImageButtonHandler : Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.IImageButton,object>, Microsoft.Maui.Handlers.IImageButtonHandler
type ImageButtonHandler = class
    inherit ViewHandler<IImageButton, obj>
    interface IImageButtonHandler
    interface IImageHandler
    interface IViewHandler
    interface IElementHandler
Public Class ImageButtonHandler
Inherits ViewHandler(Of IImageButton, Object)
Implements IImageButtonHandler
继承
实现

构造函数

ImageButtonHandler()
ImageButtonHandler(IPropertyMapper, CommandMapper)
ImageButtonHandler(IPropertyMapper)

字段

CommandMapper
ImageMapper
Mapper

属性

ContainerView

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

(继承自 ViewHandler)
HasContainer

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

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

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

(继承自 ViewHandler)
PlatformView (继承自 ViewHandler<TVirtualView,TPlatformView>)
Services (继承自 ElementHandler)
SourceLoader
VirtualView (继承自 ViewHandler<TVirtualView,TPlatformView>)

方法

ConnectHandler(TPlatformView) (继承自 ViewHandler<TVirtualView,TPlatformView>)
CreatePlatformView()
DisconnectHandler(TPlatformView) (继承自 ViewHandler<TVirtualView,TPlatformView>)
GetDesiredSize(Double, Double) (继承自 ViewHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (继承自 ElementHandler)
MapCornerRadius(IImageButtonHandler, IButtonStroke)
MapPadding(IImageButtonHandler, IImageButton)
MapStrokeColor(IImageButtonHandler, IButtonStroke)
MapStrokeThickness(IImageButtonHandler, IButtonStroke)
PlatformArrange(Rect) (继承自 ViewHandler<TVirtualView,TPlatformView>)
RemoveContainer() (继承自 ViewHandler<TVirtualView,TPlatformView>)
SetMauiContext(IMauiContext) (继承自 ElementHandler)
SetupContainer() (继承自 ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IElement) (继承自 ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IView) (继承自 ViewHandler<TVirtualView,TPlatformView>)
UpdateValue(String) (继承自 ElementHandler)

显式接口实现

IElementHandler.DisconnectHandler() (继承自 ElementHandler)
IElementHandler.PlatformView (继承自 ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (继承自 ViewHandler<TVirtualView,TPlatformView>)
IImageButtonHandler.PlatformView
IImageButtonHandler.VirtualView
IImageHandler.PlatformView
IImageHandler.SourceLoader
IImageHandler.VirtualView
IViewHandler.ContainerView (继承自 ViewHandler)
IViewHandler.VirtualView (继承自 ViewHandler<TVirtualView,TPlatformView>)

扩展方法

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

适用于