Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / ComboBox Class
Members Example


In This Topic
    ComboBox Class
    In This Topic
    The ComboBox uses a small unintrusive Popup which displays, either horizontally or vertically, a list of items amongst which the user can make a single selection.
    Object Model
    ComboBox ClassICustomFilterAction Interface
    Syntax
    'Usage
     
    
    Dim instance As ComboBox
    Remarks
    Xceed's ComboBox offers more flexibility than the Framework's Picker control, since, for example, it offers an editable TextBox, allows to filter data by using either multiple predefined filters or a custom filter, can display items based on a custom ItemTemplate & allows to use other things than Text as a Watermark.
    Example

    The following code would display this control: 

    <xctk:ComboBox WidthRequest="125"
                   TextColor="Blue"
      <x:Array Type="{x:Type x:String}">
        <x:String>Montreal</x:String>
        <x:String>New York</x:String>
        <x:String>Sidney</x:String>
        <x:String>Tokyo</x:String>
        <x:String>Lima</x:String>
      </x:Array>
    </xctk:ComboBox>
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          Microsoft.Maui.Controls.Element
             Microsoft.Maui.Controls.NavigableElement
                Microsoft.Maui.Controls.VisualElement
                   Microsoft.Maui.Controls.View
                      Microsoft.Maui.Controls.Compatibility.Layout
                         Microsoft.Maui.Controls.TemplatedView
                            Xceed.Maui.Toolkit.Control
                               Xceed.Maui.Toolkit.ComboBox

    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Fields
    Protected Fields
     NameDescription
    Protected Field (Inherited from Microsoft.Maui.Controls.View)
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public PropertyGets or sets the Brush that will be used to paint the Control's background. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public PropertyGets or sets the Brush that will be used to paint the Control's Border. (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the thickness of this Control's Border. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Public PropertyGets or sets the radius for the 4 corners of this Control.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets a custom filter that will filter the ItemsSource while text is being typed in the ComboBox.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public PropertyGets or sets a path pointing to a value within the source object in order to provide a visual representation of said object.   
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public PropertyGets or sets a path pointing to a value within the source object which will be used to filter the text entered in the ComboBox.   
    Public PropertyGets or sets the type of filter that will be used to filter the ItemsSource as the user types in the ComboBox.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets the FontAttributes that will be applied to the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the font family that will be used to display the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the font size that will determine the scale of the Control's textual Content.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets how the Control's Content is aligned horizontally. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public PropertyGets or sets if the ComboBox's Popup is opened or closed.  
    Public PropertyGets or sets if the ComboBox offers an editable TextBox when the Popup is opened.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets if the ComboBox's items will be displayed as a vertical or horizontal list.  
    Public PropertyGets or sets the items that will be listed in the ComboBox.   
    Public PropertyGets or sets the DataTemplate that will be used to display the items appearing in the ComboBox's Popup.  
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public PropertyGets or sets the maximum Height for the ComboBox's Popup.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets if the Control's VisualStates are overridden or not. (Inherited from Xceed.Maui.Toolkit.Control)
    Public PropertyGets or sets the amount of padding added around the Control.  (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets the index associated with the currently selected item.  
    Public PropertyGets or sets which item is selected in the ComboBox.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Public Property (Inherited from Microsoft.Maui.Controls.Element)
    Public PropertyGets or sets the text's Color. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets how the Control's Content is aligned vertically. (Inherited from Xceed.Maui.Toolkit.Control)
    Public Property (Inherited from Microsoft.Maui.Controls.View)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public PropertyGets or sets the watermark that will be displayed when no item is selected in the ComboBox.  
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Property (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Protected Properties
    Public Methods
     NameDescription
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.View)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Public Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.Element)
    Public MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Protected Methods
     NameDescription
    Protected Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Internal Method (Inherited from Microsoft.Maui.Controls.View)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Internal Method (Inherited from Microsoft.Maui.Controls.View)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.View)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected MethodOverloaded.  (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method  
    Protected MethodOverridden.   
    Protected MethodOverridden.   
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method  
    Protected Method  
    Protected Method  
    Protected Method (Inherited from Microsoft.Maui.Controls.TemplatedView)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.Element)
    Protected Method (Inherited from Microsoft.Maui.Controls.NavigableElement)
    Protected Method (Inherited from Xceed.Maui.Toolkit.Control)
    Protected Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Protected Method  
    Protected Method  
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected MethodOverridden.   
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Protected Method (Inherited from Microsoft.Maui.Controls.VisualElement)
    Protected Method (Inherited from Microsoft.Maui.Controls.BindableObject)
    Protected Method (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Top
    Public Events
     NameDescription
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public EventThis event is raised when the ComboBox's Popup is closed.  
    Public EventThis event is raised when the ComboBox's Popup is opened.  
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Compatibility.Layout)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.Element)
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public Event (Inherited from Microsoft.Maui.Controls.BindableObject)
    Public EventThis event is raised when a new item is selected in the ComboBox.  
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Public Event (Inherited from Microsoft.Maui.Controls.VisualElement)
    Top
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also