所以,我ListBox
用 XAML 写了这个:
<ListBox Margin="0" x:Name="ListBox_Main" Grid.Row="1" VerticalAlignment="Top" FontSize="24" SelectionChanged="ListBox_Main_SelectionChanged" Foreground="Black">
<ListBoxItem Content="Item 1" Background="#19000000" />
<ListBoxItem Content="Item 2" Background="#19000000" />
<ListBoxItem Content="Item 3" Background="#19000000" />
<ListBoxItem Content="Item 4" Background="#19000000"/>
<ListBoxItem Content="Item 5" Background="#19000000"/>
</ListBox>
I can change the color of background, foreground, and the text of the list box items but there's no option to change the color when any of the items is selected, it is blue by default:
我们可以改变那个蓝色吗?