<ListBox HorizontalAlignment="Right"
ItemsSource="{Binding Groups}"
SelectedValue="{Binding SelectedGroup}"/>
On startup, before the screen displayed, my viewmodel had SelectedGroup = Groups.First() (and Groups contained several items).
I spent about an hour trying to figure out why my item was not being selected. When I clicked (or pressed spacebar), then the selected item appeared selected, but before that, the item did not appear selected.
After I added <ListBox IsSynchronizedWithCurrentItem ="True">, the app started working.
Question: Can someone explain why this is necessary? In other words, why would Microsoft have even made this an option? Wouldn’t I always want this behavior?
Consider this example: Example
While using a ComboBox, it illustrates the idea: You don’t want the first item automatically selected.