gridviewitems之间的水平填充 [英] horizontal padding between gridviewitems
问题描述
我有一个gridview,每个项目都是2个矩形(有点像条形图)。根据绑定值,1个矩形是可见的,1个矩形是折叠的。我希望这些物品彼此靠近,它们之间只有5px的填充,但我不能
似乎这样做。它似乎保留了折叠矩形的间距。这是预期的吗?有办法吗?
I have a gridview where each item is 2 rectangles (kind of like in a bar chart). Based on the binding values, 1 rectangle is Visible and 1 rectangle is collapsed. I want to have the items close to each other with only 5px padding between them but I can't seem to do that. It seems to keep the spacing for the collapsed rectangle. Is that expected? Is there a way around it?
谢谢
梅格
推荐答案
Hi Meg,
Hi Meg,
我不太明白你在找什么。你能不能提供一个最小的代码片段来演示你正在做什么,以及你正在寻找什么的明确解释(可能有图片)以及它与你的
有什么不同?
I don't quite understand what you are looking for here. Can you please provide a minimal code snippet which demonstrates what you are doing and a clear explanation (possibly with pictures) of what you are looking for and how it differs from what you are getting?
- Rob
这篇关于gridviewitems之间的水平填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!