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

要应用到 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)

清除以前为可绑定属性设置的任何值。

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

适用于