WPF:是否可以在UniformGrid中进行行/列跨度? [英] WPF: Is it possible to do a row/column span in UniformGrid?

查看:488
本文介绍了WPF:是否可以在UniformGrid中进行行/列跨度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在UniformGrid中进行行/列跨度? 使用网格附加属性

Is it possible to do a row/column span in UniformGrid? Using Grid attached properties

Grid.RowSpan

Grid.RowSpan

Grid.ColumnSpan

Grid.ColumnSpan

不适用于UniformGrid.

doesn't work on UniformGrid.

推荐答案

否.没有附加的属性可让您执行此操作.

No. There are no attached properties that will allow you to do that.

您可以创建UniformGrid的子类并添加它们,但必须处理所有子控件的布置.

You could create a subclass of the UniformGrid and add them but you would have to handle all the arranging of the child controls.

很难定义跨多个列的元素在必须换行到下一行时应发生的情况.

It will be pretty hard to define what should happen to elements that span multiple columns when they have to wrap to the next line.

这篇关于WPF:是否可以在UniformGrid中进行行/列跨度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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