Problem with SfComboBox's placeholder gray color in dark mode

Hello team,

I have a problem with SfComboBox's placeholder in dark mode: on which is setting as gray color.

SfComboBox version : 24.1.41

Xaml:

<combobox:SfComboBox

    Grid.Row="0"

    Grid.Column="2"

    Grid.ColumnSpan="4"

    IsClearButtonVisible="False"

    IsDropDownOpen="{Binding AAA, Mode=TwoWay}"

    Placeholder="select AAA"

    PlaceholderColor="Gray"

    TextColor="Black" >

</combobox:SfComboBox>


Display as following

・Android : display nothing or showing as white color in dark mode : on

・IOS : showing with gray color in both dark mode : on and dark mode :  off


I want to show placeholder text as a gray color in both dark mode : on and dark mode :  off

It has no problem in xamarin framework.

Could you please check my problem.


Best and regards.

Image_2654_1712739420824


Attachment: sample_code_3c30a2ba.zip


10 Replies

KP Kamalesh Periyasamy Syncfusion Team April 15, 2024 02:35 PM UTC

Hi  kyawwin,


Currently, we are in the process of validating the reported query at our end and will share further details regarding this issue on April 16, 2024. We appreciate your patience until then.


Regards,

Kamalesh P



AJ AhamedAliNishad JahirHussain Syncfusion Team April 16, 2024 02:07 PM UTC

Hi kyawwin,


Query : Problem with SfComboBox's placeholder gray color in dark mode


We have fixed the reported issue "Problem with SfComboBox's placeholder gray color in dark mode" . At present, a custom patch has been created for version 24.1.41. We have attached the NuGet file for your convenience.


Please note that we have created this patch for version 24.1.41 specifically to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.


Please clear the NuGet cache, before using the latest one and please refer to the below link for this

How to clear NuGet cache?


Please refer the below KB to install the custom NuGet on a local machine,

How to install the MAUI custom NuGet in the Windows machine?

 

Root cause/Solution


We have incorporated an Entry as children of the SfComboBox class. Initially, the default color value for the placeholder did not map with the PlaceHolderColor property of the Entry. Previously, the placeholder color's default value was set to Gray, and you also initialized it with the same Gray value. Because the color values matched, this did not trigger a property change event to map the value.


To resolve this issue, we have now updated the default PlaceholderColor value of the SfComboBox to null.


Regards,

Ahamed Ali Nishad.


Attachment: Syncfusion.Maui.Core.24.1.41_f2eb8941.zip


KY kyawwin April 19, 2024 05:20 AM UTC

Hi AhamedAliNishad JahirHussain,

Thanks for creating custom patch for my issue.
Actually I have another problem with 
Syncfusion.Maui.Core.24.1.41 .

Another issue is as follows
https://www.syncfusion.com/forums/187045/sfcombobox-characters-that-cannot-fit-inside-the-area-when-selecting-an-item-with-very-long

If I used this patch,will I  convenience with both of my problems?



If this patch can't resolve both of my problems,I want to request another custom patch of  Syncfusion.Maui.Core.24.1.41 which can  convenience with both of my issues.

Regards

Kyaw Win






AJ AhamedAliNishad JahirHussain Syncfusion Team April 22, 2024 02:07 PM UTC

Hi kyawwin,

 

We have reviewed your query, and we would like to inform you that the provided custom NuGet package resolves both issues. Please test it on your side and let us know the details.

 

Regards,

Ahamed Ali Nishad.



KY kyawwin May 10, 2024 09:13 AM UTC

Hi syncfusion team,

Special thanks for your supports and creation custom patch 24.1.41 which can be convenient with Microsoft.Maui.Controls package of version 8.0.3.

I have another problem with sfcombobox.


When running sfcombobox in small devices like iphone se or iphone 7,

combobox item list is showing above and cannot select above items like index0,1,2.

As my capture, index[0,1,2] are not showing  and can not select.

Can I show combobox items list direction always to below?[Or]

How can I select index[0,1,2],When combobox item list is showing above.

combobox items are like that

index0 = IIIII (not showing)

index1 = HHHHH (not showing)

index2 = GGGGG (not showing)

index3 = FFFFF(not showing)

index4 = EEEEE(not showing)

index5 = DDDDD

index6 = CCCCC

index7 = BBBBB

index8 = AAAAA


<combobox:SfComboBox

    Padding="0,0,0,0"

    IsClearButtonVisible="False"

    IsDropDownOpen="{Binding AAA, Mode=TwoWay}"

    ItemsSource="{Binding BindingEntity.BBB, Mode=TwoWay}"

    MaxDropDownHeight="400" >







PI Prithis Iyyappan Syncfusion Team May 13, 2024 06:50 AM UTC

Hi Kyawwin,

 

We have investigated your query based on the provided information. We suspect the issue is due to the MaxDropDownHeight. By default the value of MaxDropDownHeight is 400, So the Dropdown gets cropped in some devices which leads to the Misbehavior. To resolve this issue, we suggest that you set the MaxDropDownHeight to lower values such as 200 or less, according to your requirement.

 

Please let us know whether this suggestion has resolved your issue. Please do not hesitate to contact us if you have any concerns or queries.

 

Regards,

Prithis I



KY kyawwin May 14, 2024 07:16 AM UTC

Hi team,

Thanks for your patience.

I want to know specific informations with this custom patch that you created for me.

Are there any other issues fixed in this patch?


In the other hand ,the same custom patch have been given in my another question.

So,I want to know more informations with this custom issue 
because I don’t want to effect other source of my project.

https://www.syncfusion.com/forums/187045/sfcombobox-characters-that-cannot-fit-inside-the-area-when-selecting-an-item-with-very-long

Thanks in advance for the help.

Regards,
Kyaw Win



PI Prithis Iyyappan Syncfusion Team May 15, 2024 03:57 PM UTC

Hi Kyawwin,

 

The Patch for this issue "Problem with SfComboBox's placeholder gray color in dark mode" also consists of the fix provided for the issue "On iOS: SfComboBox characters that cannot fit inside the area when selecting an item with very long characters". So the provided patch will resolve both of your issues.

 

Please do not hesitate to contact us if you have any concerns or queries.

 

Regards,

Prithis I



KY kyawwin May 17, 2024 02:28 AM UTC

Hi  Prithis Iyyappan,

Thanks for your answer.

I wanna know more detail informations with this custom patch.

Are there any other issues have been fixed in this custom patch?  Or

This custom patch was fixed for only two issues that I mention below.

●Issue 1
https://www.syncfusion.com/forums/187045/sfcombobox-characters-that-cannot-fit-inside-the-area-when-selecting-an-item-with-very-long
●Issue 2
https://www.syncfusion.com/forums/187788/problem-with-sfcomboboxs-placeholder-gray-color-in-dark-mode?reply=z9vpwv

Regards,

Kyaw Win






PI Prithis Iyyappan Syncfusion Team May 17, 2024 09:25 AM UTC

Hi Kyawwin,

 

The shared patch contains fixes for the issues mentioned below and no other fixes are included with it.

 

 

Please do not hesitate to contact us if you have any concerns or queries.

 

Regards,

Prithis I


Loader.
Up arrow icon