githubEdit

ComboBox

Introduction

The ComboBox control provides a compact way for users to select from a list of options.

Code Example: Adding a ComboBox

var comboBox = new ComboBox();
comboBox.AddToRoot();
for(int i = 0; i < 10; i++)
{
    comboBox.Items.Add($"Item {i}");
}
ComboBox displaying a list of items

Adjusting the Drop-Down ListBox

ComboBox provides a ListBox property which can be used to customize the ListBox instance.

This can be modified, even if it hasn't yet been shown. The following code shows how to modify the default size of the ListBox:

ComboBox ListBox with custom Height

Last updated

Was this helpful?