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



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

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("Background brush of each item.")>
Public Property ItemBackground As Brush
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Brush
 
instance.ItemBackground = value
 
value = instance.ItemBackground
C# 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Background brush of each item.")]
public Brush ItemBackground {get; set;}
C++/CLI 
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Background brush of each item.")]
public:
property Brush^ ItemBackground {
   Brush^ get();
   void set (    Brush^ value);
}

Property Value

A System.Windows.Media.Brush object that is used to draw the background of the items in this control. Default value is null (Nothing in Visual Basic).

Example

For XAML example, refer to ItemBorderBrush.

For C#/VB examples, refer to ItemBorderBrush.

Remarks

Use the ItemBackground property to define the brush used to fill the area inside the item not overlapped by the image.

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

Requirements

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

See Also