开发者

Separate items in ListView using line in wpf c#

开发者 https://www.devze.com 2023-01-22 11:44 出处:网络
How to separate betw开发者_开发知识库een items BY Lines in ListView control in WPF ?You can change the ItemTemplate for the ListBox,

How to separate betw开发者_开发知识库een items BY Lines in ListView control in WPF ?


You can change the ItemTemplate for the ListBox, given the little information you have provided, just a quick example:

<ListBox>
 <ListBox.ItemTemplate>
  <DataTemplate>
   <Border BorderBrush="Black" BorderThickness="0.5">
    <TextBlock Text={Binding}/>
   </Border>
  </DataTemplate>
 </ListBox.ItemTemplate>
</ListBox>

You will have to modify it to suit your needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消