wpf 遍历控件及其值
2015-11-09 16:50
281 查看
/// <summary> /// 遍历控件及其值 /// </summary> /// <param name="uiControls">界面控件</param> private void SetNotEditable(UIElementCollection uiControls) { foreach (UIElement element in uiControls) { if (element is TextBox) { TextBox txtBox = (element as TextBox); } else if (element is Grid) { this.SetNotEditable((element as Grid).Children); } } }
相关文章推荐
- Request.QueryString["id"] 、Request.Params["id"] 的强大
- 第十一周项目一(3)~·线索化二叉树
- 第十一周项目1-验证算法(2)
- 第11周、项目1.3—验证算法
- 第10周 项目2 - 二叉树遍历的递归算法
- 项目1.2-- 二叉树构造算法的验证
- 第11周、项目1.2—验证算法
- Objective-C文件结构
- 最简单的一个求最大值的函数
- 解决:对 PInvoke 函数的调用导致堆栈不对称问题
- 硬盘分类
- 自己搭建ngrok服务
- 虚拟rethat联网问题
- MySQL数据类型
- iOS8 UILocalNotification 增加启动授权
- Web前端研发工程师编程能力飞升之路
- Linux常用命令
- win7系统的将运行命令如何放置到开始菜单中?
- 关于Win32API(主要是一个宏观上分类)
- 第8周 项目2-建立链串的算法库