摘要:
首先解决上一篇博客未解决的问题。上次博客中还有一种命令(BoundCommad)没讲到。命令源还是不变的。变得是:我们对命令源封装成属性:命令源ShowMessageCommand:代码public class ShowMessageCommand { [Preview("CanExecute")] public void Execute(string message) { MessageBox.Show(message); } public bool CanExecute(string message) { return !string.IsNullOrEmpty(mes 阅读全文