Class SfComboBox
The combobox is a textbox component that allows users to type a value or choose an option from the list of predefined options.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Inputs
Assembly: Syncfusion.Maui.Inputs.dll
Syntax
public class SfComboBox : DropDownListBase, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, IVisualTreeElement, ITouchListener, ITextElement, IKeyboardListener
Constructors
SfComboBox()
Initializes a new instance of the SfComboBox class.
Declaration
public SfComboBox()
Fields
DropDownIconColorProperty
Identifies DropDownIconColor bindable property.
Declaration
public static readonly BindableProperty DropDownIconColorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the DropDownIconColor bindable property. |
IsDropdownButtonVisibleProperty
Identifies IsDropdownButtonVisible bindable property.
Declaration
public static readonly BindableProperty IsDropdownButtonVisibleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the IsDropdownButtonVisible bindable property. |
IsEditableProperty
Identifies IsEditable bindable property.
Declaration
public static readonly BindableProperty IsEditableProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the IsEditable bindable property. |
SelectedIndexProperty
Identifies SelectedIndex bindable property.
Declaration
public static readonly BindableProperty SelectedIndexProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the SelectedIndex bindable property. |
TextSearchModeProperty
Identifies TextSearchMode bindable property.
Declaration
public static readonly BindableProperty TextSearchModeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TextSearchMode bindable property. |
Properties
DropDownIconColor
Gets or sets the value of DropDownIconColor of the control.This property can be used to customize the dropdown icon color.
Declaration
public Color DropDownIconColor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Graphics.Color | Specifies the dropdown icon color.The default value is Microsoft.Maui.Graphics.Colors.Black |
IsDropdownButtonVisible
Gets or sets the value for the IsDropdownButtonVisible.
Declaration
public bool IsDropdownButtonVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Specifies the dropdown button visible for SfComboBox. The default value is false. |
IsEditable
Gets or sets a value that indicates whether the user can edit text in the text box portion of the SfComboBox.
Declaration
public bool IsEditable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Remarks
true if the user can edit text in the SfComboBox, otherwise false.
SelectedIndex
Gets or sets the index of the selected item.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The index of the selected item. The default value is |
TextSearchMode
Gets or sets the value of TextSearchMode of the control.This property can be used to set the text search mode.
Declaration
public ComboBoxTextSearchMode TextSearchMode { get; set; }
Property Value
Type | Description |
---|---|
ComboBoxTextSearchMode | Specifies the text search mode.The default value is StartsWith |
Methods
OnHandlerChanged()
Handler changed event.
Declaration
protected override void OnHandlerChanged()