<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Question on Views and ViewModels</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Question on Views and ViewModels</description>
  <pubDate>Sat, 11 Apr 2026 19:09:48 -700</pubDate>
  <lastBuildDate>Sat, 25 Sep 2010 12:23:32 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2190</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Question on Views and ViewModels : I agree. The SaleInvoiceView should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8634#8634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 2190<br /><strong>Posted:</strong> 25-Sep-2010 at 12:23pm<br /><br />I agree. The SaleInvoiceView should have a SalesInvoiceViewModel but does the SalesInvoiceLineView need a separate ViewModel or can it share the SalesInvoiceViewModel since the SalesInvoiceLineView is a child view of the SalesInvoiceView and can't exist without it.<DIV>&nbsp;</DIV><DIV>Bill</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 25 Sep 2010 12:23:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8634#8634</guid>
  </item> 
  <item>
   <title>Question on Views and ViewModels :   Hi Bill,I&amp;#039;m wondering...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8633#8633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=920" rel="nofollow">Peer</a><br /><strong>Subject:</strong> 2190<br /><strong>Posted:</strong> 25-Sep-2010 at 12:07pm<br /><br />Hi Bill,<div>I'm wondering about the same issue (<span apple-style-span="Apple-style-span" style="font-family: 'Times New Roman', serif; line-height: 22px; font-size: 16px; "><a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2189&amp;PID=8621#8621" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2189&amp;PID=8621#8621</a></span>) and in my own words:</div><div><br><div>I think the viewmodel acts like &nbsp;a businessprocess container with all the possible actions for a certain businessprocess. Additonally you add enough commands and navigation handles to let the view interact with the viewmodel.</div></div><div><br></div><div>Your Invoice screen handles the businessprocess "SalesInvoices" so in my opinion you should have ha viewmodel "SalesInvoiceViewModel" which contains all the entities , logic, validationrules ?? navigation (next,prev) and so on.</div><div><br></div><div>When I'm wrong, please let me know :)</div><div>Peer</div><div><br></div><div><br></div><span style="font-size:10px"><br /><br />Edited by Peer - 25-Sep-2010 at 12:11pm</span>]]>
   </description>
   <pubDate>Sat, 25 Sep 2010 12:07:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8633#8633</guid>
  </item> 
  <item>
   <title>Question on Views and ViewModels : Some people say that you should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8624#8624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 2190<br /><strong>Posted:</strong> 24-Sep-2010 at 1:16pm<br /><br />Some people say that you should have one viewmodel per view. But I am wondering if that is always true. For example, you have a SalesInvoiceView which is divided into the upper portion of the form for the header information and the lower portion of the form for the detail lines in a grid. The SalesInoivceViewModel class holds an observablecollection of salesInvoiceLines which fill the grid. Next to the grid is Add/Edit/Delete buttons which pop up a window for the user to enter the detail lines etc in a form called SalesInvoiceLineView. I think that that this view should be passed the parents viewmodel and both views should share it. <DIV>&nbsp;</DIV><DIV>Can anyone give me a good reason why I need two viewmodels in this case?</DIV><DIV>&nbsp;</DIV><DIV>Bill</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 24 Sep 2010 13:16:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2190&amp;PID=8624#8624</guid>
  </item> 
 </channel>
</rss>