摘要: RelayCommand : ICommand类A command whose sole purpose is to relay its functionality to otherobjects by invoking delegates. The default return value for the CanExecutemethod is 'true'. This class does not allow you to accept command parameters in theExecute and CanExecute callback methods.用来转发 阅读全文
posted @ 2011-08-12 09:01 孤狼晖 阅读(763) 评论(0) 推荐(0) 编辑
摘要: The definition of this class:The IsInDesignMode property is used to indicate whether is in the DesignMode.When we design the UI we usually use the blend ,so we need this property to bindthe view to a simple viewModel . 阅读全文
posted @ 2011-08-12 09:00 孤狼晖 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 当我们使用MVVM开发模式进行开发时,ViewModel之间的通信常常是很头疼的事情,好在MVVM Light提供了Messenger类可以轻松的在ViewModel之间传递消息。MessengerMessenger 其他类成员可以通过Register 方法 来建立与Messenger的联系,注册时包含当收到Message的时候要执行的方法。当使用Send方法时,注册的相关的方法将会被调用。The Messager is a class allowing objects to exchange message.主要成员:Register method ://Registers a recipi 阅读全文
posted @ 2011-08-12 08:58 孤狼晖 阅读(960) 评论(0) 推荐(1) 编辑
摘要: 当我们使用依赖属性的时候,有时需要监听它的变化,这在写自定义控件的时候十分有用,下面介绍一种简单的方法。如下使用DependencyPropertyDescriptorDependencyPropertyDescriptor prop = DependencyPropertyDescriptor.FromProperty( MyType.MyDependencyProperty, typeof(M... 阅读全文
posted @ 2011-08-12 08:51 孤狼晖 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 转自:http://10rem.net/blog/2009/12/01/the-future-of-client-app-dev--wpf-and-silverlight-convergenceSilverlight has come an amazing distance since the initial 1.0 release and 1.1 alpha (controls? who needs controls?) just over two years ago. It’s hard to believe that we’re on Silverlight 4 in such a sh 阅读全文
posted @ 2011-05-26 16:04 孤狼晖 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.codeproject.com/KB/WPF/WPFSilverLight.aspxIntroductionThis article talks about 21 important FAQ from the perspective of WPF and Silver light. Both of these technologies are connected to a certain extent. This article not only explains the theory aspect of these technologies but also sho 阅读全文
posted @ 2011-05-26 08:51 孤狼晖 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 原文地址http://devlicio.us/blogs/christopher_bennage/archive/2010/03/29/d-designinstance-in-blend-4.aspx在blend 中设计View的时候View的DataContext 常常从父级继承。这是在Dinding的时候出现不方便。可以在xaml 中添加如下代码xmlns:d="http://schemas.microsoft.com/expression/blend/2008"d:DataContext="{d:DesignInstance {x:Type vm:MainW 阅读全文
posted @ 2011-03-31 15:42 孤狼晖 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.switchonthecode.comRelated Posts XAML Tutorial - Changing Text Color on Mouse Over WPF Tutorial - Custom Control Templates WPF - The BasedOn Style Property WPF Tutorial - Binding Converters When it comes to the WinForm's Tab Control, there was a lot left to be desired. If you had to 阅读全文
posted @ 2011-01-22 00:11 孤狼晖 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: 转自wiki多用途互联网邮件扩展(MIME,Multipurpose Internet Mail Extensions)是一个互联网标准,它扩展了电子邮件标准,使其能够支持非ASCII字符、二进制格式附件等多种格式的邮件消息。这个标准被定义在RFC 2045、RFC 2046、RFC 2047、RFC 2048、RFC 2049等RFC中。 由RFC 822转变而来的RFC 2822,规定电子邮件标准并不允许在邮件消息中使用7位ASCII字符集以外的字符。正因如此,一些非英语字符消息和二进制文件,图像,声音等非文字消息都不能在电子邮件中传输。MIME规定了用于表示各种各样的数据类型的符号化方法 阅读全文
posted @ 2011-01-19 16:00 孤狼晖 阅读(273) 评论(0) 推荐(0) 编辑