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





Gets or sets the item background brush of the selected items in this ImageList.

Syntax

Visual Basic (Declaration) 
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# 
public Brush SelectedBackground {get; set;}
C++/CLI 
public:
property Brush SelectedBackground {
   Brush get();
   void set (Brush value);
}
XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

SelectedBackgroundProperty

Metadata properties set to true

None

XAML Syntax 
For XAML information, see the Brush type.

Dependencies Property Information 

Identifier field

SelectedBackgroundProperty

Metadata properties set to true

None

Return Value

The item background brush of the selected items in this ImageList

Example

For XAML example, refer to ImageSize.

For C#/VB examples, refer to ImageSize.

Remarks

How the ItemSelectedBackground 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 selected items.
ImageListViewStyle.ExplorerWhen an item is selected, this color is used to fill the background behind the text of the item and to draw a rectangle around the image.
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