ListView があり、selectedItem の背景を赤くしたい。Windows-XP では非常にうまく機能しますが、Windows-7 では何も変わりません。Windows XP のデフォルトの選択は青色の背景ですが、Windows7 では ListViewItem の下に細い青色の線しか表示されず、背景に他の色は表示されません。私が認識していない Windows-7 用に追加する必要があるものはありますか? あなたの助けに感謝します。
これは私のxamlがどのように見えるかです:
<Style TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource DefaultControlStyle}">
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Height" Value="25" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Background" Value="{StaticResource RowBackgroundBrush}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="ToolTip" Value="{Binding ItemToolTip}" />
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#FF0000"/>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="#FF0000"/>
</Style.Resources>
</Style>
さらに情報が必要な場合は、お知らせください。
/N