此代碼來自
我怎樣才能達到相同的結果,但用一條線分隔元素?

uj5u.com熱心網友回復:
您可以使用專案容器樣式在每個容器的底部繪制邊框。
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="BorderThickness" Value="0,0,0,2"/>
<Setter Property="BorderBrush" Value="Red"/>
</Style>
</ListView.ItemContainerStyle>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/448344.html
