在Wrap面板中识别项目被包裹的每一行的索引。还可以识别每行中可用的项目数 [英] Identify the index of each row where items get wrapped in Wrap panel & also identify possible no of items available in each row
问题描述
对于Wrap面板,我想知道项目被包装的每一行的索引。我还想知道动态宽度基于宽度的包装面板中每行可用的项目数。
有没有机制可以了解这个?
问候
Vipul
Hi Vipul_Langalia,
WrapPanel会将每个子控件放在另一个旁边,水平(默认)或垂直放置,直到没有空间,它将包裹到下一行然后继续。当你想要一个垂直或水平列表控制
,当没有更多空间时自动换行时使用它。
我不建议你使用Wrappanel控件获取项目行索引,因为很难计算WrapPanel的行数。我也没有 一种方法,但我找到一篇可能对你有所帮助的文章。
最好的问候,
Hi,
For Wrap panel I want to know the index of each row where items get wrapped. I also want to know the possible number of items available in each row in wrap panel based on width dynamically.
Is there any mechanism to get idea about this?
Regards
Vipul
Hi Vipul_Langalia,
The WrapPanel will position each of its child controls next to the other, horizontally (default) or vertically, until there is no more room, where it will wrap to the next line and then continue. Use it when you want a vertical or horizontal list controls that automatically wraps when there's no more room.
I don't suggest you use Wrappanel control to get item row index, because it is hard to calculate the row count for WrapPanel. And I also don't have a way to do this, but I find one article that may be helpful for you.
Best Regards,
这篇关于在Wrap面板中识别项目被包裹的每一行的索引。还可以识别每行中可用的项目数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!