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.
Unfortunately, activation email could not send to your email. Please try again.

ComboboxAdv - Change Background when I want select item and when I clicked on ComboBoxAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

125423 Aug 16,2016 08:24 AM Aug 19,2016 02:09 AM WPF 5
loading
Tags: ComboBoxAdv
Konrad
Asked On August 16, 2016 08:24 AM

Hi, I'm Konrad and I heave a problem.

I want change background color when I clicked on ComboBoxAdv (MouseOver is true) and when  I want select item (color of the selected item)

This is image which shows the my problem : https://zapodaj.net/images/aaedc7ec891e8.jpg


<a rel='nofollow' href=https://zapodaj.net/images/aaedc7ec891e8.jpg</a>



Thx for help :)


Keerthana Jegannathan [Syncfusion]
Replied On August 17, 2016 09:11 AM

 
Hi Konrad, 
 
Thank you for contacting syncfusion support. 
 
We have prepared sample to change the Selected item color on MouseOver. In this sample we have override the Metro style in App.Xaml file and change the color in MouseOver and it can be downloaded from the below location. 
 
 
 
Please let us know whether it is helpful. 
 
Regards, 
Keerthana J 


Konrad
Replied On August 17, 2016 01:20 PM

This is a great answer, thank you very much.

But in this example, I have three problems more.



1. I do not know how to change the color of the arrows from blue to gray when I clicked on ComboBox.

2. How to change color from blue to red, for example, when I clicked on the item.

3. Where is defined gray color (when I clicked on ComboBox)


If I am too inquisitive, I sorry but I'm just starting "to play" with editing basic styles :)

By the way: Syncfusion it is a very interesting tool :)

Keerthana Jegannathan [Syncfusion]
Replied On August 18, 2016 06:28 AM

Hi Konrad,   
  
Thank you for your compliment.  
   
Query 1: 1. I do not know how to change the color of the arrows from blue to gray when I clicked on ComboBox.   
   
The arrow background can be changed in ComboBox style for ToggleButton, where we have written the trigger condition when “IsChecked” property gets “True”.   
   
Query 2: How to change color from blue to red, for example, when I clicked on the item.   
   
For this requirement, you can change the border(named “Bd”) under ComboBoxItemAdv style, where “IsPressed” property is triggered to “True”   
  
Query 3: Where is defined gray color (when I clicked on ComboBox)   
   
You can use “IsMouseOver” property in the Trigger condition of the ToggleButton style to change the color of ComboBox when hovering the mouse. In ToggleButton, ComboBoxAdv color is defined based on the target name “chrome1”.   
   
   
We have prepared sample, in which we have changed the MouseOver, Selected color of ComboBoxAdv and its items. Please download it from the below location.   
   
   
Please let us know, whether it helps you.   
   
Regards,   
Keerthana J   


Konrad
Replied On August 18, 2016 11:47 AM

Great!

Now I've got what I needed. I don't expect the sample project and I am pleasantly surprised. I appreciate it.

Thank you again :)

Keerthana Jegannathan [Syncfusion]
Replied On August 19, 2016 02:09 AM

Hi Konrad, 
 
Thank you for your appreciation.
 
We are glad that your requirement was met. Please let us know if you need any other assistance. 
 
Regards, 
Keerthana J 


CONFIRMATION

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.

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.

;