<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Craig Shoemaker - All Comments</title><link>http://weblogs.asp.net/craigshoemaker/default.aspx</link><description>&lt;a href="http://polymorphicpodcast.com/"&gt;Host of the Polymorphic Podcast&lt;/a&gt; and &lt;a href="http://infragistics.com/"&gt;New Media Evangelist for Infragistics&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/11/03/vm-workshop-model-view-viewmodel-mvvm-and-the-presentation-model-pattern-in-5-ui-platforms.aspx#7264836</link><pubDate>Wed, 25 Nov 2009 16:37:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7264836</guid><dc:creator>craigshoemaker</dc:creator><author>craigshoemaker</author><description>&lt;p&gt;@FreshPrice: Thanks for your code I will look at adding it to the project&lt;/p&gt;
&lt;p&gt;@N: The examples show you how to make controls invisible by binding to a property in the ViewModel&lt;/p&gt;
&lt;p&gt;@Matt Slay: First of all I don't pretend to know what is best for the entire .NET developer base :)&lt;/p&gt;
&lt;p&gt;It seems to me that developers should learn as much as they can about different techniques in order to make the best choices for the situation. The VM Workshop is simply a reference for those willing to learn MVVM/Presentation Model. If it's not for you, then no big deal.&lt;/p&gt;
&lt;p&gt;As for added complexity, I suppose it depends on your perspective. Personally, I think it makes things simpler. Having a centralized place to prepare the model for your view, which is disconnected from the UI layer can open your development practices up to many advantages. Certainly for very small applications this may not be the advised approach, but I think the case has been stated many times over about the virtues of abstracting your view for testing and breaking dependence on a UI layer.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7264836" width="1" height="1"&gt;</description></item><item><title>re: VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/11/03/vm-workshop-model-view-viewmodel-mvvm-and-the-presentation-model-pattern-in-5-ui-platforms.aspx#7264778</link><pubDate>Wed, 25 Nov 2009 14:19:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7264778</guid><dc:creator>Matt Slay</dc:creator><author>Matt Slay</author><description>&lt;p&gt;I&amp;#39;m not sure the whole .Net developer base is ready for all this cute overhead of a full ViewModel wrapper around a Model just to present their View. It sure adds a lot to the complexity. There are plenty of mid-sized apps being built every day where a few additionally needed &amp;quot;presentation properties&amp;quot; can be packaged in a ViewModel wrapper around the Model to *supplement* the Model properties, but not a total re-hosting of every single property. This way, most of the UI binding is against the ViewModel.Model properties, and a few bindings can go against the ViewModel supplemental presentation properties.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7264778" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET 4.0 and Visual Studio 2010 Enhancements</title><link>http://weblogs.asp.net/craigshoemaker/archive/2008/12/19/asp-net-4-0-and-visual-studio-2010-enhancements.aspx#7264042</link><pubDate>Tue, 24 Nov 2009 09:56:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7264042</guid><dc:creator>Ashish Agarwal</dc:creator><author>Ashish Agarwal</author><description>&lt;p&gt;I don&amp;#39;t think all the enhancements you told, work here.&lt;/p&gt;
&lt;p&gt;Populating of ID and runt=&amp;quot;server&amp;quot; is same as that in Visual Studio 2008. The RequiredFieldValidator also appears to be quite similar.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7264042" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET 4.0 and Visual Studio 2010 Enhancements</title><link>http://weblogs.asp.net/craigshoemaker/archive/2008/12/19/asp-net-4-0-and-visual-studio-2010-enhancements.aspx#7264034</link><pubDate>Tue, 24 Nov 2009 09:43:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7264034</guid><dc:creator>Ashish Agarwal</dc:creator><author>Ashish Agarwal</author><description>&lt;p&gt;I don&amp;#39;t think all the enhancements you told, work here.&lt;/p&gt;
&lt;p&gt;Populating of ID and runt=&amp;quot;server&amp;quot; is same as that in Visual Studio 2008. The RequiredFieldValidator also appears to be quite similar.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7264034" width="1" height="1"&gt;</description></item><item><title>re: Installing .NET 3.5 and Visual Studio 2008 SP1 - My Gotchas</title><link>http://weblogs.asp.net/craigshoemaker/archive/2008/08/12/installing-net-3-5-and-visual-studio-2008-sp1-my-gotchas.aspx#7263003</link><pubDate>Sun, 22 Nov 2009 14:59:53 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7263003</guid><dc:creator>Denny</dc:creator><author>Denny</author><description>&lt;p&gt;Yes, it is necessary to terminate mdm.exe and sidebar.exe to install SP1.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7263003" width="1" height="1"&gt;</description></item><item><title>MVVM Resources &amp;amp; Useful Articles &amp;laquo; Mark Pearl&amp;#039;s Developer Blog</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/02/26/hands-on-model-view-viewmodel-mvvm-for-silverlight-and-wpf.aspx#7262447</link><pubDate>Sat, 21 Nov 2009 09:17:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7262447</guid><dc:creator>MVVM Resources &amp; Useful Articles « Mark Pearl's Developer Blog</dc:creator><author>MVVM Resources &amp; Useful Articles « Mark Pearl's Developer Blog</author><description>&lt;p&gt;Pingback from &amp;nbsp;MVVM Resources &amp;amp;amp; Useful Articles &amp;amp;laquo; Mark Pearl&amp;amp;#039;s Developer Blog&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7262447" width="1" height="1"&gt;</description></item><item><title>re: VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/11/03/vm-workshop-model-view-viewmodel-mvvm-and-the-presentation-model-pattern-in-5-ui-platforms.aspx#7262141</link><pubDate>Sat, 21 Nov 2009 01:48:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7262141</guid><dc:creator>N</dc:creator><author>N</author><description>&lt;p&gt;How to make a specific control invisible in view from &amp;nbsp;MV(model View) control?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7262141" width="1" height="1"&gt;</description></item><item><title>re: Hands-On Model-View-ViewModel (MVVM) for Silverlight and WPF</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/02/26/hands-on-model-view-viewmodel-mvvm-for-silverlight-and-wpf.aspx#7261038</link><pubDate>Fri, 20 Nov 2009 02:36:57 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7261038</guid><dc:creator>Ryan</dc:creator><author>Ryan</author><description>&lt;p&gt;Great article Craig! I will be checking out Hasan&amp;#39;s presentation next.&lt;/p&gt;
&lt;p&gt;A book on XAML-based apps (WPF/Silverlight) using MVVM would be a great read! ;) I am very enthused by what I see and read of this pattern.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7261038" width="1" height="1"&gt;</description></item><item><title>re: VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/11/03/vm-workshop-model-view-viewmodel-mvvm-and-the-presentation-model-pattern-in-5-ui-platforms.aspx#7260636</link><pubDate>Thu, 19 Nov 2009 17:11:18 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7260636</guid><dc:creator>FreshFrince</dc:creator><author>FreshFrince</author><description>&lt;p&gt;I don&amp;#39;t see my previous comment yet, but thought I would follow up on it. &amp;nbsp;Although, it seems to be &amp;quot;working&amp;quot;, there are potential problems with the changes I made to the web forms approach. &amp;nbsp;Before saving, to be certain we are updating the correct object, we should call GetSelectedObject on the VM.&lt;/p&gt;
&lt;p&gt;Old aspx.cs was:&lt;/p&gt;
&lt;p&gt;ProductEditView view = new ProductEditView();&lt;/p&gt;
&lt;p&gt;view.Description = this.description.Text;&lt;/p&gt;
&lt;p&gt;view.Price = this.price.Text;&lt;/p&gt;
&lt;p&gt;view.ProductId = this.productId.Value;&lt;/p&gt;
&lt;p&gt;view.QuantityOnHand = this.quantityOnHand.Text;&lt;/p&gt;
&lt;p&gt;view.ReleaseDate = this.releaseDate.Text;&lt;/p&gt;
&lt;p&gt;view.Title = this.title.Text;&lt;/p&gt;
&lt;p&gt;this._vm.PersistChanges(view);&lt;/p&gt;
&lt;p&gt;New is:&lt;/p&gt;
&lt;p&gt;this._vm.GetSelectedProduct( this.productId.Value );&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.Description = this.description.Text;&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.Price = this.price.Text;&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.ProductId = this.productId.Value;&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.QuantityOnHand = this.quantityOnHand.Text;&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.ReleaseDate = this.releaseDate.Text;&lt;/p&gt;
&lt;p&gt;_vm.SelectedProduct.Title = this.title.Text;&lt;/p&gt;
&lt;p&gt;this._vm.Persist();&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7260636" width="1" height="1"&gt;</description></item><item><title>re: VM Workshop: Model View ViewModel (MVVM) and the Presentation Model Pattern in 5 UI Platforms</title><link>http://weblogs.asp.net/craigshoemaker/archive/2009/11/03/vm-workshop-model-view-viewmodel-mvvm-and-the-presentation-model-pattern-in-5-ui-platforms.aspx#7260580</link><pubDate>Thu, 19 Nov 2009 16:23:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7260580</guid><dc:creator>FreshFrince</dc:creator><author>FreshFrince</author><description>&lt;p&gt;Hi Craig,&lt;/p&gt;
&lt;p&gt;I downloaded the workshop today and was looking specifically at the implementation differences between WinForms and WebForms. &amp;nbsp;I modified the ViewModel classes so on my version the two implementations are identical.&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t this effectively be the goal? &amp;nbsp;What impact do the different UI platforms have on the VM? &amp;nbsp;Shouldn&amp;#39;t we be able to port the same Model and ViewModel to different Views? &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7260580" width="1" height="1"&gt;</description></item></channel></rss>