我将如何通过C#(因为我正在以编程方式生成ListViews)完成以下操作:
<ListView>
<ListView.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/>
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/>
</ListView.Resources>
...