I have a data-driven application architecture and my expectation is that MultipleSelectionBoxTemplate shares the same DataContext as the parent RadComboBox because it does not apply to any particular item. This is very confusing.
1 Answer, 1 is accepted
answered on 23 Jun 2021, 07:04 AM
The DataContext passed to the MultipleSelectionBoxTemplate is the value of the SelectionBoxItem property of RadComboBox. The SelectionBoxItem property is synced with the Text property of the control when the multiple selection is enabled. In other words, the DataContext is a string.
If you need to have the DataContext of the RadComboBox control, you can adjust this explicitly. For example: