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

浙公网安备 33010602011771号