
Hi,
I have encountered an issue with BarComboBox control where the ItemTemplate
only seem to affect the ItemsSource
and not the SelectedItem
. This behavior is inconsistent with the default ComboBox and the Ribbon.ComboBox.
Here is a highly simplified example that demonstrates how to replicate the default behavior and the issue.
Both of these examples demonstrate the desired behavior, setting both the SelectedItem
and the ItemsSource
of the ComboBox dropdown to ‘Test’.
Now here's an example in which the ItemTemplate doesn't apply (Essentially the same code):
The DataTemplate
does not seem to impact MySelectedString
as anticipated.
Is this by design, or is there a potential workaround for this situation?
Thank you,
Matt
[Modified 1 year ago]