### Set Item selected Color

To change the color of the selected item in a Listview, an option is to set via a CSS Style sheet.
Reference: http://docs.oracle.com/javafx/2/api/javafx/scene/control/Cell.html
Create an external CSS Style sheet main.css in the Project Files Folder (DirAssets)
// Content Example with Yellow Background and Blue Textcolor:
.list-cell:selected {
-fx-background-color: yellow;
-fx-text-fill: blue;
}
Add the Style Sheet
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "main.css"))

Changed: , Category: ListView, File: T6C216M1595.htm, ID: 1595