How to change font family & font size of the drop down list of the combo box?

Hello, I was trying to change font family & font size of the drop down list of the combo box, but couldn't manage it. Could you please help? Thank you.


1 Reply

AJ AhamedAliNishad JahirHussain Syncfusion Team February 2, 2024 12:31 PM UTC

Hi Josh,


Query: How to change font family & font size of the drop-down list of the combo box?


SfComboBox DropDown Item FontSize


We have reviewed your query and Currently, we don't have direct API support for customizing the SfComboBox drop-down FontSize. As of now, we suggest utilizing the below-mentioned theme key in the Resource Dictionary to customize the font size of the dropdown item.


Please refer to the following code snippet for customization of the SfComboBox drop-down FontSize.


Additionally, we have attached a sample for your reference. Please review it and let us know the details.


Code Snippet :


Mainpage.xaml   

 

<ContentPage.Resources>

        <ResourceDictionary>

            <ResourceDictionary.MergedDictionaries>

                <themes:SfComboBoxStyles></themes:SfComboBoxStyles>

                <ResourceDictionary>

                    <x:String x:Key="SfComboBoxTheme">CommonTheme</x:String>

                    <x:Double x:Key="SfComboBoxNormalDropdownItemsFontSize">22</x:Double>

                </ResourceDictionary>

            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>

    </ContentPage.Resources>


SfComboBox DropDown Item FontFamily


Currently, We don't have support for customizing the SfComboBox drop-down Font family. We have already created a feature request to "Provide API support for dropdown font size and fontfamily in SfComboBox ". Please find the link below to track the status of the feature implementation.


Feedback link: Provide BackgroundColor and TextColor support for Dropdown in .NET MAUI SfComboBox in .NET MAUI | Feedback Portal (syncfusion.com)


Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we have committed to already planned work. So, this feature will be available in any of our upcoming releases.


If you have any more specifications/suggestions for the feature request, you can add them as a comment in the portal. We will share the release details in the feedback itself.


Furthermore, please refer to the below Knowledge Base articles for guidance on customizing the appearance of the SfComboBox drop-down using theme keys


KB links:

https://support.syncfusion.com/kb/article/13750/how-to-customize-the-dropdownbackground-and-dropdowntextcolor-in-maui-sfcombobox


https://support.syncfusion.com/kb/article/14361/how-to-customize-the-appearance-of-the-sfcombobox-dropdown



Regards,

Ahamed Ali Nishad.




Attachment: SfComboDropDownFontSize_d28f72c7.zip

Loader.
Up arrow icon