Leadtools.Windows.Controls Namespace : ImageListItem Class |
public class ImageListItem : System.Windows.Controls.ListBoxItem, IImageListItem, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.IAnimatable
'Declaration Public Class ImageListItem Inherits System.Windows.Controls.ListBoxItem Implements IImageListItem, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.IAnimatable
'Usage Dim instance As ImageListItem
public sealed class ImageListItem : IImageListItem, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.IAnimatable
function Leadtools.Windows.Controls.ImageListItem()
public ref class ImageListItem : public System.Windows.Controls.ListBoxItem, IImageListItem, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.IInputElement, System.Windows.Markup.IAddChild, System.Windows.Markup.IQueryAmbient, System.Windows.Media.Animation.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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2