07 2013 档案

摘要:现在我以listview为例来讲述下拉刷新的功能! 在xaml中设置listview一定要设置一个这样的属性,IsSwipeEnabled=false,然后再listview控件的前面要布局下拉刷新的图标及提示,在listview控件的后面也要布局上拉时的提示信息。 现在我将个人的布局展现出来,仅供大家参考! ... 阅读全文
posted @ 2013-07-10 14:52 深山居士 阅读(1238) 评论(0) 推荐(0)
摘要:一、先初始化treeview this.treeView1.CheckBoxes = true; this.treeView1.ShowLines = false; this.treeView1.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll; this.treeView1.DrawNode += new System.Windows.Forms.DrawTreeNodeEventHandler(this.treeView_Draw... 阅读全文
posted @ 2013-07-08 18:58 深山居士 阅读(18689) 评论(4) 推荐(3)
摘要:1 DataTable dt = new DataTable(); 2 if (_list != null) 3 { //通过反射获取list中的字段 4 System.Reflection.PropertyInfo[] p = _list[0].GetType().GetProperties(); 5 foreach (System.Reflection.PropertyInfo pi in p) 6 { 7 dt.Columns.Add(pi.Name, System.Type.GetType(pi.PropertyType.ToString(... 阅读全文
posted @ 2013-07-08 18:51 深山居士 阅读(11009) 评论(1) 推荐(0)