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



Gets or sets brush used to draw the background of selected items. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

A System.Windows.Media.Brush object that is used to draw the background selected items. Default value is a transparent System.Windows.Media.SolidColorBrush.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Remarks

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

Use the ImageListItem.SelectedBackground dependency property to set the brush used to draw the background of the selected item.

Requirements

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

See Also