[XAML] [UWP]如何在ListView项之间添加一行

人气:125 发布:2022-09-22 标签: wpdevelop

问题描述

您好,我想在ListView项目之间添加一行,以便它们在视觉上更好地彼此分离。我该怎么做?

Hello, I would like to add a line between ListView items so that they are visually better seperated from each other. How can I do this?

如果我在每个项目后添加一行,那么最后一个项目后面有一行,我不想要。

If I add a line after each item then the last item has a line after it, which I don't want.

推荐答案

您好,

不要忘记在您的问题中添加标签。

Don't forget add tag to your question.

您可以将边框添加到ItemTemplate中,并仅将thikness前例发送到顶行

You can add Border into ItemTemplate and only sent thikness fore example to the top line

715