Border

Transparency and hover effect on highlighted items

Andrej Stojkov
Lidor Systems

July 02, 2007

In order to make better distinction among hovered item and other items displayed in the ListView control, you can use Transparency. There are two levels of transparency in the color styles of list view items: Partial and Full. By using the Partial Transparency only item text, background and border colors can be transparent. On the other hand, by using the Full Transparency, all item elements like images, text, checkboxes, flags, colors can be transparent.

By default the TransparencyLevel is set to Partial. In this example we are going to use Full Transparency. Here is how:

this.listView1.NormalItemStyle.TransparencyLevel = LidorSystems.IntegralUI.Style.TransparencyLevel.Full;

this.listView1.NormalItemStyle.Transparency = 60;

Me.listView1.NormalItemStyle.TransparencyLevel = LidorSystems.IntegralUI.Style.TransparencyLevel.Full

Me.listView1.NormalItemStyle.Transparency = 60

Transparency and hover effect on highlighted items
Border