Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
ItemSelectedForeground Property
See Also 
Leadtools.Windows.Controls Namespace > ImageList Class : ItemSelectedForeground Property





Gets or sets the foreground color of the selected items in this ImageList. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property ItemSelectedForeground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Brush
 
instance.ItemSelectedForeground = value
 
value = instance.ItemSelectedForeground
C# 
public Brush ItemSelectedForeground {get; set;}
C++/CLI 
public:
property Brush ItemSelectedForeground {
   Brush get();
   void set (Brush value);
}
XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

ItemSelectedForegroundProperty

Metadata properties set to true

None

XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

ItemSelectedForegroundProperty

Metadata properties set to true

None

Return Value

The foreground color of the selected items in this ImageList

Example

For XAML example, refer to ItemBorderBrush.

For C#/VB examples, refer to ItemBorderBrush.

Remarks

How the ItemSelectedForeground value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyleDescription
ImageListViewStyle.NormalFills the background of the selected items.
ImageListViewStyle.ExplorerDraws the text of selected items as well as a rectangle around the image of selected items.
ImageListViewStyle.ButtonNot used.

For more information about item appearance, refer to ImageList Appearance.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also