WP8.1:

ColumnDefinitions和RowDefinitions的道理是相同的,语法顺序是一样的,只不过是将ColumnDefinitions换成RowDefinitions而已

获取并且重新设置

 var the_grid_CD = This_Gird.ColumnDefinitions; //获取控件的ColumnDefinitions列表
var the_get_CD=the_grid_CD.First(i=>i.Width==newGridLength(,GridUnitType.Star));//使用First语法获取到你想要的CD
the_get_CD.Width =newGridLength(,GridUnitType.Star);//重新设置值
  //the_grid_CD.ElementAt(索引) 也可以用ElementAt语法获取其ColumnDefinitions

添加

             ColumnDefinition SetCD = new ColumnDefinition(); //新建一个ColumnDefinition
SetCD.Width = new GridLength(, GridUnitType.Star);//第一个参数,是大小,第二个参数是类型
The_Grid.ColumnDefinitions.Add(SetCD);//添加到ColumnDefinition中,位于列表最后一个
//the_grid_CD.Insert(索引,新建ColumnDefinition) 也可以使用这个方法添加到指定的位置

最新文章

  1. iOS 状态栏隐藏显示
  2. eclipse 优化提速
  3. 服务器的Arch Linux,CentOS的,Debian的,Fedora的,Gentoo的,openSUSE的,Slackware的,和Ubuntu哪个好
  4. HDFS命令行文件操作
  5. Looksery Cup 2015 A. Face Detection 水题
  6. Git的一些用法(建立新的branch)
  7. Oracle EBS-SQL (PO-12):检查期间请购单的下达记录数.sql
  8. 【Android Developers Training】 103. 查询当前地点
  9. JVM内存概览与GC初步
  10. PR 审批界面增加显示项方法
  11. HTML编辑器KindEditor
  12. 2019 Power BI最Top50面试题,助你面试脱颖而出系列<上>
  13. oracle表空间大小的限制和DB_BLOCK_SIZE的概念
  14. IDEA控制台问题:java lang OutOfMemoryError:PermGen space
  15. MySQL加密解密
  16. LiveCharts文档-3开始-3类型和设置
  17. JAVA设计模式详解(二)----------观察者模式
  18. ASP.NET 动态创建文本框 TextBox (add TextBox to page dynamically)
  19. 20145321《网络对抗技术》逆向与Bof基础
  20. Custom Settings.ini 和 bootstrap.ini 配置

热门文章

  1. struts2+jsp+hiberbate 双重遍历
  2. Win32中TreeView控件的使用方法,类似于资源管理器中文件树形显示方式
  3. VR系统的组成
  4. threadid=1: thread exiting with uncaught exception (group=0xb2a86d70)
  5. Python学习笔记(四)——编码和字符串
  6. 全文检索原理以及es
  7. Ajax技术原理小结
  8. Python爬虫学习(4): python中re模块中的向后引用以及零宽断言
  9. Linux下定时任务配置-crontab
  10. Jquery事件:鼠标移入移出(mouseenter,mouseleave)