RadAutoComplete
The AutoComplete control provides suggestions while typing into a field, can complete user input and display multiple chosen tokens.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadAutoComplete : RadBorder, IRadBorder, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadBorderRadAutoComplete
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadAutoComplete class.
public RadAutoComplete()
Fields
ActualClearButtonStyleProperty
BindableProperty
Identifies the ActualClearButtonStyle property.
public static readonly BindableProperty ActualClearButtonStyleProperty
ActualSuggestionItemStyleProperty
BindableProperty
Identifies the ActualSuggestionItemStyle property.
public static readonly BindableProperty ActualSuggestionItemStyleProperty
ActualTextInputStyleProperty
BindableProperty
Identifies the ActualTextInputStyle property.
public static readonly BindableProperty ActualTextInputStyleProperty
BackgroundColorProperty
BindableProperty
Identifies the BackgroundColor property.
public static readonly BindableProperty BackgroundColorProperty
ClearButtonStyleProperty
BindableProperty
Identifies the ClearButtonStyle property.
public static readonly BindableProperty ClearButtonStyleProperty
ClearTextCommandProperty
BindableProperty
Identifies the ClearTextCommand property.
public static readonly BindableProperty ClearTextCommandProperty
CompletionModeProperty
BindableProperty
Identifies the CompletionMode property.
public static readonly BindableProperty CompletionModeProperty
ControlTemplateProperty
BindableProperty
Identifies the ControlTemplate property.
public static readonly BindableProperty ControlTemplateProperty
DisplayModeProperty
BindableProperty
Identifies the DisplayMode property.
public static readonly BindableProperty DisplayModeProperty
DisplayTextFormatterProperty
BindableProperty
Identifies the DisplayTextFormatter property.
public static readonly BindableProperty DisplayTextFormatterProperty
FilteredItemsProperty
BindableProperty
Identifies the FilteredItems property.
public static readonly BindableProperty FilteredItemsProperty
FilterProperty
BindableProperty
Identifies the Filter property.
public static readonly BindableProperty FilterProperty
FontAttributesProperty
BindableProperty
Identifies the FontAttributes property.
public static readonly BindableProperty FontAttributesProperty
FontFamilyProperty
BindableProperty
Identifies the FontFamily property.
public static readonly BindableProperty FontFamilyProperty
FontSizeProperty
BindableProperty
Identifies the FontSize property.
public static readonly BindableProperty FontSizeProperty
HighlightItemFuncProperty
BindableProperty
Identifies the HighlightItemFunc property.
public static readonly BindableProperty HighlightItemFuncProperty
IsClearButtonVisibleProperty
BindableProperty
Identifies the IsClearButtonVisible property.
public static readonly BindableProperty IsClearButtonVisibleProperty
ItemsSourceProperty
BindableProperty
Identifies the ItemsSource property.
public static readonly BindableProperty ItemsSourceProperty
KeyboardProperty
BindableProperty
Identifies the Keyboard property.
public static readonly BindableProperty KeyboardProperty
LoadingTemplateProperty
BindableProperty
Identifies the LoadingTemplate property.
public static readonly BindableProperty LoadingTemplateProperty
NoResultsMessageProperty
BindableProperty
Identifies the NoResultsMessage property.
public static readonly BindableProperty NoResultsMessageProperty
NoResultsTemplateProperty
BindableProperty
Identifies the NoResultsTemplate property.
public static readonly BindableProperty NoResultsTemplateProperty
PlaceholderColorProperty
BindableProperty
Identifies the PlaceholderColor property.
public static readonly BindableProperty PlaceholderColorProperty
PlaceholderProperty
BindableProperty
Identifies the Placeholder property.
public static readonly BindableProperty PlaceholderProperty
RemoveTokenCommandProperty
BindableProperty
Identifies the RemoveTokenCommand property.
public static readonly BindableProperty RemoveTokenCommandProperty
SearchTextProperty
BindableProperty
Identifies the SearchText property.
public static readonly BindableProperty SearchTextProperty
SearchThresholdProperty
BindableProperty
Identifies the SearchThreshold property.
public static readonly BindableProperty SearchThresholdProperty
ShowMoreItemsProperty
BindableProperty
Identifies the ShowMoreItems property.
public static readonly BindableProperty ShowMoreItemsProperty
ShowMoreTemplateProperty
BindableProperty
Identifies the ShowMoreTemplate property.
public static readonly BindableProperty ShowMoreTemplateProperty
ShowSuggestionViewProperty
BindableProperty
Identifies the ShowSuggestionView property.
public static readonly BindableProperty ShowSuggestionViewProperty
StyleProperty
BindableProperty
Identifies the Style property.
public static readonly BindableProperty StyleProperty
SuggestionItemHighlightTextColorProperty
BindableProperty
Identifies the SuggestionItemHighlightTextColor property.
public static readonly BindableProperty SuggestionItemHighlightTextColorProperty
SuggestionItemStyleProperty
BindableProperty
Identifies the SuggestionItemStyle property.
public static readonly BindableProperty SuggestionItemStyleProperty
SuggestionItemTemplateProperty
BindableProperty
Identifies the SuggestionItemTemplate property.
public static readonly BindableProperty SuggestionItemTemplateProperty
SuggestionViewBackgroundColorProperty
BindableProperty
Identifies the SuggestionViewBackgroundColor property.
public static readonly BindableProperty SuggestionViewBackgroundColorProperty
SuggestionViewBorderColorProperty
BindableProperty
Identifies the SuggestionViewBorderColor property.
public static readonly BindableProperty SuggestionViewBorderColorProperty
SuggestionViewBorderThicknessProperty
BindableProperty
Identifies the SuggestionViewBorderThickness property.
public static readonly BindableProperty SuggestionViewBorderThicknessProperty
SuggestionViewCornerRadiusProperty
BindableProperty
Identifies the SuggestionViewCornerRadius property.
public static readonly BindableProperty SuggestionViewCornerRadiusProperty
SuggestionViewHeightProperty
BindableProperty
Identifies the SuggestionViewHeight property.
public static readonly BindableProperty SuggestionViewHeightProperty
SuggestionViewMaxHeightProperty
BindableProperty
Identifies the SuggestionViewMaxHeight property.
public static readonly BindableProperty SuggestionViewMaxHeightProperty
SuggestionViewPositionProperty
BindableProperty
Identifies the SuggestionViewPosition property.
public static readonly BindableProperty SuggestionViewPositionProperty
SuggestionViewTemplateProperty
BindableProperty
Identifies the SuggestionViewTemplate property.
public static readonly BindableProperty SuggestionViewTemplateProperty
SuggestModeProperty
BindableProperty
Identifies the SuggestMode property.
public static readonly BindableProperty SuggestModeProperty
TextColorProperty
BindableProperty
Identifies the TextColor property.
public static readonly BindableProperty TextColorProperty
TextInputStyleProperty
BindableProperty
Identifies the TextInputStyle property.
public static readonly BindableProperty TextInputStyleProperty
TextProperty
BindableProperty
Identifies the Text property.
public static readonly BindableProperty TextProperty
TextSearchPathProperty
BindableProperty
Identifies the TextSearchPath property.
public static readonly BindableProperty TextSearchPathProperty
TokensProperty
BindableProperty
Identifies the Tokens property.
public static readonly BindableProperty TokensProperty
TokenTemplateProperty
BindableProperty
Identifies the TokenTemplate property.
public static readonly BindableProperty TokenTemplateProperty
Properties
Gets the actual style that is used to style the clear button.
public Style ActualClearButtonStyle { get; }
Gets the actual Style for the suggestion items in the drop down.
public Style ActualSuggestionItemStyle { get; }
ActualTextInputStyle
Style
Gets the actual Style for the inner RadTextInput.
public Style ActualTextInputStyle { get; }
BackgroundColor
Color
public Color BackgroundColor { get; set; }
ClearButtonStyle
Style
Gets or sets the Style of the clear button.
public Style ClearButtonStyle { get; set; }
Gets or sets the command that sets the text to null.
public ICommand ClearTextCommand { get; set; }
Gets or sets the AutoCompleteCompletionMode of the component.
public AutoCompleteCompletionMode CompletionMode { get; set; }
ControlTemplate
ControlTemplate
Gets or sets the control template of this view.
public ControlTemplate ControlTemplate { get; set; }
Gets or sets the AutoCompleteDisplayMode of the component.
public AutoCompleteDisplayMode DisplayMode { get; set; }
Gets or set the formatter of the selected item. Using it the format of the text visualized in the entry could be formated when AutoCompleteDisplayMode is Plain. If the AutoCompleteDisplayMode is Token you can format the text visualized in the Token itself.
[TypeConverter(typeof(DisplayTextFormatterTypeConverter))]
public IDisplayTextFormatter DisplayTextFormatter { get; set; }
Gets or sets the function that will be used to filter items. When set TextSearchPath property is ignored.
public IAutoCompleteFilter Filter { get; set; }
Gets the FilteredItems of the component.
public IEnumerable FilteredItems { get; }
FontAttributes
FontAttributes
Gets or sets the FontAttributes of the component.
public FontAttributes FontAttributes { get; set; }
Gets or sets the FontFamily of the component.
public string FontFamily { get; set; }
Gets or sets the FontSize of the component.
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Gets or sets the function used to specify the highlighted item in the drop down after filtering is performed.
public Func<IEnumerable<object>, string, object> HighlightItemFunc { get; set; }
The function receives the filtered collection of items and current search text, and returns the item that should be highlighted.
Gets or sets a value indicating if the clear button should be visible.
public bool IsClearButtonVisible { get; set; }
When False Clear button will never be visible. Otherwise it will be visible only when control is focused.
Gets or sets the ItemsSource of the component.
public IEnumerable ItemsSource { get; set; }
Keyboard
Keyboard
Gets or sets type of the keyboard that will be visualized by the device.
public Keyboard Keyboard { get; set; }
LoadingTemplate
DataTemplate
Gets or sets the loading message.
public DataTemplate LoadingTemplate { get; set; }
Gets or sets the message visualised when there are no suggestions found.
public string NoResultsMessage { get; set; }
NoResultsTemplate
DataTemplate
Gets or sets the template visualised when there are no suggestions found.
public DataTemplate NoResultsTemplate { get; set; }
Gets or sets the placeholder text of the component.
public string Placeholder { get; set; }
PlaceholderColor
Color
Gets or sets the placeholder color of the component.
public Color PlaceholderColor { get; set; }
The Color.
Gets or sets the command that removes the tokens. The parameter of this command is a token from the Tokens collection.
public ICommand RemoveTokenCommand { get; set; }
Gets the search Text.
public string SearchText { get; }
Gets or sets the SearchThreshold of the component.
public int SearchThreshold { get; set; }
Gets or sets the visibility of the view that is used to represents more items.
public bool ShowMoreItems { get; set; }
When true and ShowMoreTemplate is set RadAutoComplete will hide tokens that are not on the first line and will show the hidden count.
ShowMoreTemplate
DataTemplate
Gets or sets the template used to create show more view.
public DataTemplate ShowMoreTemplate { get; set; }
Gets or sets a value indicating if the suggestions should be visualized.
public bool ShowSuggestionView { get; set; }
Gets or sets the SuggestionItemHighlightTextColor of the component.
public Color SuggestionItemHighlightTextColor { get; set; }
SuggestionItemStyle
Style
Gets or sets the Suggestion Item Style of the component (TargetType RadCollectionViewItemView).
public Style SuggestionItemStyle { get; set; }
SuggestionItemTemplate
DataTemplate
Gets or sets the SuggestionItemTemplate of the component.
public DataTemplate SuggestionItemTemplate { get; set; }
Gets or sets the SuggestionViewBackgroundColor of the component.
public Color SuggestionViewBackgroundColor { get; set; }
Gets or sets the border color of the suggestion view of the component.
public Color SuggestionViewBorderColor { get; set; }
SuggestionViewBorderThickness
Thickness
Gets or sets the border thickness of the suggestion view of the component.
public Thickness SuggestionViewBorderThickness { get; set; }
SuggestionViewCornerRadius
Thickness
Gets or sets the corner radius of the suggestion view of the component.
public Thickness SuggestionViewCornerRadius { get; set; }
Gets or sets the height of the suggestion view of the component.
public double SuggestionViewHeight { get; set; }
The required SuggestionView height.
Gets or sets the max height of the suggestion view of the component.
public double SuggestionViewMaxHeight { get; set; }
The required SuggestionView max height.
Gets or sets the Position for the suggestion view popup.
public AutoCompletePopupPosition SuggestionViewPosition { get; set; }
SuggestionViewTemplate
DataTemplate
Gets or sets the template used to visualize the filtered items.
public DataTemplate SuggestionViewTemplate { get; set; }
Gets or sets the AutoCompleteSuggestMode of the component.
public AutoCompleteSuggestMode SuggestMode { get; set; }
The AutoCompleteSuggestMode.
TextColor
Color
Gets or sets the TextColor of the component.
public Color TextColor { get; set; }
The Color.
TextInputStyle
Style
Gets or sets the Style of the inner RadTextInput.
public Style TextInputStyle { get; set; }
Gets or sets the TextSearchPath of the component.
public string TextSearchPath { get; set; }
The TextSearchPath.
Gets the available Tokens.
public ObservableCollection<object> Tokens { get; }
TokenTemplate
DataTemplate
Gets or sets the template used to visualize tokens.
public DataTemplate TokenTemplate { get; set; }
The TokenTemplate.
Methods
Hides suggestions.
public void HideSuggestions()
protected override void OnApplyTemplate()
protected override void OnPropertyChanged(string propertyName = null)
Shows suggestions.
public void ShowSuggestions()
Unsets keyboard focus on this element.
public void Unfocus()
Events
Occurs when the user finalizes the text in the AutoCompleteView Entry with the return key.
public event EventHandler Completed
Occurs when the FilteredItems collection is changed.
public event EventHandler<FilteredItemsChangedEventArgs> FilteredItemsChanged
Occurs when a suggestion is selected.
public event EventHandler<SuggestionItemSelectedEventArgs> SuggestionItemSelected
TextChanged
EventHandler<TextChangedEventArgs>
Occurs when the text is changed.
public event EventHandler<TextChangedEventArgs> TextChanged