I have defined the following ListBox and am using the ShinyRed themes found here. However, I’m finding that row color only changes on mouse hover if I’m hovering over the label’s text. I’d like to get the row to change color if I’m anywhere on the list item’s line. How do I fix this?
<ListBox Grid.Row="1" ItemsSource="{Binding Categories}" ScrollViewer.CanContentScroll="False">
<ListBox.ItemTemplate>
<DataTemplate>
<Label Content={Binding DisplayName}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Use the
ListBox.ItemContainerStyleto make the items stretch.(Also if it still only reacts to the text try setting the
Label.BackgroundtoTransparentwhich hit-tests. And if it still don’t work theListBoxItemcontrol template of that theme is kinda whack)