09 2019 档案
摘要:gn args out\Debug_GN_x86 用来配置编译参数,执行gn args out\Release_GN_x86时异常: Toolchain is out of date. Run "gclient runhooks" to update the toolchain, or set DE
阅读全文
摘要:编译CefSharp生成后一个libcef_dll_wrapper.lib时,供CefSharp使用。结果CefSharp编译的时候报错。遇到以下异常: libcef_dll_wrapper.lib(binary_value_ctocpp.obj) : error LNK2038: 检测到“Runt
阅读全文
摘要:之前的ResourceDictionary主题资源替换(一)通过加载顺序来覆盖之前的主题资源,介绍了WPF框架对ResourceDictionary资源的合并规则。 此篇介绍一种在编译期间,实现资源替换的方案 前言 如下图,项目中存在俩个主题资源字典,我们想通过配置一键修改项目的主题。 首先,我们默
阅读全文
摘要:mark一下~ 打开文件 1.打开文件夹: System.Diagnostics.Process.Start(FolderPath);-- 打开文件夹 System.Diagnostics.Process.Start(FolderPath+"/"+FileName); -- 打开文件夹中某个文件 2
阅读全文
摘要:在xaml中控件通过绑定静态资源StaticResource来获取样式Style有多种方式,TextBlockStyle.xaml是一个ResourceDictionary,包含了所需样式 通过相对路径引用 通过后台代码向当前程序的资源中动态添加,代码如下: Application.LoadComp
阅读全文
摘要:发送winform-Key值键盘消息 1.发送键盘消息 1 [DllImport("user32.dll", EntryPoint = "keybd_event", SetLastError = true)] 2 public static extern void keybd_event( 3 by
阅读全文
摘要:System.Drawing.Color String color = System.Drawing.ColorTranslator.ToHtml(colorEdit1.Color); //将Color对象转为String对象。如#AABBCC这种 colorEdit1.Color = System
阅读全文