Xceed Toolkit Plus for WPF v4.6 Documentation
ItemsSource Property (ListBox)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > ListBox Class : ItemsSource Property
Gets or sets the data source to which a listbox is bound.
Syntax
'Declaration
 
Public Property ItemsSource As Object
'Usage
 
Dim instance As ListBox
Dim value As Object
 
instance.ItemsSource = value
 
value = instance.ItemsSource
public object ItemsSource {get; set;}

Property Value

An IEnumerable representing the data source to which a listbox is bound.
Remarks
Xceed WPF listbox control provides built-in support for WCF Data, as well as for any local data source that implements IEnumerable. In order to populate a listbox with data items, its ItemsSource property must be bound to a property that exposes the data. Once the data items are loaded into a listbox, they can be edited, grouped, sorted, and filtered.
Example
For examples on how to bind to various data sources, refer to the Providing Data topic.
Requirements

Target Platforms: Windows 11, Windows 10, 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

ListBox Class
ListBox Members