摘要: 1:OWC 微软 excel插件 2:WPFtoolKit控件 3:visifire有时间详细贴上来 阅读全文
posted @ 2012-11-21 21:42 风雨摇摆 阅读(173) 评论(0) 推荐(0)
摘要: View Code System.Windows.Forms.TextBox tb = new System.Windows.Forms.TextBox(); System.Drawing.Font stringFont = new System.Drawing.Font("Microsoft YaHei", 18); tb.Font = stringFont; string strName = stringFormat(tb, singleUCBtn.SingleUCName, 180); ... 阅读全文
posted @ 2012-11-21 21:38 风雨摇摆 阅读(289) 评论(0) 推荐(0)
摘要: 1:WPF里面 默认是采用了虚模式的,一般情况下,不使用虚模式占的物理内存比使用虚模式多一倍,但是在界面上进行拖动的时候,流畅一些,使用虚模式将会使用虚拟内存,占用内存较少,但是问题在有时候动态刷新数据的时候,是会卡界面的。View Code VirtualizingStackPanel.IsVirtualizing="True"设置是否使用虚模式,默认是true2:在使用listview显示大数据量是,动态添加列数据,超过200列一般会比较卡绑定方式申明数据集合 List<string[]> listDataArray = new List<string 阅读全文
posted @ 2012-11-21 21:19 风雨摇摆 阅读(479) 评论(0) 推荐(0)
摘要: 使用WebRequest 直接下载会阻塞UI线程,要么使用多线程,要么使用异步方式1)首先创建一个连接请求string fullURL=@"http://neirong.funshion.com/software/download.php?id=6930&f=FunshionInstall2.6.6.43Beta.exe";WebRequest webReq = WebRequest.Create(fullURL); try { WebResponse webRes = webReq.GetResponse(); ... 阅读全文
posted @ 2012-11-21 20:49 风雨摇摆 阅读(481) 评论(0) 推荐(0)