SearchHandler 類別

定義

ISearchHandlerController 的預設實作。

public class SearchHandler : Xamarin.Forms.BindableObject, Xamarin.Forms.Internals.IFontElement, Xamarin.Forms.ISearchHandlerController
type SearchHandler = class
    inherit BindableObject
    interface ISearchHandlerController
    interface IFontElement
繼承
System.Object
SearchHandler
實作

建構函式

SearchHandler()

ISearchHandlerController 的預設實作。

欄位

BackgroundColorProperty

ISearchHandlerController 的預設實作。

CancelButtonColorProperty

ISearchHandlerController 的預設實作。

CharacterSpacingProperty

ISearchHandlerController 的預設實作。

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

ISearchHandlerController 的預設實作。

FontFamilyProperty

ISearchHandlerController 的預設實作。

FontSizeProperty

ISearchHandlerController 的預設實作。

HorizontalTextAlignmentProperty

ISearchHandlerController 的預設實作。

IsFocusedProperty

ISearchHandlerController 的預設實作。

IsFocusedPropertyKey

ISearchHandlerController 的預設實作。

IsSearchEnabledProperty

IsSearchEnabled 欄位的備份存放區。

ItemsSourceProperty

ItemsSource 欄位的備份存放區。

ItemTemplateProperty

ItemTemplate 欄位的備份存放區。

KeyboardProperty

ISearchHandlerController 的預設實作。

PlaceholderColorProperty

ISearchHandlerController 的預設實作。

PlaceholderProperty

Placeholder 欄位的備份存放區。

QueryIconHelpTextProperty

QueryIconHelpText 欄位的備份存放區。

QueryIconNameProperty

QueryIconName 欄位的備份存放區。

QueryIconProperty

QueryIcon 欄位的備份存放區。

QueryProperty

Query 欄位的備份存放區。

SearchBoxVisibilityProperty

SearchBoxVisibility 欄位的備份存放區。

SelectedItemProperty

SelectedItem 欄位的備份存放區。

ShowsResultsProperty

ShowsResults 欄位的備份存放區。

TextColorProperty

ISearchHandlerController 的預設實作。

TextTransformProperty

ISearchHandlerController 的預設實作。

VerticalTextAlignmentProperty

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

ISearchHandlerController 的預設實作。

(繼承來源 BindableObject)
DisplayMemberName

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

FontAttributes

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)

清除 SetValue 針對 property 所設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除 SetValue 針對 propertyKey 所識別屬性設定的任何值。

(繼承來源 BindableObject)
CoerceValue(BindableProperty)

ISearchHandlerController 的預設實作。

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

ISearchHandlerController 的預設實作。

(繼承來源 BindableObject)
Focus()

ISearchHandlerController 的預設實作。

GetValue(BindableProperty)

傳回 BindableProperty 中包含的值。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty)
已淘汰.

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已淘汰.

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
IsSet(BindableProperty)

如果目標屬性存在且已設定,則傳回 true

(繼承來源 BindableObject)
OnBindingContextChanged()

覆寫此方法,以在 BindingContext 變更時執行動作。

(繼承來源 BindableObject)
OnClearPlaceholderClicked()

開發人員可以覆寫這個方法以回應點選 ClearPlaceholderIcon

OnFocused()

ISearchHandlerController 的預設實作。

OnItemSelected(Object)

開發人員可以覆寫這個方法以回應使用者選取搜尋結果。

OnPropertyChanged(String)

從子類別呼叫這個方法,以通知屬性發生了變更。

(繼承來源 BindableObject)
OnPropertyChanging(String)

從子類別呼叫這個方法,以通知屬性即將發生變更。

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

開發人員可以覆寫這個方法以回應修改 Query

OnQueryConfirmed()

開發人員可以覆寫這個方法以回應使用者在搜尋方塊中輸入或確認查詢。

OnUnfocus()

ISearchHandlerController 的預設實作。

RemoveBinding(BindableProperty)

移除先前設定的繫結。

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

將繫結指派給屬性。

(繼承來源 BindableObject)
SetIsFocused(Boolean)

ISearchHandlerController 的預設實作。

SetValue(BindableProperty, Object)

設定指定之屬性的值。

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

設定 propertyKey 的值。

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

供 Xamarin.Forms 平台內部使用。

(繼承來源 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)

供 Xamarin.Forms 平台內部使用。

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

ISearchHandlerController 的預設實作。

IFontElement.OnFontAttributesChanged(FontAttributes, FontAttributes)

ISearchHandlerController 的預設實作。

IFontElement.OnFontChanged(Font, Font)

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 的預設實作。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

ISearchHandlerController 的預設實作。

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

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

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
已淘汰.

從運算式建立及套用繫結。

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

ISearchHandlerController 的預設實作。

適用於