会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Michaellln
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
随笔:32 文章:2 评论:4 阅读:
34809
2024年1月19日
C#获取时间戳
摘要: #region 获取时间戳 /// <summary> /// 获取时间戳 /// </summary> /// <param name="ismilliseconds">是否获取毫秒时间戳</param> /// <returns></returns> public static long Get
阅读全文
posted @ 2024-01-19 16:54 白驹隙
阅读(335)
评论(0)
推荐(0)
编辑
2023年9月18日
WPF禁用Windows窗口自带的关闭按钮(非关闭拦截)
摘要: #region 禁用关闭按钮 [DllImport("USER32.DLL", CharSet = CharSet.Unicode)] private static extern IntPtr GetSystemMenu(IntPtr hWnd, UInt32 bRevert); [DllImpor
阅读全文
posted @ 2023-09-18 19:19 白驹隙
阅读(564)
评论(0)
推荐(0)
编辑
2022年5月25日
以圆角裁剪控件
摘要: public override void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { if (sender is FrameworkElement element) { if (e.N
阅读全文
posted @ 2022-05-25 15:52 白驹隙
阅读(24)
评论(0)
推荐(0)
编辑
标记RichTextBox中符合正则的文字为链接
摘要: public override void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { if (sender is RichTextBox rcontrol) { Task.Delay(
阅读全文
posted @ 2022-05-25 15:49 白驹隙
阅读(29)
评论(0)
推荐(0)
编辑
2022年5月9日
WPF中RichTextBox高度自适应问题解决方法(转载)
摘要: https://www.cnblogs.com/goxmpx/p/3741727.html
阅读全文
posted @ 2022-05-09 10:28 白驹隙
阅读(165)
评论(0)
推荐(0)
编辑
2022年4月23日
Winform中打开对应窗口标题的窗口
摘要: 1 public static class WindowsMessageHelper 2 { 3 4 public const int WM_COPYDATA = 0x004A; 5 6 [DllImport("User32.dll", EntryPoint = "SendMessage")] 7
阅读全文
posted @ 2022-04-23 12:25 白驹隙
阅读(164)
评论(0)
推荐(0)
编辑
2022年4月19日
C# 获取字符串的字节长度
摘要: System.Text.Encoding.Default.GetByteCount("中文占2个字节,英文占1个字节");
阅读全文
posted @ 2022-04-19 17:11 白驹隙
阅读(185)
评论(0)
推荐(0)
编辑
2022年4月12日
RichTextBox解决回车的问题
摘要: richtext.AppendText("\n"); richtext.Selection.Select(richtext.Document.ContentEnd,richtext.Document.ContentEnd);
阅读全文
posted @ 2022-04-12 17:01 白驹隙
阅读(218)
评论(0)
推荐(0)
编辑
2022年4月11日
WPF中从资源中检索指定路径的图片文件
摘要: ResourceManager resourceManager = new($"{Assembly.GetExecutingAssembly().GetName().Name}.g", Assembly.GetExecutingAssembly()); ResourceSet resources =
阅读全文
posted @ 2022-04-11 15:10 白驹隙
阅读(261)
评论(0)
推荐(0)
编辑
2022年3月7日
RichTextBox 性能问题的解决方式(不用RichTextBox)
摘要: 在WPF聊天应用开发中遇到了一个RichTextBox性能问题,体现为: 1.中文打字速度正常,但英文打字较慢,会出现延迟的情况 2.文字多到上千字时,会非常卡顿 3.有个功能,需要@用户,输入@时弹出下拉框选择用户,RichTextBox做起来很麻烦 目前找到了一个比较完美的替代方案: Avalo
阅读全文
posted @ 2022-03-07 15:32 白驹隙
阅读(1126)
评论(1)
推荐(0)
编辑
下一页
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
公告
昵称:
白驹隙
园龄:
7年11个月
粉丝:
2
关注:
7
+加关注
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
我的标签
C#
(18)
WPF
(6)
Dictionary
(2)
Winform
(1)
Style
(1)
虚拟化
(1)
集合
(1)
随笔档案
2024年1月(1)
2023年9月(1)
2022年5月(3)
2022年4月(4)
2022年3月(1)
2022年1月(1)
2021年12月(3)
2021年11月(1)
2020年5月(15)
2019年12月(1)
2017年10月(1)
阅读排行榜
1. C# 获取时间戳(支持毫秒)(8820)
2. C#时间戳转日期(3716)
3. 将Base64文本转为普通文本(2211)
4. C#中 Stream转为byte[](2003)
5. C#中 DateTime 转 DateTimeOffset(1611)
评论排行榜
1. C#中 Stream转为byte[](2)
2. RichTextBox 性能问题的解决方式(不用RichTextBox)(1)
推荐排行榜
1. C# 以GZip解压缩(1)
2. C# WPF中 SecureString 转 String(1)
3. 关于Windows锁屏对WPF渲染的影响(1)
最新评论
1. Re:RichTextBox 性能问题的解决方式(不用RichTextBox)
用什么 比较好?
--boy8199
2. Re:C#中 Stream转为byte[]
@Festone 你行你上,别BB...
--白驹隙
3. Re:C#中 Stream转为byte[]
瞎瘠薄抄,错哪了不知道吧?
--Festone
4. Re:WPF 应用列表虚拟化并且使之滚动平滑不僵硬
居然不支持gif,,,我等有空再来弄吧,,,,示例图片问题其实也不大。。。
--白驹隙
点击右上角即可分享