ClassRadComboBox
Represents a versatile dropdown control that combines a text input field with a selectable list of items. The RadComboBox provides both editable and non-editable modes, supports single and multiple selection, advanced filtering capabilities, and extensive customization options for enterprise applications.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadComboBox : RadBorder, IRadBorder, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IHighlightLabelProvider
Inheritance: objectRadContentViewRadBorderRadComboBox
Implements:
Inherited Members
Constructors
RadComboBox()
Initializes a new instance of the RadComboBox class.
Declaration
public RadComboBox()
Fields
ActualClearButtonStyleProperty
Identifies the ActualClearButtonStyle property.
Declaration
public static readonly BindableProperty ActualClearButtonStyleProperty
Field Value
BindableProperty
ActualDropDownButtonStyleProperty
Identifies the ActualDropDownButtonStyle property.
Declaration
public static readonly BindableProperty ActualDropDownButtonStyleProperty
Field Value
BindableProperty
ActualTextInputStyleProperty
Identifies the ActualTextInputStyle property.
Declaration
public static readonly BindableProperty ActualTextInputStyleProperty
Field Value
BindableProperty
BackgroundColorProperty
Identifies the BackgroundColor property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
BindableProperty
BorderBrushProperty
Identifies the BorderBrush property.
Declaration
public static readonly BindableProperty BorderBrushProperty
Field Value
BindableProperty
ClearButtonStyleProperty
Identifies the ClearButtonStyle property.
Declaration
public static readonly BindableProperty ClearButtonStyleProperty
Field Value
BindableProperty
ClearSelectionCommandProperty
Identifies the ClearSelectionCommand property.
Declaration
public static readonly BindableProperty ClearSelectionCommandProperty
Field Value
BindableProperty
ControlTemplateProperty
Identifies the ControlTemplate bindable property.
Declaration
public static readonly BindableProperty ControlTemplateProperty
Field Value
BindableProperty
DisplayMemberPathProperty
Identifies the DisplayMemberPath property.
Declaration
public static readonly BindableProperty DisplayMemberPathProperty
Field Value
BindableProperty
DropDownBackgroundColorProperty
Identifies the DropDownBackgroundColor property.
Declaration
public static readonly BindableProperty DropDownBackgroundColorProperty
Field Value
BindableProperty
DropDownBorderColorProperty
Identifies the DropDownBorderColor property.
Declaration
public static readonly BindableProperty DropDownBorderColorProperty
Field Value
BindableProperty
DropDownBorderThicknessProperty
Identifies the DropDownBorderThickness property.
Declaration
public static readonly BindableProperty DropDownBorderThicknessProperty
Field Value
BindableProperty
DropDownButtonStyleProperty
Identifies the DropDownButtonStyle property.
Declaration
public static readonly BindableProperty DropDownButtonStyleProperty
Field Value
BindableProperty
DropDownCornerRadiusProperty
Identifies the DropDownCornerRadius property.
Declaration
public static readonly BindableProperty DropDownCornerRadiusProperty
Field Value
BindableProperty
DropDownHeightProperty
Identifies the DropDownHeight bindable property.
Declaration
public static readonly BindableProperty DropDownHeightProperty
Field Value
BindableProperty
DropDownMaxHeightProperty
Identifies the DropDownMaxHeight bindable property.
Declaration
public static readonly BindableProperty DropDownMaxHeightProperty
Field Value
BindableProperty
DropDownVerticalOffsetProperty
Identifies the DropDownVerticalOffset property.
Declaration
public static readonly BindableProperty DropDownVerticalOffsetProperty
Field Value
BindableProperty
DropDownWidthProperty
Identifies the DropDownWidth bindable property.
Declaration
public static readonly BindableProperty DropDownWidthProperty
Field Value
BindableProperty
FilteredItemsProperty
Identifies the FilteredItems property.
Declaration
public static readonly BindableProperty FilteredItemsProperty
Field Value
BindableProperty
FilteringBehaviorProperty
Identifies the FilteringBehavior bindable property.
Declaration
public static readonly BindableProperty FilteringBehaviorProperty
Field Value
BindableProperty
FontAttributesProperty
Identifies the FontAttributes property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
BindableProperty
FontFamilyProperty
Identifies the FontFamily property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
BindableProperty
FontSizeProperty
Identifies the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
BindableProperty
FooterTemplateProperty
Identifies the FooterTemplate bindable property.
Declaration
public static readonly BindableProperty FooterTemplateProperty
Field Value
BindableProperty
HeaderTemplateProperty
Identifies the HeaderTemplate bindable property.
Declaration
public static readonly BindableProperty HeaderTemplateProperty
Field Value
BindableProperty
HighlightTextColorProperty
Identifies the HighlightTextColor property.
Declaration
public static readonly BindableProperty HighlightTextColorProperty
Field Value
BindableProperty
IsClearButtonVisibleProperty
Identifies the IsClearButtonVisible property.
Declaration
public static readonly BindableProperty IsClearButtonVisibleProperty
Field Value
BindableProperty
IsDropDownClosedOnSelectionProperty
Identifies the IsDropDownClosedOnSelection bindable property.
Declaration
public static readonly BindableProperty IsDropDownClosedOnSelectionProperty
Field Value
BindableProperty
IsDropDownOpenProperty
Identifies the IsDropDownOpen property.
Declaration
public static readonly BindableProperty IsDropDownOpenProperty
Field Value
BindableProperty
IsEditableProperty
Identifies the IsEditable bindable property.
Declaration
public static readonly BindableProperty IsEditableProperty
Field Value
BindableProperty
IsFilteringEnabledProperty
Identifies the IsFilteringEnabled bindable property.
Declaration
public static readonly BindableProperty IsFilteringEnabledProperty
Field Value
BindableProperty
IsSpellCheckEnabledProperty
Identifies the IsSpellCheckEnabled property.
Declaration
public static readonly BindableProperty IsSpellCheckEnabledProperty
Field Value
BindableProperty
ItemTemplateProperty
Identifies the ItemTemplate bindable property.
Declaration
public static readonly BindableProperty ItemTemplateProperty
Field Value
BindableProperty
ItemsSourceProperty
Identifies the ItemsSource bindable property.
Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
BindableProperty
KeyDownCommandProperty
Identifies the KeyDownCommand property.
Declaration
public static readonly BindableProperty KeyDownCommandProperty
Field Value
BindableProperty
KeyboardProperty
Identifies the Keyboard property.
Declaration
public static readonly BindableProperty KeyboardProperty
Field Value
BindableProperty
NoResultsMessageProperty
Identifies the NoResultsMessage property.
Declaration
public static readonly BindableProperty NoResultsMessageProperty
Field Value
BindableProperty
NoResultsTemplateProperty
Identifies the NoResultsTemplate property.
Declaration
public static readonly BindableProperty NoResultsTemplateProperty
Field Value
BindableProperty
OpenOnFocusProperty
Identifies the OpenOnFocus bindable property.
Declaration
public static readonly BindableProperty OpenOnFocusProperty
Field Value
BindableProperty
PlaceholderColorProperty
Identifies the PlaceholderColor property.
Declaration
public static readonly BindableProperty PlaceholderColorProperty
Field Value
BindableProperty
PlaceholderProperty
Identifies the Placeholder property.
Declaration
public static readonly BindableProperty PlaceholderProperty
Field Value
BindableProperty
RemoveTokenCommandProperty
Identifies the RemoveTokenCommand property.
Declaration
public static readonly BindableProperty RemoveTokenCommandProperty
Field Value
BindableProperty
SearchModeProperty
Identifies the SearchMode property.
Declaration
public static readonly BindableProperty SearchModeProperty
Field Value
BindableProperty
SearchTextPathProperty
Identifies the SearchTextPath property.
Declaration
public static readonly BindableProperty SearchTextPathProperty
Field Value
BindableProperty
SelectedIndexProperty
Identifies the SelectedIndex property.
Declaration
public static readonly BindableProperty SelectedIndexProperty
Field Value
BindableProperty
SelectedItemProperty
Identifies the SelectedItem property.
Declaration
public static readonly BindableProperty SelectedItemProperty
Field Value
BindableProperty
SelectedItemTemplateProperty
Identifies the SelectedItemTemplate bindable property.
Declaration
public static readonly BindableProperty SelectedItemTemplateProperty
Field Value
BindableProperty
SelectedItemsProperty
Identifies the SelectedItems property.
Declaration
public static readonly BindableProperty SelectedItemsProperty
Field Value
BindableProperty
SelectionBoxTemplateProperty
Identifies the SelectionBoxTemplate bindable property.
Declaration
public static readonly BindableProperty SelectionBoxTemplateProperty
Field Value
BindableProperty
SelectionModeProperty
Identifies the SelectionMode property.
Declaration
public static readonly BindableProperty SelectionModeProperty
Field Value
BindableProperty
ShowMoreTemplateProperty
Identifies the ShowMoreTemplate property.
Declaration
public static readonly BindableProperty ShowMoreTemplateProperty
Field Value
BindableProperty
StyleProperty
Identifies the Style bindable property.
Declaration
public static readonly BindableProperty StyleProperty
Field Value
BindableProperty
TextColorProperty
Identifies the TextColor property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
BindableProperty
TextInputStyleProperty
Identifies the TextInputStyle property.
Declaration
public static readonly BindableProperty TextInputStyleProperty
Field Value
BindableProperty
TextProperty
Identifies the Text property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
BindableProperty
TokenTemplateProperty
Identifies the TokenTemplate property.
Declaration
public static readonly BindableProperty TokenTemplateProperty
Field Value
BindableProperty
Properties
ActualClearButtonStyle
Gets the actual style that is used to style the clear button.
Declaration
public Style ActualClearButtonStyle { get; }
Property Value
Style
ActualDropDownButtonStyle
Gets the actual style that is used to style the dropdown button.
Declaration
public Style ActualDropDownButtonStyle { get; }
Property Value
Style
ActualTextInputStyle
Gets the actual style that is used to style the inner RadTextInput.
Declaration
public Style ActualTextInputStyle { get; }
Property Value
Style
BackgroundColor
Declaration
public Color BackgroundColor { get; set; }
Property Value
Color
BorderBrush
Gets or sets the BorderBrush of the component.
Declaration
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }
Property Value
Brush
The Color.
ClearButtonStyle
Gets or sets the Style of the clear button.
Declaration
public Style ClearButtonStyle { get; set; }
Property Value
Style
ClearSelectionCommand
Gets or sets the command that clears the current selection, setting SelectedItem to null and clearing SelectedItems. This command is typically bound to a clear button or used programmatically to reset the selection state.
Declaration
public ICommand ClearSelectionCommand { get; set; }
Property Value
ControlTemplate
Gets or sets the control template of this view.
Declaration
public ControlTemplate ControlTemplate { get; set; }
Property Value
ControlTemplate
DisplayMemberPath
Gets or sets the property path used to determine which property of the data object should be displayed in the dropdown items. Use "." to display the object itself, or specify a property name like "Name" or "Title" to display a specific property.
DropDownBackgroundColor
Gets or sets the background color of the drop down part of the control.
Declaration
public Color DropDownBackgroundColor { get; set; }
Property Value
Color
DropDownBorderColor
Gets or sets the color of the border around the drop down part of the control.
Declaration
public Color DropDownBorderColor { get; set; }
Property Value
Color
DropDownBorderThickness
Gets or sets the thickness of the border that is around the drop down part of the control.
Declaration
public Thickness DropDownBorderThickness { get; set; }
Property Value
Thickness
DropDownButtonStyle
Gets or sets the Style of the drop down button.
Declaration
public Style DropDownButtonStyle { get; set; }
Property Value
Style
DropDownCornerRadius
Gets or sets the corner radius of the border that is around the drop down part of the control.
Declaration
public Thickness DropDownCornerRadius { get; set; }
Property Value
Thickness
DropDownHeight
Gets or sets the fixed height of the dropdown area in device-independent units. If not set or set to a negative value, the dropdown will size itself based on its content up to DropDownMaxHeight.
DropDownMaxHeight
Gets or sets the maximum height of the dropdown area in device-independent units. This property constrains the dropdown height when it auto-sizes based on content, ensuring it doesn't exceed the specified limit.
DropDownVerticalOffset
Gets or sets the vertical offset of the drop down part of the control.
Declaration
public double DropDownVerticalOffset { get; set; }
Property Value
DropDownWidth
Gets or sets the width of the dropdown area in device-independent units. If not set, the dropdown will match the width of the ComboBox control itself.
FilteredItems
Gets the collection of items that match the current filter criteria when IsFilteringEnabled is true. This read-only collection is automatically updated as the user types and the filtering logic is applied.
Declaration
public IReadOnlyCollection<object> FilteredItems { get; }
Property Value
FilteringBehavior
Gets or sets the custom filtering behavior used to filter items based on user input. This allows you to implement custom filtering logic beyond the built-in SearchMode options.
Declaration
public ComboBoxFilteringBehavior FilteringBehavior { get; set; }
Property Value
FontAttributes
Gets or sets values that describe font styles.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
FontAttributes
FontFamily
Gets or sets the font family to which the font belongs.
FontSize
Gets or sets the size of the font.
Declaration
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
FooterTemplate
Gets or sets the template used to display the footer content at the bottom of the dropdown list. This template is rendered below all dropdown items and can contain any content or controls.
Declaration
public DataTemplate FooterTemplate { get; set; }
Property Value
DataTemplate
HeaderTemplate
Gets or sets the template used to display the header content at the top of the dropdown list. This template is rendered above all dropdown items and can contain any content or controls.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
DataTemplate
HighlightTextColor
Gets or sets the color used to highlight the matched text portions when filtering is active. This provides visual feedback to users showing which parts of the item text match their search input.
Declaration
public Color HighlightTextColor { get; set; }
Property Value
Color
IsClearButtonVisible
Gets or sets a value indicating if the clear button should be visible.
Declaration
public bool IsClearButtonVisible { get; set; }
Property Value
Remarks
When False Clear button will never be visible. Otherwise it will be visible only when control is focused.
IsDropDownClosedOnSelection
Gets or sets a value indicating whether the dropdown should automatically close when an item is selected or deselected. When false, the dropdown remains open after selection, allowing for easier multiple selection.
Declaration
public bool IsDropDownClosedOnSelection { get; set; }
Property Value
IsDropDownOpen
Gets or sets a value indicating whether the drop down part of the control is opened.
IsEditable
Gets or sets a value indicating whether the ComboBox allows direct text input and editing. When true, users can type text directly into the control to search and filter items. When false, users can only select from the dropdown list.
IsFilteringEnabled
Gets or sets a value indicating whether filtering of dropdown items is enabled when the user types in the ComboBox. When true and IsEditable is also true, the dropdown list will be filtered based on user input.
IsSpellCheckEnabled
Gets or sets a value that controls whether spell checking is enabled.
ItemTemplate
Gets or sets the template used to display each item in the dropdown list. This template defines how individual data items are rendered when the dropdown is open.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
ItemsSource
Gets or sets the collection of data items that populate the ComboBox dropdown list. This can be any object that implements IEnumerable, such as a list, array, or observable collection.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
KeyDownCommand
Gets or sets the command that is invoked when a key is pressed. The parameter of this command is of type KeyboardInfo.
Keyboard
Gets or sets the keyboard type of the entry part of the control.
Declaration
public Keyboard Keyboard { get; set; }
Property Value
Keyboard
NoResultsMessage
Gets or sets the message text displayed when no items match the current filter criteria. This provides a simple text alternative to NoResultsTemplate for informing users about empty search results.
NoResultsTemplate
Gets or sets the template displayed when no items match the current filter criteria. This provides a customizable way to inform users that their search didn't return any results.
Declaration
public DataTemplate NoResultsTemplate { get; set; }
Property Value
DataTemplate
OpenOnFocus
Gets or sets a value indicating whether the dropdown should automatically open when the ComboBox receives focus. This property only applies when IsEditable is set to true.
Placeholder
Gets or sets the placeholder text displayed when the ComboBox is empty and not focused. This provides guidance to users about what they should enter or select.
PlaceholderColor
Gets or sets the color of the placeholder text displayed when the ComboBox is empty. This allows customization of the placeholder text appearance to match your application's theme.
Declaration
public Color PlaceholderColor { get; set; }
Property Value
Color
RemoveTokenCommand
Gets or sets the command that removes individual selection tokens when SelectionMode is set to Multiple. This command is typically executed when users click the remove button on individual tokens. The parameter of this command is a selected business item, i.e. an item from the SelectedItems.
Declaration
public ICommand RemoveTokenCommand { get; set; }
Property Value
SearchMode
Gets or sets the search criteria mode used when filtering items in the dropdown. This determines how the user's input text is matched against the items (starts with, contains, case-sensitive options).
SearchText
Gets the current search text entered by the user when IsEditable is true. This property reflects the text used for filtering and searching within the dropdown items.
Declaration
[Browsable(false)]
public string SearchText { get; }
Property Value
SearchTextPath
Gets or sets the property path used to determine which property of the data object should be used for searching and filtering. Use "." to search against the object itself, or specify a property name like "Name" to search against a specific property.
SelectAllCommand
Gets the command that selects all available items from the ItemsSource when SelectionMode is set to Multiple. This read-only command is automatically created and can be used to provide "select all" functionality.
SelectedIndex
Gets or sets the zero-based index of the currently selected item in the ItemsSource. When SelectionMode is Single, this represents the selected item's index. When Multiple, this represents the first selected item's index or -1 if no items are selected.
SelectedItem
Gets or sets the currently selected item from the ItemsSource. When SelectionMode is Single, this represents the selected item. When Multiple, this represents the first selected item or null if no items are selected.
SelectedItemTemplate
Gets or sets the template used to display selected items when they appear in the dropdown list. This template is typically used to provide visual indication that an item is selected, often through different styling or checkmarks.
Declaration
public DataTemplate SelectedItemTemplate { get; set; }
Property Value
DataTemplate
SelectedItems
Gets the collection of all currently selected items from the ItemsSource. This collection is automatically maintained and reflects the current selection state. It's particularly useful when SelectionMode is set to Multiple.
Declaration
public ObservableCollection<object> SelectedItems { get; }
Property Value
SelectionBoxTemplate
Gets or sets the template used to display the selected item in the selection box when the ComboBox is not editable. This template is only used when IsEditable is set to false and defines how the selected item appears in the collapsed state.
Declaration
public DataTemplate SelectionBoxTemplate { get; set; }
Property Value
DataTemplate
SelectionMode
Gets or sets the selection mode that determines how users can select items from the dropdown. Use Single for single-item selection or Multiple to allow selection of multiple items with tokens.
Declaration
public ComboBoxSelectionMode SelectionMode { get; set; }
Property Value
ShowMoreTemplate
Gets or sets the template used to display the "show more" indicator when there are more selected tokens than can be displayed in the available space. This template appears when multiple items are selected and the ComboBox is not focused, providing a way to indicate additional selections.
Declaration
public DataTemplate ShowMoreTemplate { get; set; }
Property Value
DataTemplate
Style
Gets or sets the Style of the control.
Declaration
public Style Style { get; set; }
Property Value
Style
Text
Gets or sets the text content displayed in the ComboBox. When IsEditable is true, this represents the user-entered text. When false, this displays the text representation of the selected item.
TextColor
Gets or sets the TextColor of the component.
Declaration
public Color TextColor { get; set; }
Property Value
Color
The Color.
TextInputStyle
Gets or sets the style of the inner RadTextInput.
Declaration
public Style TextInputStyle { get; set; }
Property Value
Style
TokenTemplate
Gets or sets the template used to display individual selection tokens when SelectionMode is set to Multiple. Each selected item is represented as a token that can be styled and customized through this template.
Declaration
public DataTemplate TokenTemplate { get; set; }
Property Value
DataTemplate
Methods
OnApplyTemplate()
Called when the control template is applied.
Declaration
protected override void OnApplyTemplate()
OnHandlerChanged()
Called when the handler for this view is changed.
Declaration
protected override void OnHandlerChanged()
Overrides
OnPropertyChanged(string)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
The name of the property that changed.
Events
Completed
Occurs when the user completes text entry by pressing the Enter key or the Done button on the keyboard. This event is typically used to trigger actions when the user finishes input in editable mode.
SelectionChanged
Occurs when the selection state changes, providing information about items that were added to or removed from the selection. This event is raised for both single and multiple selection scenarios.
Declaration
public event EventHandler<ComboBoxSelectionChangedEventArgs> SelectionChanged
Event Value