public ReadOnlyObservableCollection<object> ItemCollection {get;}
Public ReadOnly Property ItemCollection As ReadOnlyObservableCollection(Of Object)
public ReadOnlyObservableCollection<object> ItemCollection {get;}
Public ReadOnly Property ItemCollection As ReadOnlyObservableCollection(Of Object)
The default item template for combo boxes expects a collection of ComboBoxItem. If you are using your own item template, you can fill the collection with whatever type is appropriate.
All items added to the ItemCollection must be created on the main UI thread as these ultimately become UI content.
Target Platforms: Windows 10, Windows 8.1