ListView の角を丸くしたいと思います。プロパティを使用しようとしましたTemplate
が、テンプレート全体を書き直さなければならないようです。設定できるように国境に到達する方法はありますかCornerRadius
質問する
6012 次
1 に答える
8
BorderThicknessとCornerRadiusの値は無視してください。必要に応じて、これらを設定できます。
<ListView>
<ListView.Template>
<ControlTemplate>
<Border CornerRadius="50" BorderThickness="50" BorderBrush="Red">
<ItemsPresenter></ItemsPresenter>
</Border>
</ControlTemplate>
</ListView.Template>
<ListViewItem Content="Harish"/>
<ListViewItem Content="Harish"/>
<ListViewItem Content="Harish"/>
<ListViewItem Content="Harish"/>
</ListView>
これがお役に立てば幸いです
于 2012-07-11T16:18:53.980 に答える