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

    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