随笔分类 -  WPF

摘要:依赖属性(Dependency Property)和附加属性(Attached Property)参考http://www.cnblogs.com/KevinYang/archive/2010/03/28/1699083.htmlhttp://www.cnblogs.com/pszw/archive... 阅读全文
posted @ 2015-02-02 10:08 童心少年 阅读(142) 评论(0) 推荐(0)
摘要:介绍几种常用的Image source 赋值方式:this.abc.Source = new BitmapImage(new Uri("/1.jpg", UriKind.RelativeOrAbsolute));Uri uri = new Uri("1.jpg", UriKind.Relative)... 阅读全文
posted @ 2015-01-31 23:12 童心少年 阅读(182) 评论(0) 推荐(0)
摘要:在Listbox中横向显示CheckBox前台代码1 2 3 需要添加的元素4 5 后台动态添加CheckBox1 foreach(var i in listOfMonth)2 {3 ... 阅读全文
posted @ 2015-01-31 14:24 童心少年 阅读(602) 评论(0) 推荐(0)
摘要:思路清晰后仅仅只需百来行代码便可轻松编写出一套完整的资源动态下载组件- SerialDownloader和ParallelDownloader,它们共用一个完成资源表,且串行下载集成了优先机制(DownloadPriority),并行下载也根据需要封装了并行队列模式(QueueParallelDow... 阅读全文
posted @ 2015-01-30 10:16 童心少年 阅读(242) 评论(0) 推荐(0)
摘要:1 protected void Page_Load(object sender, EventArgs e) 2 { 3 bindtree(PopId); 4 } 5 private void bindtree() 6 { 7 TreeView1.Nodes.Clear(); 8 A... 阅读全文
posted @ 2015-01-25 19:13 童心少年 阅读(373) 评论(0) 推荐(0)
摘要:比较凌乱,有时间在整理吧。 1 Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data source=c:/D.mdb;Jet OLEDB:DataBase Password=123456!" 2 3 4 privat... 阅读全文
posted @ 2015-01-25 18:48 童心少年 阅读(569) 评论(0) 推荐(0)