上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 35 下一页
摘要: File.WriteAllBytes( @"C:\Windows\System32\MyDll.dll", Resources.MyDll ); 阅读全文
posted @ 2015-03-16 21:05 马语者 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 什么是正则表达式 正则表达式是用来检验和操作字符串的强大工具。简单的理解正则表达式可以认为是一种特殊的验证字符串。正则表达式常见运用是验证用户输入信息格式,比如上面的那组“\w{1,}@\w{1,}\.\w{1”,实际上就是验证邮件地址是否合法的;当然正则表达式不仅仅是用于验证,可以说只要运用字符串的地方都可以使用正则表达式; 涉及的基本的类 正则表达式在英文中写作(Re... 阅读全文
posted @ 2015-03-16 17:37 马语者 阅读(3310) 评论(0) 推荐(0) 编辑
摘要: Many people don't understand how the WPF layout system works, or how that knowledge can help them in their projects. I intend to shine a little light ... 阅读全文
posted @ 2015-03-13 19:07 马语者 阅读(294) 评论(0) 推荐(0) 编辑
摘要: You have few options you can do this, forcing to callWindow.MeasureandWindow.Arrangewill make all values to be calculated, or you can get those values... 阅读全文
posted @ 2015-03-13 18:53 马语者 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 设每年的支付金额为A,利率为i,期数为n,则按复利计算的年金终值F为: 等式两边同乘以(1+i): 上面两式相减可得: 可得: 阅读全文
posted @ 2015-03-13 10:19 马语者 阅读(13964) 评论(0) 推荐(0) 编辑
摘要: 1.字符串:string s1 = "test";string s2 = "test";string s3 = "test1".Substring(0, 4);object s4 = s3;Console.WriteLine("{0} {1} {2}", object.ReferenceEquals... 阅读全文
posted @ 2015-03-12 15:32 马语者 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1.使用ResourceManagerstring st = Properties.Resources.ResourceManager.GetString(tableName);value = Properties.Resources.ResourceManager.GetObject(fileNa... 阅读全文
posted @ 2015-03-11 18:40 马语者 阅读(1900) 评论(0) 推荐(0) 编辑
摘要: 若想实现仅在TabControl中的Tab中添加右键菜单,可在XAML中通过使用样式得到: 但是上面的菜单执行CLICK事件时会无效。把菜单放到控件资源里就好了: ... 阅读全文
posted @ 2015-03-06 19:11 马语者 阅读(2226) 评论(0) 推荐(1) 编辑
摘要: Path形状获取字符串型变量数据:var path = new Path();path.Data = Geometry.Parse("M 100,200 C 100,25 400,350 400,175 H 280"); 阅读全文
posted @ 2015-03-06 10:21 马语者 阅读(339) 评论(0) 推荐(0) 编辑
摘要: When you want to make an object binding-aware you have two choices : implements INotifyPropertyChanged or creates DependencyProperties. Which one is the best ? Let's try to answer this question !How t... 阅读全文
posted @ 2015-03-03 15:10 马语者 阅读(778) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 35 下一页