| 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).For C#/VB examples, refer to IImageListItem.
For C#/VB examples, refer to IImageListItem.
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.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Copy Code