在自动换行面板中设置最大行数 [英] Set max rows in a wrap panel

查看:235
本文介绍了在自动换行面板中设置最大行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要配置一个包装面板,在其中可以设置最大行数或最大列数.

I need to configure a wrap panel where I can set the max rows or max columns in it.

这确实是必要的,我正在使用WPF 4.0.但是第二天,我是Programmin Metro应用程序的程序员,我记得它的一个控件具有此属性,但是在WPF中却没有(直到我知道).

This is really necessary, I'm using WPF 4.0. But the another day, I was programmin Metro applications and I remember that one of its controls has this properties, but in WPF not (until I know).

在WPF 4.0中是否存在这样的控件?还是我需要创建一个新的?

Is exists such control in WPF 4.0? Or do I need to create a new one?

推荐答案

您可以设置ItemHeightItemWidth属性来设置最大行数和列数...

You can set ItemHeight and ItemWidth properties to set the max rows and columns...

有关更多信息,请查看此处

For more info, have a look here

这篇关于在自动换行面板中设置最大行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