Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the data sources I can bind the ListBox to?

bind Data listbox sources
0
Posted

What are the data sources I can bind the ListBox to?

0

The ListBox, like the other ItemsControl can be bound to any IList, ObservableCollection or ObjectDataProvider (containing a list type data) as explained in this MSDN topic: ItemsControl Content Model Overview If bound to an ObservableCollection, changes happening in the collection will automatically reflect in the ListBox. You can also bind to XML Data using an XMLDataProvider as explained in this topic: How to: Bind to XML Data Using an XMLDataProvider and XPath Queries Bind the ListBox to a CollectionViewSource to be able to bind to sorted or grouped views of your list.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123