摘要: xaml中代码: <Canvas > <ContentPresenter Content="{Binding Canvas}"/> </Canvas> 在对应的ViewModel类中添加属性Canvas即可 阅读全文
posted @ 2023-06-25 20:33 follow_discoverer 阅读(102) 评论(0) 推荐(0)
摘要: 获取网卡IP地址代码如下: var address=System.Net.Dns.GetHostAddresses(Dns.GetHostName()).Where(m=>m.IsIPv6LinkLocal==false).Select(m=>m.ToString()).ToList(); retu 阅读全文
posted @ 2023-06-13 16:14 follow_discoverer 阅读(82) 评论(0) 推荐(0)
摘要: PerformanceCounter performanceCounter = new PerformanceCounter("Process", "Working Set - Private", Process.GetCurrentProcess().ProcessName);var result 阅读全文
posted @ 2023-06-13 16:05 follow_discoverer 阅读(23) 评论(0) 推荐(0)
摘要: <WebBrowser Source="https://www.cnblogs.com/follow-discoverer/p/17431492.html" /> 我这边的问题是主窗口界面设置了AllowTransparent=true,去掉这行代码,改用Resizemode=”CanResizeW 阅读全文
posted @ 2023-05-25 15:41 follow_discoverer 阅读(296) 评论(0) 推荐(0)
摘要: 直接上代码 public void ChangeColorStyle() { ResourceDictionary resource=new ResourceDictionary(); for(int i=0;i<Appliation.Current.Resources.MegedDictionar 阅读全文
posted @ 2023-05-05 22:06 follow_discoverer 阅读(288) 评论(0) 推荐(0)
摘要: 1 public static void ExportToPng(this Canvas canvas,Uri path) 2 { 3 if(path==null) 4 { 5 return; 6 } 7 Transform transform =canvas.LayoutTransform; 8 阅读全文
posted @ 2023-04-27 18:26 follow_discoverer 阅读(526) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="./js/vue.js"></script> <style scoped lang='scss'> </style> </head> < 阅读全文
posted @ 2023-03-18 14:33 follow_discoverer 阅读(31) 评论(0) 推荐(0)
摘要: 可在在windows系统中搜索event找到事件查看器,进入事件查看器,在windows日志目录下,点击应用程序。在右边的事件列表中找到事件ID为1026的即为.net Runtime错误。 阅读全文
posted @ 2023-03-04 10:49 follow_discoverer 阅读(224) 评论(0) 推荐(0)
摘要: 一、dnSpy 反编译工具 阅读全文
posted @ 2023-02-22 16:13 follow_discoverer 阅读(19) 评论(0) 推荐(0)
摘要: 背景:在一个项目中用TCP通讯的方式触发海康相机进行二维码识别并回传二维码信息。 问题:在测试过程中发现经常会有读取到的信息是上一个产品的二维码信息。 原因分析:在TCP通讯时,发送完触发读取二维码的指令之后,加了个延时时间,等这个延时时间过后再去读取缓冲区的数据。然而由于相机解码并回传二维码信息需 阅读全文
posted @ 2023-02-17 16:54 follow_discoverer 阅读(581) 评论(0) 推荐(0)