We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Override text selection color for SfComboBox, SfNumericTextBox and SfNumericUpDown

Thread ID:





117181 Aug 28,2014 09:27 PM UTC Sep 2,2014 12:39 PM UTC WinRT 6
Tags: SfComboBox
Asked On August 28, 2014 09:27 PM UTC


I´m actually overriding the text selection color for textbox controls in my app with the below line in my app resources

    <SolidColorBrush x:Key="TextSelectionHighlightColorThemeBrush" Color="Red"/>

But it doesn't have an effect in Syncfusion controls like SfComboBox, SfNumericTextBox, or SfNumericUpDown. I have noticed for example that I can override another colors in SfComboBox in a similar way:

<SolidColorBrush x:Key="ComboBoxSelectedPointerOverBackgroundThemeBrush" Color="Red" />
<SolidColorBrush x:Key="ComboBoxSelectedBackgroundThemeBrush" Color="Blue"/>
<SolidColorBrush x:Key="ComboBoxItemSelectedBackgroundThemeBrush" Color="Blue" />
<SolidColorBrush x:Key="ComboBoxItemSelectedPointerOverBackgroundThemeBrush" Color="Red" />

So, my question is How can I override the text selection color in Syncfusion controls?

Thank you.

Replied On August 29, 2014 12:04 AM UTC

I have overriden the selection color in SfNumericTextBox, SfNumericUpDown and other controls by setting SelectionHighlightColor property, but I still haven't done it in SfComboBox. Is there any way to change that color in this control?

Thank you.

Vignesh V [Syncfusion]
Replied On August 29, 2014 06:33 AM UTC

Hi Chelo,

We have prepared a sample that tries to meet your requirement 'Overriding SelectionColor for SfComboBox'. In the sample we have overriden ThemeBrush in App.xaml.

Please find the sample in below link.

Please let us know if you need any further assistance on this.

Vignesh V

Replied On August 29, 2014 05:47 PM UTC

Thank you for your answer,

I already did what you show me in the sample, but what I need to do is to set the selection color of the text in the SfComboBox, I mean when you set the combobox mode to editable, you can type on it and select the text, so I need to change that selection color.

I attached an image to explain it better.

Thank you!

Attachment: SfComboBox_bc7808d5.rar

Vignesh V [Syncfusion]
Replied On August 30, 2014 06:14 AM UTC

Hi Chelo,

Sorry about the inconvenience caused.

We have modified the sample by editing SfComboBox style and added 'SelectionHighlightColor' property to its TextBox mode. Now, by overriding the 'TextSelectionHighlightColorThemeBrush' in App.xaml, will change Combobox text SelectionColor. Please find the modified sample in following link.

Please let us know if you need any further assistance on this.

Vignesh V

Replied On September 1, 2014 08:13 PM UTC

The last sample worked for me. 

If it´s possible, I would like you add the 'SelectionHighlightColor' property to the TextBox in SfComboBox in a future release to make it easier to set that color without modifying the control template.

Thank you.

Vignesh V [Syncfusion]
Replied On September 2, 2014 12:39 PM UTC

Hi Chelo,

We have logged bug report based on your requirement and fix will be available in our next release. We request you to visit our website periodically for updates regarding releases.

Please let us know if you have any queries.

Vignesh V


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon