随笔分类 - C#
C# Program
摘要:Webview2动态设置页面video的Blob进行播放
阅读全文
摘要:WPF刮刮乐 <Window x:Class="WpfApp2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi
阅读全文
摘要:WPF里webview2会一直处于其他控件最上层,是个历史遗留问题。
为了能在webview2里鼠标移动让窗体跟着移动位置
阅读全文
摘要:通过WebView2获取HTTP-only cookie可以使用`WebView2.CookieManager`类的方法。以下是一个示例代码,演示如何获取HTTP-only cookie: using System; using Microsoft.Web.WebView2.Core; using
阅读全文
摘要:C# HOOK 键盘事件 /* by: wgscd date:2023-8-15 desc: test hook in c# */ using System; using System.Collections.Generic; using System.Linq; using System.Text
阅读全文
摘要:wpf ScrollViewer 滚动动画
阅读全文
摘要:C#调用IronOcr识别文字不理想
阅读全文
摘要:C# 调用FFmpeg 合并视频和音频
阅读全文
摘要:httpClient.SendAsync(httpreq, HttpCompletionOption.ResponseHeadersRead);
阅读全文
摘要:private const int WS_EX_TRANSPARENT = 0x20; private const int GWL_EXSTYLE = -20; /// <summary> /// window 扩展样式 分层显示 /// </summary> private const int W
阅读全文
摘要:例如将字体放入d:/Fonts 文件夹。然后就可以通过类似 btn.FontFamily = new FontFamily("file:///d:/Fonts/#Ashley");的形式使用。 获取字体文件的字体名称: string fontFilePath = "d:\\Fonts\\ygyxsz
阅读全文
摘要:一个巧妙的设计 原理:利用async 标识方法执行异步处理 List<long> listIds = new List<long>();//业务任务:假设处理这个列表的任务 object lockObj = new object();//锁对象 bool stopFlag = false;//停止标
阅读全文
摘要://by wgscd //date:2022/11/7 UI: <Path Stroke="Red" Data="{Binding path}" RenderTransformOrigin="0.5,0.5"> <Path.RenderTransform> <TransformGroup> <Sca
阅读全文
摘要:c# 设置桌面壁纸: 只在win10 上测试了,不知道其它系统如何。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawin
阅读全文