摘要: 阅读全文
posted @ 2017-09-11 17:10 akiing 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 剪切具有CornerRadius的RectangleGeometry(可能在Ripple中用到) 1、新建Converter 2、添加Converter 阅读全文
posted @ 2017-09-08 10:36 akiing 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 程序右键->属性->平台,改为(x86) 阅读全文
posted @ 2017-09-06 16:33 akiing 阅读(418) 评论(0) 推荐(0) 编辑
摘要: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in you 阅读全文
posted @ 2016-04-28 21:45 akiing 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 方法一: string dirPath = @"D:\App1"; List dirs = new List(Directory.GetDirectories(dirPath, "*", System.IO.SearchOption.AllDirectories)); ... 阅读全文
posted @ 2014-10-29 17:15 akiing 阅读(2597) 评论(0) 推荐(0) 编辑
摘要: silverlight 或WPF在MVVM模式中使用INotifyDataErrorInfo接口对输入进行验证时控件lostFocus时会触发验证,但在提交动作(例如button的Command)时,不触发验证。下面的方法提供控件输入验证统一触发。1、添加ValidationScope类public... 阅读全文
posted @ 2014-10-17 10:18 akiing 阅读(494) 评论(0) 推荐(1) 编辑
摘要: public static class VisualTreeExtensions { /// /// 获取父节点控件 /// /// 子控件UI /// 子控件 /// 父容器名称 /// 父... 阅读全文
posted @ 2014-10-16 16:53 akiing 阅读(356) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2014-09-23 10:21 akiing 阅读(350) 评论(0) 推荐(1) 编辑
摘要: /// /// 获取一年中的周 /// /// 日期 /// public static int GetWeekOfYear(DateTime dt) { System.Globaliz... 阅读全文
posted @ 2014-09-19 16:44 akiing 阅读(4662) 评论(1) 推荐(0) 编辑
摘要: 1 public class ViewModelBase : INotifyPropertyChanged , IDisposable 2 { 3 public virtual string DisplayName { get; protected set; } 4 5 public event PropertyChangedEventHandler PropertyChanged; 6 7 protected void OnPropertyChanged([CallerMemberName]string propertyN... 阅读全文
posted @ 2013-11-26 22:51 akiing 阅读(868) 评论(0) 推荐(0) 编辑