<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx</link><description>I thought I should add a post with the full list of posts in the D-V-VM pattern. They are: DataModel-View-ViewModel pattern: 1 (overview) DataModel-View-ViewModel pattern: 2 (first implementation of DataModel class) DM-V-VM part 3: A sample DataModel</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>The DataModel-View-ViewModel pattern</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#819256</link><pubDate>Thu, 12 Oct 2006 14:13:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:819256</guid><dc:creator>Andrew Stopford's Weblog</dc:creator><description>&lt;p&gt;Dan Crevier has series of posts on the DM-V-VM pattern, including how to implement it and how ot test&lt;/p&gt;</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#819943</link><pubDate>Thu, 12 Oct 2006 19:18:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:819943</guid><dc:creator>Bryant Likes</dc:creator><description>&lt;p&gt;Thanks! Now you just need a DM-V-VM tag so that all your posts come up in one place. :)&lt;/p&gt;</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#881912</link><pubDate>Fri, 27 Oct 2006 20:32:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:881912</guid><dc:creator>Houman</dc:creator><description>&lt;p&gt;Thanks this was great. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I specially liked the way you injected control into the StockModel [StockModel(symbol, IStockQuoteProvider)]&lt;/p&gt;
&lt;p&gt;To be honest, I had some difficulty grasbing the why &amp;amp; how of the ActivateModel. &amp;nbsp;I had to really think about it, but I think I get it now...with that said, would you please give an example of why you needed to do reference counting? &amp;nbsp;In other words: For which scenarios the ActiviateModel you described isn't good enough?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Houman&lt;/p&gt;</description></item><item><title>DataView-View-ViewModel pattern</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#902765</link><pubDate>Mon, 30 Oct 2006 12:40:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:902765</guid><dc:creator>Life, Universe and Everything according to Dirk</dc:creator><description>&lt;p&gt;I may have included one of those in one of my link roundups, but this is a topic very dear to my heart&lt;/p&gt;
</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#905328</link><pubDate>Tue, 31 Oct 2006 06:05:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:905328</guid><dc:creator>dancre</dc:creator><description>&lt;p&gt;One example scenario where I needed ref counting in the activation was in Max when we had nested views where the inner view's template was chosen programmatically based on the model state. Both the outer view and inner view needed to activate the model. If you don't need this, no need to add the complexity.&lt;/p&gt;
</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#909786</link><pubDate>Tue, 31 Oct 2006 16:25:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:909786</guid><dc:creator>Suhas Sane</dc:creator><description>&lt;p&gt;Thanks for a post, it is very good. Currently I am working on creating a back end accounting application with WPF. Since we anticipate many calls to service layer (WCF), I liked the concept of DataModel. It was curious that the constructor of the viewModel \ DataModel is doing actual data extraction. I would have thought you will have separate GetData Method. Usually I try to perform minimal task in constructors.&lt;/p&gt;
&lt;p&gt;I am also struggling about how to write an automated unit test for the PortfolioViewModel equivalent. To test the behavior of AddCommandModel and RemoveCommandModel etc. Any information you can provide in that domain can be helpful.&lt;/p&gt;</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#911342</link><pubDate>Tue, 31 Oct 2006 18:21:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:911342</guid><dc:creator>dancre</dc:creator><description>&lt;p&gt;Actually the data extraction really happens when the model is activated.&lt;/p&gt;
&lt;p&gt;To unit test AddCommandModel/RemoveCommandModel, you can set up some test data in PortfolioViewModel. Then, you can get the commands through the PropertyViewModel accessors and call OnQueryEnabled and OnExecute with different parameters to try it out. In cases where you need to get to private methods and data, use PrivateObject or PrivateType.&lt;/p&gt;
</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#1069548</link><pubDate>Mon, 13 Nov 2006 20:07:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1069548</guid><dc:creator>Suhas Sane</dc:creator><description>&lt;p&gt;I tried to use your suggestion to call OnQueryEnabled &amp;nbsp;and OnExecute &amp;nbsp;directly. I keep getting error &amp;quot;The type CanExecuteRoutedEventArgs has no constructors defined&amp;quot;. &amp;nbsp;I am not able to find any sample which directly instantiates this class.&lt;/p&gt;
&lt;p&gt;My aim is to create a console application to test the behavior of presenter. I guess if I create a windows based application I can use command binding and test this via Command object. But not sure how to do this in Console app.&lt;/p&gt;</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#1069710</link><pubDate>Mon, 13 Nov 2006 20:27:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1069710</guid><dc:creator>dancre</dc:creator><description>&lt;p&gt;You can use Visual Studio's PrivateObject helper class to help out:&lt;/p&gt;
&lt;p&gt;Type[] types = { typeof(ICommand), typeof(object) };&lt;/p&gt;
&lt;p&gt;object[] param = { myRoutedCommand, null };&lt;/p&gt;
&lt;p&gt;PrivateObject privateCanExecuteArgs = new PrivateObject(typeof(CanExecuteRoutedEventArgs), types, param);&lt;/p&gt;
&lt;p&gt;CanExecuteRoutedEventArgs canExecuteArgs = (CanExecuteRoutedEventArgs)privateCanExecuteArgs.Target;&lt;/p&gt;
&lt;p&gt;You can do this from a command line app.&lt;/p&gt;
</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#1318205</link><pubDate>Mon, 18 Dec 2006 23:35:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1318205</guid><dc:creator>Mike Brown</dc:creator><description>&lt;p&gt;Regarding multiple parameters for the CommandModel: what if we set the ViewModel as the parameter for the CommandModel. This way the CommandModel can be the link between the ViewModel and the DataModel and can validate against N number of values.&lt;/p&gt;</description></item><item><title>re: DataModel-View-ViewModel pattern series</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#1322970</link><pubDate>Tue, 19 Dec 2006 08:38:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1322970</guid><dc:creator>dancre</dc:creator><description>&lt;p&gt;Yes, that would definitely work. If you do things through an interface, it will keep the command from being specific to one view model.&lt;/p&gt;
</description></item><item><title>CREATING A .NET TWITTER API in 4.5 SECONDS</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#3173007</link><pubDate>Sat, 09 Jun 2007 04:31:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3173007</guid><dc:creator>IRhetoric - Karsten Januszewski  </dc:creator><description>&lt;p&gt;I've been meaning to document how I wrapped the Twitter API ... in 4.5 seconds. There is a very powerful&lt;/p&gt;
</description></item><item><title>CREATING A .NET TWITTER API in 4.5 SECONDS</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#3972384</link><pubDate>Fri, 20 Jul 2007 12:16:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3972384</guid><dc:creator>外部部落格</dc:creator><description>&lt;p&gt;I&amp;amp;#39;ve been meaning to document how I wrapped the Twitter API ... in 4.5 seconds. There is a very powerful&lt;/p&gt;
</description></item><item><title>De WPF Integratio (About WPF Integration)</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8382063</link><pubDate>Fri, 11 Apr 2008 23:55:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8382063</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Introduction I&amp;amp;#39;ve been posting a lot about Silverlight lately, but hey, here is a WPF post, and about&lt;/p&gt;
</description></item><item><title>MiniMVC for WPF</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8420615</link><pubDate>Thu, 24 Apr 2008 06:30:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8420615</guid><dc:creator>Ryan Cromwell</dc:creator><description>&lt;p&gt;Tonight I presented for the Dayton .Net Developers Group on WPF. Unlike my previous Lap Around WPF @&lt;/p&gt;
</description></item><item><title>Using the Presentation Model in WPF</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8441506</link><pubDate>Wed, 30 Apr 2008 08:37:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8441506</guid><dc:creator>Julian Dominguez</dc:creator><description>&lt;p&gt;In this post (of what may become a series of posts if I find some interest from the community) I compare&lt;/p&gt;</description></item><item><title>Prism and Caliburn's Future</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8577856</link><pubDate>Fri, 06 Jun 2008 16:24:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8577856</guid><dc:creator>.NET &amp; Funky Fresh</dc:creator><description>&lt;p&gt;First I&amp;amp;#39;d like to say that I&amp;amp;#39;m stoked about the work the Prism team has been doing.&amp;amp;#160; I have&lt;/p&gt;</description></item><item><title>[WPF] Data Model - View Model - View</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8667157</link><pubDate>Sun, 29 Jun 2008 15:09:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8667157</guid><dc:creator>Obiwan Jacobi</dc:creator><description>&lt;p&gt;This post is based on an interpretation of a pattern called View-View Model-Document or View-View Model&lt;/p&gt;</description></item><item><title>Pattern pour WPF : le MVP, le MVC, le MV-VM ... au secours !</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8837356</link><pubDate>Wed, 06 Aug 2008 16:39:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8837356</guid><dc:creator>Elise's blog</dc:creator><description>&lt;p&gt;Apr&amp;#232;s avoir particip&amp;#233; &amp;#224; quelques projets WPF depuis maintenant un peu plus d'un an, je suis dans une&lt;/p&gt;</description></item><item><title>[WPF] Patterns : le MVC, le MV-VM, et le DM-V-VM ... au secours !</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8850515</link><pubDate>Tue, 12 Aug 2008 14:06:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8850515</guid><dc:creator>Elise's blog</dc:creator><description>&lt;p&gt;Apr&amp;#232;s avoir particip&amp;#233; &amp;#224; quelques projets WPF depuis maintenant un peu plus d'un an, je suis dans une&lt;/p&gt;</description></item><item><title>Checking out DataModel ViewModel patterns.</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#8954480</link><pubDate>Wed, 17 Sep 2008 01:29:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954480</guid><dc:creator>Tre Simpla</dc:creator><description>&lt;p&gt;Checking out DataModel ViewModel patterns.&lt;/p&gt;</description></item><item><title>Building a WPF Application: Part 4</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9053577</link><pubDate>Sat, 08 Nov 2008 06:06:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9053577</guid><dc:creator>Christopher Bennage</dc:creator><description>&lt;p&gt;Table of Contents Since my last post on building ChumChase, I&amp;amp;#39;ve had a couple of projects that have&lt;/p&gt;
</description></item><item><title>Building a WPF Application: Part 4</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9053644</link><pubDate>Sat, 08 Nov 2008 06:59:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9053644</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Table of Contents Since my last post on building ChumChase, I&amp;amp;#39;ve had a couple of projects that have&lt;/p&gt;
</description></item><item><title>Building a WPF Application: Part 4</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9057397</link><pubDate>Mon, 10 Nov 2008 16:58:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9057397</guid><dc:creator>Christopher Bennage</dc:creator><description>&lt;p&gt;Table of Contents Since my last post on building ChumChase, I&amp;amp;#39;ve had a couple of projects that have&lt;/p&gt;</description></item><item><title>Serie Tutorial Pattern DM-V-VM</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9220752</link><pubDate>Mon, 15 Dec 2008 17:02:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9220752</guid><dc:creator>ReBitting</dc:creator><description>&lt;p&gt;Serie Tutorial Pattern DM-V-VM&lt;/p&gt;
</description></item><item><title>Создание приложения на WPF с использованием принципов TDD. Часть 2</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9401253</link><pubDate>Fri, 06 Feb 2009 10:13:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9401253</guid><dc:creator>Павел Ивченков</dc:creator><description>&lt;p&gt;Вторая часть из серии постов, в которых мы последовательно пройдем все этапы соз&lt;/p&gt;
</description></item><item><title>MVVM pattern in Silverlight using SLEextensions</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9424584</link><pubDate>Sun, 15 Feb 2009 20:32:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9424584</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;In this article I will explain how to implement MVVM pattern in Silverlight. I was very overjoyed when&lt;/p&gt;</description></item><item><title>#.think.in infoDose #21 (10th Mar - 15th Mar)</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9480712</link><pubDate>Mon, 16 Mar 2009 08:11:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9480712</guid><dc:creator>#.think.in</dc:creator><description>&lt;p&gt;#.think.in infoDose #21 (10th Mar - 15th Mar)&lt;/p&gt;
</description></item><item><title>Silverlight网络寻奇 at 090428</title><link>http://blogs.msdn.com/dancre/archive/2006/10/11/datamodel-view-viewmodel-pattern-series.aspx#9573248</link><pubDate>Tue, 28 Apr 2009 11:37:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9573248</guid><dc:creator>nasa</dc:creator><description>&lt;p&gt;都是Silverlight做的游戏&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.silverarcade.com/Games"&gt;http://www.silverarcade.com/Games&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>