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



Gets or sets a collection used to generate the content of the ImageList. This is a dependency property. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Shadows Property ItemsSource As ObservableCollection(Of IImageListItem)
Visual Basic (Usage)Copy Code
Dim instance As ImageList
Dim value As ObservableCollection(Of IImageListItem)
 
instance.ItemsSource = value
 
value = instance.ItemsSource
C# 
public new ObservableCollection<IImageListItem> ItemsSource {get; set;}
C++/CLI 
public:
new property ObservableCollection<IImageListItem^>^ ItemsSource {
   ObservableCollection<IImageListItem^>^ get();
   void set (    ObservableCollection<IImageListItem^>^ value);
}

Property Value

A collection that is used to generate the content of the ImageList. The default is null reference (Nothing in Visual Basic).

Example

For C#/VB examples, refer to IImageListItem.

For C#/VB examples, refer to IImageListItem.

Remarks

You can add items to the ImageList control using the ItemsSource property. You can either add the items directly to this property or bind it to a collection object. For more information, refer to ItemsControl.ItemsSource in MSDN.

Requirements

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

See Also