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



Gets or sets the item image size in pixels. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Size of each item image in pixels.")>
<CategoryAttribute("Appearance")>
Public Property ItemImageSize As Size
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As Size
 
instance.ItemImageSize = value
 
value = instance.ItemImageSize
C# 
[DescriptionAttribute("Size of each item image in pixels.")]
[CategoryAttribute("Appearance")]
public Size ItemImageSize {get; set;}
C++/CLI 
[DescriptionAttribute("Size of each item image in pixels.")]
[CategoryAttribute("Appearance")]
public:
property Size ItemImageSize {
   Size get();
   void set (    Size value);
}

Property Value

The size of the image box inside this item in pixels. Default value is 128, 102.

Example

For XAML example, refer to ItemBorderBrush.

For C#/VB examples, refer to ItemBorderBrush.

Remarks

Use the ItemSize property to set the overall item size. The image will be drawn inside the rectangle define by ItemImageSize and centered inside ItemSize.

Changing this property will make this control loop through all the items and setting IImageListItem.ImageSize accordingly.

Requirements

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

See Also