【发布时间】:2016-08-24 18:24:45
【问题描述】:
正如标题所说,控件是否可以跨越半列? 尝试时出现以下错误:
<Button Grid.RowSpan="1" Grid.ColumnSpan="1.5"/>
Cannot convert string '1.5' in attribute 'ColumnSpan' to object of type 'System.Int32'. 1.5 is not a valid value for Int32
编辑:我知道,使用这种方法是不可能的。我在问是否有另一种方法可以让控件明显跨越一列半。
谢谢!
【问题讨论】:
-
错误信息很清楚:不,你不能。
-
您可以推荐其他解决方案吗?
-
我不知道你想在这里做什么。但是Grid-in-Grid可以解决很多问题。
-
感谢您的提示 - 我会调查一下!
标签: wpf xaml grid columnspan