- 博客(7)
- 收藏
- 关注
原创 备忘:WPF中ListView模板设计技巧
要设计一个比较好看的ListView,可能需要写一个比较复杂的ListViewItem的Style,以下是一个Style示例,其中有许多没怎么用过的属性,在此记下以供以后查看。
2016-03-29 14:45:30
1344
原创 C#绑定快捷键
本文仅为博主备忘用相关引用using System.Windows.Input;绑定命令 public List InputKeyBindings = new List();public ICommand AddCommand;InputKeyBindings.Add(new KeyBinding { Modifiers = ModifierKeys.A
2016-02-18 10:56:11
1010
原创 ValidationAttribute
private string textContent; [RequiredAttribute(ErrorMessage = "[用户名]不能为空")] [StringLength(255, ErrorMessage = "[用户名]内容最大允许255个字符!")] [RegularExpression("^[A-Za-z0-9]+$", Error
2016-02-17 15:42:29
726
原创 在WPF上实现系统消息获
WindowInteropHelper helper = new WindowInteropHelper(window); IntPtr handle = helper.Handle; HwndSource hs = HwndSource.FromHwnd(handle); hs.AddHook(new HwndSource
2016-02-17 10:37:42
333
原创 OSGi.Demo知识点
从Dll中获取函数: IntPtr DllIntPtr = LoadLibrary("Dll文件路径");IntPtr MethodPtr = GetProcAddress(DllIntPtr, "函数名", methodType);Marshal.GetDelegateForFunctionPointer(MethodPtr, methodtype);从Dll中获取类
2016-02-17 10:28:11
279
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人