ButtonHandler 类

定义

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

构造函数

ButtonHandler()
ButtonHandler(IPropertyMapper)
ButtonHandler(IPropertyMapper, CommandMapper)

字段

CommandMapper
ImageButtonMapper
Mapper
TextButtonMapper

属性

ContainerView

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

(继承自 ViewHandler)
HasContainer

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

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

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

(继承自 ViewHandler)
PlatformView (继承自 ViewHandler<TVirtualView,TPlatformView>)
Services (继承自 ElementHandler)
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)
MapCharacterSpacing(IButtonHandler, ITextStyle)
MapCornerRadius(IButtonHandler, IButtonStroke)
MapFont(IButtonHandler, ITextStyle)
MapImageSource(IButtonHandler, IImage)
MapPadding(IButtonHandler, IButton)
MapStrokeColor(IButtonHandler, IButtonStroke)
MapStrokeThickness(IButtonHandler, IButtonStroke)
MapText(IButtonHandler, IText)
MapTextColor(IButtonHandler, ITextStyle)
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)

显式接口实现

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

适用于