Visual Basic (Declaration) | |
---|---|
Public Class ImageListItem Inherits System.Windows.Controls.ListBoxItem Implements IImageListItem, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IAnimatable |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ImageListItem |
C# | |
---|---|
public class ImageListItem : System.Windows.Controls.ListBoxItem, IImageListItem, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IAnimatable |
C++/CLI | |
---|---|
public ref class ImageListItem : public System.Windows.Controls.ListBoxItem, IImageListItem, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IAnimatable |
The ImageListItem class derives from the WPF/Silverlight System.Windows.Controls.ListBoxItem class to implement a class that represents a single item in an ImageList control that contains an System.Windows.Media.ImageSource. To display a LEADTOOLS Leadtools.RasterImage in the ImageList control, use RasterImageListItem.
The ImageListItem also implements the IImageListItem interface to define the appearance and data associated with an item that is displayed in the ImageList control.
The ImageListItem supports the following functionality:
-
Adding items that contain a WPF/Silverlight System.Windows.Media.ImageSource to the ImageList control through the Source property
-
Loading items directly from a URI using the Uri property
-
Setting the item text through the Text and ShowText properties
-
Setting the brushes used to draw the items with the Foreground, Background, SelectedForeground and SelectedBackground properties.
-
Control the item size with the Width, Height and ImageSize properties
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Controls.ListBoxItem
Leadtools.Windows.Controls.ImageListItem
Leadtools.Windows.Controls.RasterImageListItem
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family