Sdílet prostřednictvím


SwitchHandler Třída

Definice

public ref class SwitchHandler : Microsoft::Maui::Handlers::ViewHandler<Microsoft::Maui::ISwitch ^, System::Object ^>, Microsoft::Maui::Handlers::ISwitchHandler
public class SwitchHandler : Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.ISwitch,object>, Microsoft.Maui.Handlers.ISwitchHandler
type SwitchHandler = class
    inherit ViewHandler<ISwitch, obj>
    interface ISwitchHandler
    interface IViewHandler
    interface IElementHandler
Public Class SwitchHandler
Inherits ViewHandler(Of ISwitch, Object)
Implements ISwitchHandler
Dědičnost
Implementuje

Konstruktory

SwitchHandler()
SwitchHandler(IPropertyMapper)
SwitchHandler(IPropertyMapper, CommandMapper)

Pole

CommandMapper
Mapper

Vlastnosti

ContainerView

Získá zobrazení, které funguje jako kontejner pro PlatformView.

(Zděděno od ViewHandler)
HasContainer

Získá nebo nastaví hodnotu, která označuje, zda PlatformView je obsažena v zobrazení.

(Zděděno od ViewHandler)
MauiContext (Zděděno od ElementHandler)
NeedsContainer

Získá hodnotu, která označuje, zda VirtualView potřebuje zobrazení kontejneru.

(Zděděno od ViewHandler)
PlatformView (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
Services (Zděděno od ElementHandler)
VirtualView (Zděděno od ViewHandler<TVirtualView,TPlatformView>)

Metody

ConnectHandler(TPlatformView) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
CreatePlatformView()
DisconnectHandler(TPlatformView) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
GetDesiredSize(Double, Double) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
Invoke(String, Object) (Zděděno od ElementHandler)
MapIsOn(ISwitchHandler, ISwitch)
MapThumbColor(ISwitchHandler, ISwitch)
MapTrackColor(ISwitchHandler, ISwitch)
PlatformArrange(Rect) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
RemoveContainer() (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
SetMauiContext(IMauiContext) (Zděděno od ElementHandler)
SetupContainer() (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IElement) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
SetVirtualView(IView) (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
UpdateValue(String) (Zděděno od ElementHandler)

Explicitní implementace rozhraní

IElementHandler.DisconnectHandler() (Zděděno od ElementHandler)
IElementHandler.PlatformView (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
IElementHandler.VirtualView (Zděděno od ViewHandler<TVirtualView,TPlatformView>)
ISwitchHandler.PlatformView
ISwitchHandler.VirtualView
IViewHandler.ContainerView (Zděděno od ViewHandler)
IViewHandler.VirtualView (Zděděno od ViewHandler<TVirtualView,TPlatformView>)

Metody rozšíření

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

Platí pro