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

浙公网安备 33010602011771号