Condividi tramite


ButtonHandler Classe

Definizione

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
Ereditarietà
Implementazioni

Costruttori

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

Campi

CommandMapper
ImageButtonMapper
Mapper
TextButtonMapper

Proprietà

ContainerView

Ottiene la visualizzazione che funge da contenitore per .PlatformView

(Ereditato da ViewHandler)
HasContainer

Ottiene o imposta un valore che indica se l'oggetto PlatformView è contenuto all'interno di una visualizzazione.

(Ereditato da ViewHandler)
ImageSourceLoader
MauiContext (Ereditato da ElementHandler)
NeedsContainer

Ottiene un valore che indica se è VirtualView necessaria una visualizzazione contenitore.

(Ereditato da ViewHandler)
PlatformView (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
Services (Ereditato da ElementHandler)
VirtualView (Ereditato da ViewHandler<TVirtualView,TPlatformView>)

Metodi

ConnectHandler(TPlatformView) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
CreatePlatformView()
DisconnectHandler(TPlatformView) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
GetDesiredSize(Double, Double) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (Ereditato da 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) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
RemoveContainer() (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
SetMauiContext(IMauiContext) (Ereditato da ElementHandler)
SetupContainer() (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IElement) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IView) (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
UpdateValue(String) (Ereditato da ElementHandler)

Implementazioni dell'interfaccia esplicita

IButtonHandler.PlatformView
IButtonHandler.VirtualView
IElementHandler.DisconnectHandler() (Ereditato da ElementHandler)
IElementHandler.PlatformView (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Ereditato da ViewHandler<TVirtualView,TPlatformView>)
IViewHandler.ContainerView (Ereditato da ViewHandler)
IViewHandler.VirtualView (Ereditato da ViewHandler<TVirtualView,TPlatformView>)

Metodi di estensione

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

Si applica a