Tritium UI
TritiumComboBox
Pick one item from a list, with an optional clear button and a display property.
Key features
- Bind ItemsSource and SelectedItem two-way.
- Show a property of each object with DisplayMemberPath, or the object's text.
- Offer a Clear button, or hide it when a value is required.
- Opt in to haptic or sound feedback when the selection changes.
- Use it as the enum editor that DataForm generates.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- ItemsSource . The list of choices.
- SelectedItem . The current choice, two-way.
- DisplayMemberPath . Property name to show for each object.
- IsClearable . Shows a Clear button that sets SelectedItem to null.
Basic example
Declare this namespace on the page.
xmlns:editors="clr-namespace:Tritium.Maui.Editors;assembly=Tritium.Maui.Editors"
<editors:TritiumComboBox ItemsSource="{Binding Statuses}"
SelectedItem="{Binding Status}"
DisplayMemberPath="Name"
IsClearable="True" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.