2

ListView の角を丸くしたいと思います。プロパティを使用しようとしましたTemplateが、テンプレート全体を書き直さなければならないようです。設定できるように国境に到達する方法はありますかCornerRadius

4

1 に答える 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 に答える