上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 49 下一页
摘要: 添加代理 public class BindingProxy:Freezable { protected override Freezable CreateInstanceCore() { return new BindingProxy(); } public object DataContext 阅读全文
posted @ 2025-03-12 10:56 Hey,Coder! 阅读(27) 评论(0) 推荐(0)
摘要: [DllImport("kernel32.dll")] static extern bool GenerateConsoleCtrlEvent(int dwCtrlEvent, int dwProcessGroupId); [DllImport("kernel32.dll")] static ext 阅读全文
posted @ 2025-03-05 22:35 Hey,Coder! 阅读(159) 评论(0) 推荐(0)
摘要: 通过Blend复制原有样式后修改 <Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}"> <Setter Property="OverridesDefaultStyle" Value="true"/> <Sett 阅读全文
posted @ 2025-03-02 16:00 Hey,Coder! 阅读(336) 评论(0) 推荐(0)
摘要: NAudio var enumerator = new MMDeviceEnumerator(); var devices = enumerator.EnumerateAudioEndPoints(DataFlow.Capture, DeviceState.All); foreach (var de 阅读全文
posted @ 2025-03-01 17:33 Hey,Coder! 阅读(176) 评论(0) 推荐(0)
摘要: 通过自定义变换,使用此方法画笔擦除模式为EraseByPoint时无法按点擦除(可以考虑第二种方案) <InkCanvas x:Name="inkCanvas" Background="White" > <InkCanvas.DefaultDrawingAttributes> <!--<Drawin 阅读全文
posted @ 2025-02-25 23:02 Hey,Coder! 阅读(76) 评论(0) 推荐(0)
摘要: // 克隆一个现有的文化 CultureInfo customCulture = (CultureInfo)CultureInfo.GetCultureInfo("zh-CN").Clone(); // 修改时间显示格式 customCulture.DateTimeFormat.ShortDateP 阅读全文
posted @ 2025-02-25 10:20 Hey,Coder! 阅读(68) 评论(0) 推荐(0)
摘要: 前台 <Window x:Class="FinalTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2025-02-23 21:33 Hey,Coder! 阅读(67) 评论(0) 推荐(0)
摘要: 配置属性如下 直接翻译文本即可 阅读全文
posted @ 2025-02-22 00:57 Hey,Coder! 阅读(151) 评论(0) 推荐(0)
摘要: 引用surfer安装后自动添加的com组件 代码调用 using Surfer; Application app = new Application(); var path = AppDomain.CurrentDomain.BaseDirectory; app.GridData2(DataFile 阅读全文
posted @ 2025-02-11 16:02 Hey,Coder! 阅读(175) 评论(0) 推荐(0)
摘要: 安装nuget【Ude.NetStandard】 using (FileStream fs = File.OpenRead(ParseFilePath)) { Ude.CharsetDetector cdet = new Ude.CharsetDetector(); cdet.Feed(fs); c 阅读全文
posted @ 2025-01-15 17:40 Hey,Coder! 阅读(248) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 49 下一页