EntryHandler 类

定义

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

构造函数

EntryHandler()
EntryHandler(IPropertyMapper, CommandMapper)
EntryHandler(IPropertyMapper)

字段

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)
MapCharacterSpacing(IEntryHandler, IEntry)
MapClearButtonVisibility(IEntryHandler, IEntry)
MapCursorPosition(IEntryHandler, IEntry)
MapFont(IEntryHandler, IEntry)
MapHorizontalTextAlignment(IEntryHandler, IEntry)
MapIsPassword(IEntryHandler, IEntry)
MapIsReadOnly(IEntryHandler, IEntry)
MapIsSpellCheckEnabled(IEntryHandler, IEntry)

将抽象 IsSpellCheckEnabled 属性映射到特定于平台的实现。

MapIsTextPredictionEnabled(IEntryHandler, IEntry)

将抽象 IsTextPredictionEnabled 属性映射到特定于平台的实现。

MapKeyboard(IEntryHandler, IEntry)
MapMaxLength(IEntryHandler, IEntry)
MapPlaceholder(IEntryHandler, IEntry)
MapPlaceholderColor(IEntryHandler, IEntry)
MapReturnType(IEntryHandler, IEntry)
MapSelectionLength(IEntryHandler, IEntry)
MapText(IEntryHandler, IEntry)
MapTextColor(IEntryHandler, IEntry)
MapVerticalTextAlignment(IEntryHandler, IEntry)
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>)
IEntryHandler.PlatformView
IEntryHandler.VirtualView
IViewHandler.ContainerView (继承自 ViewHandler)
IViewHandler.VirtualView (继承自 ViewHandler<TVirtualView,TPlatformView>)

扩展方法

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

适用于