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

要应用到 DataTemplate 中各个项目的 ItemsSource

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)

清除由 SetValueproperty 设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除由 SetValuepropertyKey 标识的属性设置的任何值。

(继承自 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 的默认实现。

适用于