Visual Basic (Declaration) | |
---|---|
Public Property SelectedBackground As Brush |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Brush SelectedBackground {get; set;} |
XAML Syntax | |
---|---|
For XAML information, see the Brush type. |
Dependencies Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
XAML Syntax | |
---|---|
For XAML information, see the Brush type. |
Dependencies Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
Return Value
The item background brush of the selected items in this ImageListHow the ItemSelectedBackground value is used to draw the items depends on the current ViewStyle. The following table lists all the cases:
ViewStyle | Description |
---|---|
ImageListViewStyle.Normal | Fills the background of selected items. |
ImageListViewStyle.Explorer | When 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.Button | Not used. |
For more information about item appearance, refer to ImageList Appearance.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family