Fixed edge cases with selections

This commit is contained in:
TheXamlGuy
2024-05-14 19:49:28 +01:00
parent 7e87c32ffd
commit fc7caf2762
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -22,10 +22,11 @@
Margin="2,-1,0,0"
ItemTemplate="{ReflectionBinding Template}"
ItemsSource="{Binding}"
SelectionMode="AlwaysSelected">
SelectedIndex="{Binding SelectedIndex}"
SelectionMode="Single">
<ListBox.Styles>
<Style Selector="ListBoxItem">
<Setter Property="IsSelected" Value="{ReflectionBinding Selected}" />
<Setter Property="IsSelected" Value="{ReflectionBinding Selected, Mode=TwoWay}" />
</Style>
</ListBox.Styles>
</ListBox>