### Set Item Color

To set the color of the item hovered and the item selected,
• create a stylesheet in the dirasset folder
• add to the Form stylesheets
Example
Stylesheet main.css located in the dirasset folder
// Hovered item has blue background with white bold text
.combo-box-popup .list-view .list-cell:hover {
-fx-text-fill: white;
-fx-background-color: blue;
-fx-font-weight: bold;
}
// Selected item is blue bold
.combo-box .cell:selected {
-fx-text-fill: blue;
-fx-font-weight: bold;
}
Add the Stylesheet to the MainForm
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "Main.css"))

Changed: , Category: ComboBox, File: T6C175M1273.htm, ID: 1273