LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

Source Property (ImageListItem)






Gets or sets the image associated with this ImageListItem object. This is a dependency property. .NET support Silverlight support
Syntax
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")]
public ImageSource Source {get; set;}
'Declaration
 
<CategoryAttribute("Appearance")>
<DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")>
Public Property Source As ImageSource
'Usage
 
Dim instance As ImageListItem
Dim value As ImageSource
 
instance.Source = value
 
value = instance.Source
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")]
public ImageSource Source {get; set;}
CategoryAttribute("Appearance")
DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")
 get_Source();
set_Source(value);
[CategoryAttribute("Appearance")]
[DescriptionAttribute("Gets or sets the ImageSource for the ImageListItem).")]
public:
property ImageSource^ Source {
   ImageSource^ get();
   void set (    ImageSource^ value);
}

Property Value

An System.Windows.Media.ImageSource object associated with this ImageListItem object. Default value is null (Nothing in Visual Basic).
Remarks

The ImageList control will draw this image onto the item surface. If the item does not have an image, the value of this property is null (Nothing in Visual Basic) and, nothing is drawn.

You can set the Source property directly with the item image or you can set the Uri property with the path to the image and let the control load the image.

Example

For XAML example, refer to ImageList.

For C#/VB examples, refer to ImageList.

Requirements

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

See Also

Reference

ImageListItem Class
ImageListItem Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.