windows-8 – VariableSizedWrapGrid和WrapGrid儿童大小测量
发布时间:2020-12-13 19:17:48 所属栏目:Windows 来源:网络整理
导读:VariableSizedWrapGrid和WrapGrid都有奇怪的测量 – 它们基于第一个项目来测量所有的子项. 因此,以下XAML将剪辑第三个项目. VariableSizedWrapGrid Orientation="Horizontal" Rectangle Width="50" Height="100" Margin="5" Fill="Blue" / Rectangle Width="
VariableSizedWrapGrid和WrapGrid都有奇怪的测量 – 它们基于第一个项目来测量所有的子项.
因此,以下XAML将剪辑第三个项目. <VariableSizedWrapGrid Orientation="Horizontal"> <Rectangle Width="50" Height="100" Margin="5" Fill="Blue" /> <Rectangle Width="50" Height="50" Margin="5" Fill="Red" /> <Rectangle Width="50" Height="150" Margin="5" Fill="Green" /> <Rectangle Width="50" Height="50" Margin="5" Fill="Red" /> <Rectangle Width="50" Height="100" Margin="5" Fill="Red" /> </VariableSizedWrapGrid> 看起来像VariableSizedWrapGrid测量第一个项目,然后其余的孩子被测量与所需的大小的第一个. 任何解决方法?
您需要使用每个Rectangle VariableSizeWrapGrid.ColumnSpan和VariableSizeWrapGrid.RowSpan上的“附加属性”,并将ItemHeight和ItemWidth添加到VariableSizeWrapGrid中:
<VariableSizedWrapGrid Orientation="Horizontal" ItemHeight="50" ItemWidth="50"> <Rectangle VariableSizedWrapGrid.ColumnSpan="1" VariableSizedWrapGrid.RowSpan="2" Width="50" Height="100" Margin="5" Fill="Blue" /> </VariableSizedWrapGrid> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 以编程方式在Server Manager中添加Windows 2008 Server R2中
- windows&nbsp;server&nbsp;2003&nbsp;重
- windows – Batch Scripting Adventure
- .net – AppDomain.GetCurrentThreadID对于Windows API调用
- windows-server-2003 – RDP – 远程桌面断开连接,错误2308
- Windows Server 2008 R2 + IIS 环境部署Asp.Net Core App
- bytearray – 在Dart中处理字节数组时,使用Uint8List而不是
- 如何在Windows上获取磁盘标识符?
- windows-runtime – 图像源上的Uri格式
- Windows系统查看xxx.dll、xxx.lib文件的导出函数、依赖文件
推荐文章
站长推荐
- 如何在Windows上使用Java在默认图像查看器中打开
- windows-server-2008 – psexec Windows Server
- windows-server-2003 – Windows – 一步发布和续
- 停止Windows服务不会终止进程(服务使用ant)
- 如何在没有管理员权限的Windows上安装Go语言?
- windows-server-2008 – 如何在IIS7 / Win2008服
- Windows Server 2016 安装Docker
- msxml3.dll错误’80072ee2’操作超时
- Windows 版MongoDB 复制集Replica Set 配置
- 如何获得使用Powershell在Windows服务器上远程工
热点阅读