0
Lets say
Color color = Color.Blue; // Set this as Global.
Whenever the color is changed, set the color in the Global value (color). When the user reset, clear it or rest the color
0
good morning
thank you for information mr. Sundaram Subramanian .
can you tell me how I keep the color value in a Global Variable ?? can I use another way for solve this topic??
with regards

0
Keep the color value in a Global Variable, until the user reset.
0
Thank you very much for your replies
For the first code sent by Mr. Dinesh Gabhane
I applied it but my exact problem is not just how to color the item during the presentation ,
But I want the element previously selected to change the default color to red color, for example, until the user presses a button to restore the previous settings
This code color element after selected during the show only, but when you open the combo box again note that the color back to the previous color .. Is there a way to solve this topic

???
------------------------------------------------------------------------------------------
As for Mr. Mark Tabor's code, I honestly don't use XAML codes

With Regards
0
In the simplest case you can write this in XAML:
<ComboBox ItemsSource="{Binding DropDowmItems}" Foreground="Red"> <ComboBox.ItemContainerStyle> <Style TargetType="{x:Type ComboBoxItem}"> <Setter Property="Foreground" Value="Black"/> </Style> </ComboBox.ItemContainerStyle> </ComboBox>
I am not sure are you using WPF or normal windows or web forms