ComboBox Header and Footer
You can easily add Header and Footer to the Drop Down list of the ComboBox control through the following propertes:
- HeaderTemplate(DataTemplate): Defines the template of the header that will be visualized in the drop down list.
- FooterTemplate(DataTemplate): Defines the template of the footer that will be visualized in the drop down list.
It is not recommended to add controls in the Header and Footer which steal the focus (like Entry, editor, etc.) from the ComboBox control, as unexpected behavior may occur.
Example
Here is the ComboBox definition in XAML:
the sample business model
and the ViewModel used:
This is how the Header and Footer Templates look:
Header and Footer Template example can be found in our SDK Browser Application. You can find the applications in the Examples folder of your local Telerik UI for Xamarin installation or in the following GitHub repo.