当前注册人数422581人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

40万国外源码搜索
200万国内源码搜索
相关源代码

Using RoutedCommands with a ViewModel in WPF

WPF中MVVM模式下用ViewModel使用RoutedCommand

2008年07月30日
C# (C# 3.0, C#), .NET (.NET, .NET 3.5), XAML, WPF, Architect, Dev
WPF每一个Command 都是一个RoutedEvent由Bubbling的方法(由下而上) 让Visual Tree自己决定是否执行
相关知识

This article examines a technique that makes it easy to use routed commands when the command execution logic resides in ViewModel objects. This approach cuts out the middleman; the code-behind file. It allows your ViewModel objects to be the direct recipient of routed command execution and status query notifications.

This article assumes that the reader is already familiar with data binding and templates, routed commands, attached properties, and the Model-View-ViewModel (MVVM) design pattern.

源代码原文下载:
Using RoutedCommands with a ViewModel in WPF Reviews a clean and lightweight way to use RoutedCommands in the MVVM pattern

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载306次)

最值得关注的外文源代码

WPF C# Ribbon Control Library
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论37次,此处显示最近20次评论! 查看所有评论

aa  2013年07月28日
支持一下
kary.l  2013年06月25日
就是想学习一下原生的Routedcommand怎么使用。
rch985  2012年08月04日
不错,值得学习
vangagh  2012年03月20日
写的不错。
huangjiao6094  2012年02月07日
学习了
cx4359481  2012年01月07日
谢谢分享
lgzzzz  2012年01月07日
谢谢,学习了
情缘  2011年12月11日
谢谢,学习了
平民  2011年09月06日
很好,可以了解什么是MVVM,谢谢
ycnew  2010年03月12日
WPF中MVVM模式下用ViewModel使用RoutedCommand
aimfuture  2010年02月26日
看看是否能用
tomwu2009  2010年01月08日
WPF中MVVM模式下用ViewModel使用RoutedCommand
jallen  2009年06月05日
nice
lry  2009年04月25日
WPF中MVVM模式下用ViewModel使用RoutedCommand
hostinglian  2009年03月26日
支持
forestsulin111  2009年02月06日
smartboy02  2008年12月26日
liqbzy  2008年12月18日
效果不错
cettur  2008年10月26日
doyle  2008年08月02日
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明