I would like to round the corners of the ListView. I have tried to use the Template property, but it seems that I would have to rewrite the entire template. Is there any way to get to the border so that I can set the CornerRadius
ignore the BorderThickness and CornerRadius values , you can set them according to your requirement.
<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>
I hope this will help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With