Migrating from Xamarin SfComboBox to .NET MAUI SfComboBox
21 Jun 20241 minute to read
To migrate easier from Xamarin SfComboBox to .NET MAUI SfComboBox, we kept most of the APIs from Xamarin SfComboBox in MAUI SfComboBox. However, to maintain the consistency of API naming in MAUI SfComboBox, we renamed some of the APIs. The APIs that have been changed in MAUI SfComboBox from Xamarin SfComboBox are detailed as follows.
Namespaces
Xamarin SfComboBox | .NET MAUI SfComboBox |
---|---|
Syncfusion.XForms.ComboBox | Syncfusion.Maui.Inputs |
Properties
Xamarin SfComboBox | .NET MAUI SfComboBox | Description |
---|---|---|
Gets or sets whether the textbox can support editing. | ||
Gets or sets the place holder text. | ||
Gets or sets the color of the place holder text. | ||
Gets or sets the color of the clear button. | ||
Gets or sets whether to show the clear button. | ||
Gets or sets the maximum dropdown height. | ||
|
Gets or sets the search mode of the control. The enum values are "StartsWith" and "Contains". When using StartsWith, the ComboBoxMode will be set to Append. When using Contains, the ComboBoxMode will be set to Suggest. |
|
, , |
Gets or sets the data to be populated in the control. | |
Gets or sets a string as delimiter which is displayed between the selected items in multiple selection mode. | ||
,
, , |
Gets or sets the DataTemplate used to display in the dropdown when no results are found in the search. |
Enums
Enum | Xamarin SfComboBox | .NET MAUI SfComboBox | Description |
---|---|---|---|
Xamarin -
.NET MAUI - |
, , , , , , , , |
, . |
Gets or sets the search mode of the control. |
Xamarin -
.NET MAUI - |
,
, , |
,
, , |
Gets or sets the position of the drop-down. |
Xamarin -
.NET MAUI - |
,
, |
,
|
Gets or sets the multi selection mode for the SfComboBox control. |
Events
Event Name | Xamarin SfComboBox | .NET MAUI SfComboBox | Description |
---|---|---|---|
|
|
Raises when an item is selected in the dropdown or the SelectedItem is set programmatically.Returns the previous selected item and the currently selected item |
Upcoming features
- Diacritic Sensitivity