LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ItemForeground Property
See Also 
Leadtools.Windows.Controls Namespace > ImageList Class : ItemForeground Property



Gets or sets brush used to draw the foreground (text) of the items in this control. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("The color used to display the text of selected items.")>
<CategoryAttribute("Appearance")>
Public Property ItemForeground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Brush
 
instance.ItemForeground = value
 
value = instance.ItemForeground
C# 
[DescriptionAttribute("The color used to display the text of selected items.")]
[CategoryAttribute("Appearance")]
public Brush ItemForeground {get; set;}
C++/CLI 
[DescriptionAttribute("The color used to display the text of selected items.")]
[CategoryAttribute("Appearance")]
public:
property Brush^ ItemForeground {
   Brush^ get();
   void set (    Brush^ value);
}

Property Value

A System.Windows.Media.Brush object that is used to draw the foreground (text) of the items in this control. Default value is a System.Windows.Media.SolidColorBrush of System.Windows.SystemColors.ControlTextColor.

Example

For XAML example, refer to ItemBorderBrush.

For C#/VB examples, refer to ItemBorderBrush.

Remarks

Use the ItemForeground property to define the brush used to draw the text of each item.

Changing this property will make this control loop through all the items and setting IImageListItem.Foreground accordingly.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also