diff --git a/README.md b/README.md index 26a0355..248e322 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ # How-to-add-Header-and-Footer-support-in-DOTNET-MAUI-ComboBox This repository contains a sample demonstrating of Header and Footer support in .NET MAUI ComboBox. + +## Header and Footer support in .NET MAUI ComboBox (SfComboBox) + + +You can provide header and footer views in the dropdown in SfComboBox by enabling the ShowDropDownHeaderView and the ShowDropDownFooterView properties. + +## Header content +You can provide content for header at the top of the ComboBox’s dropdown. The DropDownHeaderView property is used to set the content of the header. The height of the header in the SfComboBox can be adjusted using the DropDownHeaderViewHeight property. + +**XAML** + +``` + + + + + + + + +``` + +## Footer content +You can provide content for footer at the bottom of the ComboBox’s dropdown. The DropDownFooterView property is used to set the content for footer. The height of the footer in the SfComboBox can be adjusted using the DropDownFooterViewHeight property. + +The following code example shows how to set footer content in SfComboBox. + +**XAML** +``` + + + + + + + + +``` \ No newline at end of file