Share via


SearchHandler 類別

定義

ISearchHandlerController 的預設實作。

public ref class SearchHandler : Microsoft::Maui::Controls::BindableObject, Microsoft::Maui::Controls::Internals::IFontElement, Microsoft::Maui::Controls::ISearchHandlerController
public class SearchHandler : Microsoft.Maui.Controls.BindableObject, Microsoft.Maui.Controls.Internals.IFontElement, Microsoft.Maui.Controls.ISearchHandlerController
type SearchHandler = class
    inherit BindableObject
    interface ISearchHandlerController
    interface IFontElement
Public Class SearchHandler
Inherits BindableObject
Implements IFontElement, ISearchHandlerController
繼承
SearchHandler
實作

建構函式

SearchHandler()

ISearchHandlerController 的預設實作。

欄位

AutomationIdProperty

AutomationId可系結屬性。

BackgroundColorProperty

BackgroundColor可系結屬性。

CancelButtonColorProperty

CancelButtonColor可系結屬性。

CharacterSpacingProperty

CharacterSpacing可系結屬性。

ClearIconHelpTextProperty

ClearIconHelpText可系結屬性。

ClearIconNameProperty

ClearIconName可系結屬性。

ClearIconProperty

ClearIcon可系結屬性。

ClearPlaceholderCommandParameterProperty

ClearPlaceholderCommandParameter可系結屬性。

ClearPlaceholderCommandProperty

ClearPlaceholderCommand可系結屬性。

ClearPlaceholderEnabledProperty

ClearPlaceholderEnabled可系結屬性。

ClearPlaceholderHelpTextProperty

ClearPlaceholderHelpText可系結屬性。

ClearPlaceholderIconProperty

ClearPlaceholderIcon可系結屬性。

ClearPlaceholderNameProperty

ClearPlaceholderName可系結屬性。

CommandParameterProperty

CommandParameter可系結屬性。

CommandProperty

Command可系結屬性。

DisplayMemberNameProperty

DisplayMemberName可系結屬性。

FontAttributesProperty

FontAttributes可系結屬性。

FontAutoScalingEnabledProperty

FontAutoScalingEnabled可系結屬性。

FontFamilyProperty

FontFamily可系結屬性。

FontSizeProperty

FontSize可系結屬性。

HorizontalTextAlignmentProperty

HorizontalTextAlignment可系結屬性。

IsFocusedProperty

IsFocused可系結屬性。

IsFocusedPropertyKey

ISearchHandlerController 的預設實作。

IsSearchEnabledProperty

IsSearchEnabled可系結屬性。

ItemsSourceProperty

ItemsSource可系結屬性。

ItemTemplateProperty

ItemTemplate可系結屬性。

KeyboardProperty

Keyboard可系結屬性。

PlaceholderColorProperty

PlaceholderColor可系結屬性。

PlaceholderProperty

Placeholder可系結屬性。

QueryIconHelpTextProperty

QueryIconHelpText可系結屬性。

QueryIconNameProperty

QueryIconName可系結屬性。

QueryIconProperty

QueryIcon可系結屬性。

QueryProperty

Query可系結屬性。

SearchBoxVisibilityProperty

SearchBoxVisibility可系結屬性。

SelectedItemProperty

SelectedItem 欄位的備份存放區。

ShowsResultsProperty

ShowsResults可系結屬性。

TextColorProperty

TextColor可系結屬性。

TextTransformProperty

TextTransform可系結屬性。

VerticalTextAlignmentProperty

VerticalTextAlignment可系結屬性。

屬性

AutomationId

ISearchHandlerController 的預設實作。

BackgroundColor

ISearchHandlerController 的預設實作。

BindingContext

取得或設定 對象,這個物件包含系結屬性所屬之系結屬性的目標屬性 BindableObject。 這是可繫結屬性。

(繼承來源 BindableObject)
CancelButtonColor

ISearchHandlerController 的預設實作。

CharacterSpacing

ISearchHandlerController 的預設實作。

ClearIcon

所顯示的圖示可清除搜尋方塊的內容。

ClearIconHelpText

用於清除圖示的無障礙說明文字。

ClearIconName

清除圖示的名稱,可搭配螢幕助讀程式使用。

ClearPlaceholderCommand

點選 ClearPlaceholderIcon 時執行的 ICommand。

ClearPlaceholderCommandParameter

傳遞至 ClearPlaceholderCommand 的參數。

ClearPlaceholderEnabled

ClearPlaceholderCommand 是否可執行。

ClearPlaceholderHelpText

ClearPlaceholderIcon 的無障礙說明文字。

ClearPlaceholderIcon

搜尋方塊空白時顯示的清除預留位置圖示。

ClearPlaceholderName

清除預留位置圖示的名稱,可搭配螢幕助讀程式使用。

Command

取得或設定在確認搜尋查詢時執行的 ICommand。

CommandParameter

取得或設定在確認搜尋查詢時所執行 Command 的參數。

Dispatcher

取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器, (可能是視窗/應用程式的) 。

(繼承來源 BindableObject)
DisplayMemberName

針對 ItemsSource 集合中每個資料項目所顯示之屬性的名稱或路徑。

FontAttributes

ISearchHandlerController 的預設實作。

FontAutoScalingEnabled

ISearchHandlerController 的預設實作。

FontFamily

ISearchHandlerController 的預設實作。

FontSize

ISearchHandlerController 的預設實作。

HorizontalTextAlignment

ISearchHandlerController 的預設實作。

IsFocused

ISearchHandlerController 的預設實作。

