MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfComboBox

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    SfView
    SfDropdownEntry
    DropDownListBase
    SfComboBox
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    DropDownListBase.ItemsSourceProperty
    DropDownListBase.ItemTemplateProperty
    DropDownListBase.DisplayMemberPathProperty
    DropDownListBase.TextMemberPathProperty
    DropDownListBase.SelectedValuePathProperty
    DropDownListBase.SelectedValueProperty
    DropDownListBase.SelectedItemProperty
    DropDownListBase.TextProperty
    DropDownListBase.OnPropertyChanged(String)
    DropDownListBase.Text
    DropDownListBase.ItemsSource
    DropDownListBase.ItemTemplate
    DropDownListBase.DisplayMemberPath
    DropDownListBase.TextMemberPath
    DropDownListBase.SelectedValuePath
    DropDownListBase.SelectedValue
    DropDownListBase.SelectedItem
    DropDownListBase.SelectionChanged
    DropDownListBase.Completed
    SfDropdownEntry.IsDropDownOpenProperty
    SfDropdownEntry.PlaceholderProperty
    SfDropdownEntry.PlaceholderColorProperty
    SfDropdownEntry.ClearButtonIconColorProperty
    SfDropdownEntry.StrokeProperty
    SfDropdownEntry.IsClearButtonVisibleProperty
    SfDropdownEntry.MaxDropDownHeightProperty
    SfDropdownEntry.FontSizeProperty
    SfDropdownEntry.FontFamilyProperty
    SfDropdownEntry.FontAttributesProperty
    SfDropdownEntry.TextColorProperty
    SfDropdownEntry.OnFontChanged(Font, Font)
    SfDropdownEntry.Focus()
    SfDropdownEntry.Unfocus()
    SfDropdownEntry.ArrangeContent(Rect)
    SfDropdownEntry.MeasureContent(Double, Double)
    SfDropdownEntry.OnDraw(ICanvas, RectF)
    SfDropdownEntry.OnDropdownOpening()
    SfDropdownEntry.IsClearButtonVisible
    SfDropdownEntry.Placeholder
    SfDropdownEntry.PlaceholderColor
    SfDropdownEntry.ClearButtonIconColor
    SfDropdownEntry.MaxDropDownHeight
    SfDropdownEntry.IsDropDownOpen
    SfDropdownEntry.Stroke
    SfDropdownEntry.FontSize
    SfDropdownEntry.FontAttributes
    SfDropdownEntry.FontFamily
    SfDropdownEntry.TextColor
    SfView.OnBindingContextChanged()
    SfView.MeasureOverride(Double, Double)
    SfView.ArrangeOverride(Rect)
    SfView.OnMeasure(Double, Double)
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.Children
    SfView.ClipToBounds
    SfView.Padding
    SfView.IDrawableLayout.DrawingOrder
    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 false.

    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 -1, which indicates that no item is selected.

    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()
    Overrides
    DropDownListBase.OnHandlerChanged()

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved