会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
马肯尼煤牙巴骨
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
18
19
20
21
22
23
24
25
下一页
2019年7月25日
[WPF]鼠标位置捕捉
摘要: private void StackPanel_MouseMove(object sender, MouseEventArgs e) { Debug.WriteLine("Move"); Point spRel = e.GetPosition((IInputElement)e.OriginalSou
阅读全文
posted @ 2019-07-25 16:58 马肯尼煤牙巴骨
阅读(316)
评论(0)
推荐(0)
2019年7月24日
[WPF]使用CheckAccess检测是否在控件的ui线程上执行
摘要: private void Parallel(object sender, RoutedEventArgs e) { Task.Run(() => ChangeColour(Brushes.Red)); } private void Standard(object sender, RoutedEventArgs e) { ChangeColour(Brushes.Green);...
阅读全文
posted @ 2019-07-24 20:58 马肯尼煤牙巴骨
阅读(881)
评论(0)
推荐(0)
2019年6月5日
wpf 禁用window的systemmenu
摘要: private IntPtr WidProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { if (msg == 0x112) { if (wParam.ToInt32() == 0xF0...
阅读全文
posted @ 2019-06-05 16:59 马肯尼煤牙巴骨
阅读(363)
评论(0)
推荐(0)
2019年5月16日
wpf 高DPI开发
摘要: https://blog.walterlv.com/post/windows-high-dpi-development.html https://blog.csdn.net/ZslLoveMiwa/article/details/81294311 https://blog.csdn.net/blea
阅读全文
posted @ 2019-05-16 16:09 马肯尼煤牙巴骨
阅读(360)
评论(0)
推荐(0)
2019年4月15日
wpf.xaml.behavior
摘要: Install-Package Microsoft.Xaml.Behaviors.Wpf
阅读全文
posted @ 2019-04-15 10:50 马肯尼煤牙巴骨
阅读(850)
评论(1)
推荐(0)
2019年4月9日
WPF RichTextBox 导出与加载
摘要: private void Button_Click(object sender, RoutedEventArgs e) { string savePth = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "richtextboxData.data"); ...
阅读全文
posted @ 2019-04-09 15:18 马肯尼煤牙巴骨
阅读(414)
评论(0)
推荐(0)
备份一个支持虚拟化的wrappanel
摘要: public class VirtualizingWrapPanel : VirtualizingPanel, IScrollInfo { #region Fields UIElementCollection _children; ItemsControl _itemsControl; IItemContaine...
阅读全文
posted @ 2019-04-09 11:31 马肯尼煤牙巴骨
阅读(200)
评论(2)
推荐(0)
2019年4月4日
FileHelper
摘要: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Windows.Forms; namespace DocDecrypt.Common { public class FileHelper { private stati...
阅读全文
posted @ 2019-04-04 09:13 马肯尼煤牙巴骨
阅读(582)
评论(0)
推荐(0)
2019年3月27日
机器码的获取
摘要: 首先在添加引用中选中System.Management 再在开始部门: using System.Management; using System.Management.Instrumentation; private void GetInfo() { string cpuInfo = "";//cpu序列号 ManagementClass cimobject = new Managem...
阅读全文
posted @ 2019-03-27 16:09 马肯尼煤牙巴骨
阅读(844)
评论(0)
推荐(0)
非对称加密
摘要: string outPutString = null; string prikey; string pubkey; bool isSeccess = false; using (RSACryptoServiceProvider rsa = new RSACryptoServic...
阅读全文
posted @ 2019-03-27 15:48 马肯尼煤牙巴骨
阅读(169)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
下一页
公告