共用方式為


SearchBarHandler 類別

定義

public ref class SearchBarHandler : Microsoft::Maui::Handlers::ViewHandler<Microsoft::Maui::ISearchBar ^, System::Object ^>, Microsoft::Maui::Handlers::ISearchBarHandler
public class SearchBarHandler : Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.ISearchBar,object>, Microsoft.Maui.Handlers.ISearchBarHandler
type SearchBarHandler = class
    inherit ViewHandler<ISearchBar, obj>
    interface ISearchBarHandler
    interface IViewHandler
    interface IElementHandler
Public Class SearchBarHandler
Inherits ViewHandler(Of ISearchBar, Object)
Implements ISearchBarHandler
繼承
實作

建構函式

SearchBarHandler()
SearchBarHandler(IPropertyMapper, CommandMapper)
SearchBarHandler(IPropertyMapper)

欄位

CommandMapper
Mapper

屬性

ContainerView

取得做為 容器的 PlatformView檢視。

(繼承來源 ViewHandler)
HasContainer

取得或設定值,這個值表示 是否 PlatformView 包含在檢視中。

(繼承來源 ViewHandler)
MauiContext (繼承來源 ElementHandler)
NeedsContainer

取得值,這個值表示 是否需要 VirtualView 容器檢視。

(繼承來源 ViewHandler)
PlatformView (繼承來源 ViewHandler<TVirtualView,TPlatformView>)
QueryEditor
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)
MapBackground(ISearchBarHandler, ISearchBar)
MapCancelButtonColor(IViewHandler, ISearchBar)
MapCharacterSpacing(IViewHandler, ISearchBar)
MapFont(IViewHandler, ISearchBar)
MapHorizontalTextAlignment(IViewHandler, ISearchBar)
MapIsEnabled(ISearchBarHandler, ISearchBar)
MapIsReadOnly(IViewHandler, ISearchBar)
MapIsSpellCheckEnabled(IViewHandler, ISearchBar)

將抽象 IsSpellCheckEnabled 屬性對應至平臺特定的實作。

MapIsTextPredictionEnabled(IViewHandler, ISearchBar)

將抽象 IsTextPredictionEnabled 屬性對應至平臺特定的實作。

MapKeyboard(IViewHandler, ISearchBar)
MapMaxLength(IViewHandler, ISearchBar)
MapPlaceholder(IViewHandler, ISearchBar)
MapPlaceholderColor(IViewHandler, ISearchBar)
MapText(IViewHandler, ISearchBar)
MapTextColor(IViewHandler, ISearchBar)
MapVerticalTextAlignment(IViewHandler, ISearchBar)
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>)
ISearchBarHandler.PlatformView
ISearchBarHandler.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)

適用於