if I’m using a ListBox for data binding, the listbox generates a listboxitem for each item, same goes for combo box and comboBoxItem.
My question is – how do i set it myself for a given ItemsControl? (e.g. make the containing element be Border)?
if I’m using a ListBox for data binding, the listbox generates a listboxitem for
Share
After digging a little with ILSpy –
Apparently The magic is done in
This is where ListBox does it – and in my control I should override this as well.