10 2014 档案

摘要:方法一: string dirPath = @"D:\App1"; List dirs = new List(Directory.GetDirectories(dirPath, "*", System.IO.SearchOption.AllDirectories)); ... 阅读全文
posted @ 2014-10-29 17:15 akiing 阅读(2643) 评论(0) 推荐(0)
摘要:silverlight 或WPF在MVVM模式中使用INotifyDataErrorInfo接口对输入进行验证时控件lostFocus时会触发验证,但在提交动作(例如button的Command)时,不触发验证。下面的方法提供控件输入验证统一触发。1、添加ValidationScope类public... 阅读全文
posted @ 2014-10-17 10:18 akiing 阅读(506) 评论(0) 推荐(1)
摘要:public static class VisualTreeExtensions { /// /// 获取父节点控件 /// /// 子控件UI /// 子控件 /// 父容器名称 /// 父... 阅读全文
posted @ 2014-10-16 16:53 akiing 阅读(375) 评论(0) 推荐(0)