Język

ButtonHandler Klasa

Definicja

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
Dziedziczenie
Implementuje

Konstruktory

Nazwa Opis
ButtonHandler()
ButtonHandler(IPropertyMapper, CommandMapper)
ButtonHandler(IPropertyMapper)

Pola

Nazwa Opis
CommandMapper
ImageButtonMapper
Mapper
TextButtonMapper

Właściwości

Nazwa Opis
ContainerView

Pobiera widok, który działa jako kontener dla .PlatformView

(Odziedziczone po ViewHandler)
HasContainer

Pobiera lub ustawia wartość wskazującą, czy element PlatformView znajduje się w widoku.

(Odziedziczone po ViewHandler)
ImageSourceLoader
MauiContext (Odziedziczone po ElementHandler)
NeedsContainer

Pobiera wartość wskazującą, czy VirtualView wymagany jest widok kontenera.

(Odziedziczone po ViewHandler)
PlatformView (Odziedziczone po ViewHandler<TVirtualView,TPlatformView>)
Services (Odziedziczone po ElementHandler)
VirtualView (Odziedziczone po ViewHandler<TVirtualView,TPlatformView>)

Metody

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

Jawne implementacje interfejsu

Nazwa Opis
IButtonHandler.PlatformView
IButtonHandler.VirtualView
IElementHandler.DisconnectHandler() (Odziedziczone po ElementHandler)
IElementHandler.PlatformView (Odziedziczone po ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Odziedziczone po ViewHandler<TVirtualView,TPlatformView>)
IViewHandler.ContainerView (Odziedziczone po ViewHandler)
IViewHandler.VirtualView (Odziedziczone po ViewHandler<TVirtualView,TPlatformView>)

Metody rozszerzania

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

Dotyczy