09 2023 档案
摘要:一、回车事件 写法1: 绑定: TextPassWord.KeyDown += TextPassWord_KeyDown; private void TextPassWord_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Ente
阅读全文
摘要:在线程While中使用Thread.Sleep导致界面卡顿,替代方案: public static void Delay(int mm) { DateTime current = DateTime.Now; while (current.AddMilliseconds(mm) > DateTime.
阅读全文
摘要:一、图片与字节数组互转 private void Test() { string picPath = @"C:\Users\Public\Pictures\Sample Pictures\Cat.jpg"; byte[] photo = ImageToByte(picPath); pictureBo
阅读全文