IsSearchEnabled

取得或設定是否啟用搜尋方塊。

ItemsSource

要在建議區域中顯示之項目的集合。 預設為 null

ItemTemplate

要套用至 ItemsSource 中每個項目的 DataTemplate

Keyboard

ISearchHandlerController 的預設實作。

Placeholder

搜尋方塊空白時要顯示的文字。

PlaceholderColor

ISearchHandlerController 的預設實作。

Query

取得或設定搜尋方塊的文字。

QueryIcon

用來指示可以使用搜尋的圖示。

QueryIconHelpText

QueryIcon 的無障礙說明文字。

QueryIconName

QueryIcon 的名稱,可搭配螢幕助讀程式使用。

SearchBoxVisibility

取得或設定搜尋方塊是否可見。

SelectedItem

ISearchHandlerController 的預設實作。

ShowsResults

取得或設定文字輸入時,搜尋結果是否應該出現在建議區域中。

TextColor

ISearchHandlerController 的預設實作。

TextTransform

ISearchHandlerController 的預設實作。

VerticalTextAlignment

ISearchHandlerController 的預設實作。

方法

ApplyBindings()

將所有目前的系結套用至 BindingContext

(繼承來源 BindableObject)
ClearValue(BindableProperty)

清除先前為可系結屬性設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除先前針對可系結屬性設定的任何值,其索引鍵所識別。

(繼承來源 BindableObject)
CoerceValue(BindableProperty)

強制指定可系結屬性的值。 這是藉由叫 BindableProperty.CoerceValueDelegate 用指定的可系結屬性來完成。

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

強制指定可系結屬性的值。 這是藉由叫 BindableProperty.CoerceValueDelegate 用指定的可系結屬性來完成。

(繼承來源 BindableObject)
Focus()

ISearchHandlerController 的預設實作。

GetValue(BindableProperty)

傳回包含在指定可系結屬性中的值。

(繼承來源 BindableObject)
IsSet(BindableProperty)

判斷可系結屬性是否存在且已設定值。

(繼承來源 BindableObject)
OnBindingContextChanged()

引發 BindingContextChanged 事件。

(繼承來源 BindableObject)
OnClearPlaceholderClicked()

ISearchHandlerController 的預設實作。

OnFocused()

ISearchHandlerController 的預設實作。

OnItemSelected(Object)

ISearchHandlerController 的預設實作。

OnPropertyChanged(String)

引發 PropertyChanged 事件。

(繼承來源 BindableObject)
OnPropertyChanging(String)

引發 PropertyChanging 事件。

(繼承來源 BindableObject)
OnQueryChanged(String, String)

ISearchHandlerController 的預設實作。

OnQueryConfirmed()

ISearchHandlerController 的預設實作。

OnUnfocus()

ISearchHandlerController 的預設實作。

RemoveBinding(BindableProperty)

從可系結的屬性中移除先前設定的系結。

(繼承來源 BindableObject)
SetBinding(BindableProperty, BindingBase)

將系結指派給可系結的屬性。

(繼承來源 BindableObject)
SetIsFocused(Boolean)

ISearchHandlerController 的預設實作。

SetValue(BindableProperty, Object)

設定指定之可系結屬性的值。

(繼承來源 BindableObject)
SetValue(BindablePropertyKey, Object)

設定指定之可系結屬性的值。

(繼承來源 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Microsoft.Maui.Controls 平台內部使用。

(繼承來源 BindableObject)
UnapplyBindings()

從目前內容中移除所有目前的系結。

(繼承來源 BindableObject)
Unfocus()

ISearchHandlerController 的預設實作。

UpdateFormsText(String, TextTransform)

ISearchHandlerController 的預設實作。

事件

BindingContextChanged

發生於 BindingContext 屬性的值變更時。

(繼承來源 BindableObject)
FocusChangeRequested

ISearchHandlerController 的預設實作。

Focused

ISearchHandlerController 的預設實作。

PropertyChanged

當屬性值變更時發生。

(繼承來源 BindableObject)
PropertyChanging

當屬性值變更中時發生。

(繼承來源 BindableObject)
Unfocused

ISearchHandlerController 的預設實作。

明確介面實作

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

ISearchHandlerController 的預設實作。

(繼承來源 BindableObject)
IFontElement.FontSizeDefaultValueCreator()

ISearchHandlerController 的預設實作。

IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes)

ISearchHandlerController 的預設實作。

IFontElement.OnFontAutoScalingEnabledChanged(Boolean, Boolean)

ISearchHandlerController 的預設實作。

IFontElement.OnFontFamilyChanged(String, String)

ISearchHandlerController 的預設實作。

IFontElement.OnFontSizeChanged(Double, Double)

ISearchHandlerController 的預設實作。

ISearchHandlerController.ClearPlaceholderClicked()

ISearchHandlerController 的預設實作。

ISearchHandlerController.ItemSelected(Object)

ISearchHandlerController 的預設實作。

ISearchHandlerController.ListProxy

ISearchHandlerController 的預設實作。

ISearchHandlerController.ListProxyChanged

ISearchHandlerController 的預設實作。

ISearchHandlerController.QueryConfirmed()

ISearchHandlerController 的預設實作。

擴充方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

ISearchHandlerController 的預設實作。

SetAppTheme<T>(BindableObject, BindableProperty, T, T)

ISearchHandlerController 的預設實作。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

ISearchHandlerController 的預設實作。

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

建立並將繫結套用至屬性。

ToFont(IFontElement, Nullable<Double>)

ISearchHandlerController 的預設實作。

適用於