上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 35 下一页
摘要: 这是.NET反射的一个有趣小例子: 通过反射将变量值转为变量名本身. 当然要先添加命名空间:using System.Reflection; 示例代码如下: class Program { string name = "strA"; string strA = "strB"; string strB = "Hello... 阅读全文
posted @ 2014-12-03 14:45 马语者 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 解决办法是在控件初始化时,通过下面方法再次加载图片: ucCanvas.CreateCoordinateImage.Source = GetImageIcon(global::MainApplication.Properties.Resources.DL_Coordinate2); private static BitmapImage GetImageIcon(System.Dr... 阅读全文
posted @ 2014-12-02 17:22 马语者 阅读(2192) 评论(0) 推荐(0) 编辑
摘要: Posted: June 30, 2013 | Filed under: MVVM, WPF, XAML |1 Comment In a WPF application that uses the MVVM (Model-View-ViewModel) design pattern, the view model is the component that is responsible fo... 阅读全文
posted @ 2014-12-02 11:21 马语者 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 方法1:In the solution property page, check the platform of the assembly that contains "UpdatingMediaElement" and the assmeblies that contain any of the ... 阅读全文
posted @ 2014-11-28 14:45 马语者 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: Windows 版本号标识区别一览表: 版本缩写 版本全称 版本意义 Alpha版 Alpha 内部测试版,一般不会向外部发布,会有很多Bug,只供测试人员使用,如果您看到Alpha版本了,一般来讲对于微软来讲可能是个不好的消息。 Beta版 Beta 也是测试版,是继Alpha之后推出,这个阶段的版本会不断加入新的功能,改动也会较大,也会面向市场测试。 R... 阅读全文
posted @ 2014-11-28 08:53 马语者 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: Introduction Value resolution strategy The magic behind it How to create a DepdencyProperty Readonly DependencyProperties Attached DependencyProperties Listen to dependency property changes ... 阅读全文
posted @ 2014-11-27 17:35 马语者 阅读(423) 评论(0) 推荐(0) 编辑
摘要: public:对任何类和成员都公开, 无限制访问;protected:仅仅对该类以及该类的派生类公开;private: 仅仅对该类公开;internal:只能值包含该类的程序集中访问该类(只是单独的项目,而不是整个解决方案);protected internal:只能在本类,派生类或者包含该类的程序... 阅读全文
posted @ 2014-11-25 16:56 马语者 阅读(337) 评论(0) 推荐(0) 编辑
摘要: In the previous chapter, we wrote XML using the XmlWriter class. However, for some situations, especially when doing updates of existing XML, using th... 阅读全文
posted @ 2014-11-17 15:58 马语者 阅读(384) 评论(0) 推荐(0) 编辑
摘要: if ((Keyboard.Modifiers & ModifierKeys.Control) > 0 && (e.Key == Key.Delete)) { CabinetElement.RemoveActiveCabinets(this); } 阅读全文
posted @ 2014-10-29 20:52 马语者 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 错误 1 类型“System.Windows.Markup.IQueryAmbient”在未被引用的程序集中定义。必须添加对程序集“System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。 D:\VisualStudio\2013\TestClient\TestCl... 阅读全文
posted @ 2014-09-28 11:07 马语者 阅读(5411) 评论(0) 推荐(1) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 35 下一页