Поделиться через


SwitchHandler Класс

Определение

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
Наследование
Реализации

Конструкторы

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

Поля

CommandMapper
Mapper

Свойства

ContainerView

Возвращает представление, выступающее в качестве контейнера для PlatformView.

(Унаследовано от ViewHandler)
HasContainer

Возвращает или задает значение, указывающее, содержится ли PlatformView объект в представлении.

(Унаследовано от ViewHandler)
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)
MapIsOn(ISwitchHandler, ISwitch)
MapThumbColor(ISwitchHandler, ISwitch)
MapTrackColor(ISwitchHandler, ISwitch)
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>)
ISwitchHandler.PlatformView
ISwitchHandler.VirtualView
IViewHandler.ContainerView (Унаследовано от ViewHandler)
IViewHandler.VirtualView (Унаследовано от ViewHandler<TVirtualView,TPlatformView>)

Методы расширения

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

Применяется к