2013年3月27日

WPF Textbox 中文输入崩溃 规避

摘要: WPF TextBox.TextChanged 中文输入 和 MessageBox.Show 冲突 阅读全文

posted @ 2013-03-27 17:36 xiaoboz 阅读(521) 评论(0) 推荐(0)

HexInput

摘要: 基本思路PreviewTextInputOnTextChangeOnLostFocusPreviewKeyDownHexInput.xaml1 <UserControl x:Class="MeterGui_BlendView.HexInput"2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"4 xmlns:mc="http. 阅读全文

posted @ 2013-03-27 15:05 xiaoboz 阅读(250) 评论(0) 推荐(0)

HexEditor

摘要: 阅读全文

posted @ 2013-03-27 11:07 xiaoboz 阅读(919) 评论(2) 推荐(1)

2013年3月19日

Table访问

摘要: 1、已知table 1 Display={ 2 unknown={disp={'unknown','未知网元类型'}}, 3 cxt500={disp={'cxt500 ne','cxt500网元'}}, 4 cxt100={disp={'cxt100 ne','cxt100网元'}}, 5 cxt20b={disp={'cxt20b ne','cxt20b网元'}}, 6 cxt20c={disp={'cxt20c ne','cxt20c网元 阅读全文

posted @ 2013-03-19 11:18 xiaoboz 阅读(250) 评论(0) 推荐(0)

2013年3月18日

WPF 关于多语言 的实现 学习,利用反射中的特性

摘要: 1、创建一个表示各语言显示string的特性类MyAttribute 1 using System; 2 using System.Collections.Generic; 3 4 namespace MyTypeLib 5 { 6 public sealed class DisplayAttribute : System.Attribute 7 { 8 public String Description { get; set; } 9 public Dictionary<string, string> Display = new Dictio... 阅读全文

posted @ 2013-03-18 16:52 xiaoboz 阅读(384) 评论(0) 推荐(0)

2013年3月16日

自定义控件.依赖项属性同步更新内部控件属性

摘要: 1 using System.Windows; 2 using System.Windows.Controls; 3 using System.Windows.Data; 4 5 namespace CXTWpfControlLibrary 6 { 7 /// <summary> 8 /// DControl.xaml 的交互逻辑 9 /// </summary>10 public partial class DControl : UserControl11 {12 public DControl()13 {14 ... 阅读全文

posted @ 2013-03-16 12:01 xiaoboz 阅读(339) 评论(0) 推荐(0)

导航