01 2017 档案

摘要:先上效果图: 样式: <!--DataGrid样式--> <Style TargetType="DataGrid"> <Setter Property="RowHeaderWidth" Value="0"></Setter> <Setter Property="AutoGenerateColumns 阅读全文
posted @ 2017-01-13 17:13 啊j 阅读(5644) 评论(0) 推荐(0)
摘要:1、利用shell命令,调用进程打印 string pdfPath = “testPrint.xps"; Process proc = new Process { StartInfo = { CreateNoWindow = false, WindowStyle = ProcessWindowSty 阅读全文
posted @ 2017-01-11 12:34 啊j 阅读(1114) 评论(1) 推荐(0)
摘要:WPF中在对界面进行操作的时候,可能会遇到“调用线程无法访问此对象,因为另一个线程拥有该对象”异常,这是因为WPF中只有UI线程才能操作UI元素,非UI线程要访问UI时就会报异常了。 解决方法: Dispatcher.BeginInvoke()与Invoke()方法。BeginInvoke()异步执 阅读全文
posted @ 2017-01-09 17:27 啊j 阅读(9715) 评论(1) 推荐(5)