摘要: 在应用 Command 模式中,需要在View上点击 一个按钮,需要将当前窗体作为参数传递为 command两种方式传递当前窗体1、通过窗体名称(假设窗体名称为 ThisWindow) 2、绑定到 RelativeSource-------------------------------------------------------------------------------------------------------------------以下是ViewModel中的 Command 代码 private DelegateCommand _cancelCommand = nul.. 阅读全文
posted @ 2013-12-14 10:06 巴别塔 阅读(11947) 评论(0) 推荐(3) 编辑