<?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 : DevForce MEFedMVVM Reference SL App</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : DevForce MEFedMVVM Reference SL App</description>
  <pubDate>Tue, 21 Apr 2026 15:50:24 -700</pubDate>
  <lastBuildDate>Tue, 20 Jul 2010 07:40:42 -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=1937</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>DevForce MEFedMVVM Reference SL App : I am looking at this article ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7693#7693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1937<br /><strong>Posted:</strong> 20-Jul-2010 at 7:40am<br /><br />I am looking at this article<DIV>&nbsp;</DIV><DIV><a href="http://msdn.microsoft.com/en-us/magazine/ff798279.aspx" target="_blank">http://msdn.microsoft.com/en-us/magazine/ff798279.aspx</A></DIV><DIV>&nbsp;</DIV><DIV>Thinking about it all stay tuned.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 20 Jul 2010 07:40:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7693#7693</guid>
  </item> 
  <item>
   <title>DevForce MEFedMVVM Reference SL App :  This version only changes the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7580#7580</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1937<br /><strong>Posted:</strong> 09-Jul-2010 at 7:27am<br /><br /><DIV><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>This version only changes the layout of the datagrid. I wanted to remove some columns but could not use the designer. So I found the below Solution in another Ward Bell post, I copied the piece here so you would not have to look for it. Once grid is linked to the object you can delete the datasouce object in you solution as the designed will still work. Maybe the folks at DevForce can make something that will make this step obsolete.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>I’m still not happy about how to raise events in the DataModel that make their way to the View.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>I would like to raise an event in the model when the manager starts the fetch and then another one when it’s done. I know that the manager has events and I’m doing the following in the ViewModel works like a champ but I can’t seem to raise the event in the Model , so I’m getting the Singleton instance of the manager in the ViewModel constructor and doing it there, it works but my guess is there is a “better” way<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt" =Ms&#111;normal><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'">&nbsp;&nbsp;_entityManager.Fetching&nbsp;+=&nbsp;<SPAN style="COLOR: blue">delegate</SPAN>&nbsp;{&nbsp;IsBusy&nbsp;=&nbsp;<SPAN style="COLOR: blue">true</SPAN>;&nbsp;};<BR>&nbsp;&nbsp;_entityManager.Queried&nbsp;+=&nbsp;<SPAN style="COLOR: blue">delegate</SPAN>&nbsp;{&nbsp;IsBusy&nbsp;=&nbsp;<SPAN style="COLOR: blue">false</SPAN>;&nbsp;};<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>The Binding between the View and ViewModel is clean and straightforward so I’m wondering what should really be in the ViewModel compared to the DataModel.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>Looking for anyone that has used a MVVM pattern with DevForce for their solution of how they decouple the layers. <o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>The DevForce Silverlight Project will place all the shared code in the um Shared Code Folder.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>I wonder if there is a way that there could be a Model folder under the shared code folder.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-ansi-: EN" lang=EN>Maybe I just move them as they are only generated once.<o:p></o:p></SPAN></P></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>begin Ward Post</DIV><DIV>*************************************************************************************</DIV><DIV>Here's a recipe that works for me. I just tried it as a modification of our "DevForce Silverlight Tour" application.</DIV><UL><LI>Build your solution (or you won't see the model project)</LI><LI>Open the xaml class file (can be in either XAML or Designer&nbsp;view)</LI><LI>Open the Data Sources window</LI><LI>Click "Add New Data Source"; Data Source Configuration Wizard dialog opens</LI><LI>Pick the "<strong>Object</strong>" data source type</LI><LI>Open the node to the project with your model (if not shown, you may have forgotten to build)</LI><LI>Check the checkbox(es) next to the entities you'll be binding (e.g, Customer, Employee)</LI><LI>Click "Finish" button</LI></UL><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><P>They should appear in the Data Sources window ... after a pause.</P></BLOCKQUOTE><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV>They frequently disappear from the window and it takes awhile (a long while) for Visual Studio to rebuild that window. You will notice that the window rebuilds itself (painfully) seemingly on a whim.</DIV><DIV>&nbsp;</DIV><DIV>Note that the data sources you created are listed&nbsp;in the DataSources folder under your project's Properties folder</DIV></BLOCKQUOTE><UL><LI>Twiddle with your Data Source to get it the way you want it (see any demo)</LI><LI>Drag source on to canvas (see any demo)</LI><LI>REPAIR !!! </LI></UL><P style="MARGIN-RIGHT: 0px" dir=ltr>You will almost certainly need to go into the XAML to deal with the junk piled into it.</P><DIV>The&nbsp;generated CollectionView resource is useless to me&nbsp;because I use MVVM. It may be that I just don't know how to use it properly. If I seem less uninterested in it ... that's because I am.&nbsp;You're welcome&nbsp;to follow your own star on this.</DIV><DIV>&nbsp;</DIV><DIV>Anyway, for me, the CollectionView has done its job and so I soon delete it and the StaticResource&nbsp;binding&nbsp;of the DataGrid (DG)'s or DataForm (DF)'s DataContext to that CollectionView.</DIV><DIV>&nbsp;</DIV><DIV>I bind DG or DF ItemsSource to the relevant collection property (typically an ObservableCollection&lt;T&gt;) of the ViewModel (e.g,. "vm.Employees").</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>*********************************************************************</DIV><DIV>End Ward post</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/uploads/672/DevMEFedMMVMReferenceSL_v1.1.3.zip" target="_blank">uploads/672/DevMEFedMMVMReferenceSL_v1.1.3.zip</A></DIV>]]>
   </description>
   <pubDate>Fri, 09 Jul 2010 07:27:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7580#7580</guid>
  </item> 
  <item>
   <title>DevForce MEFedMVVM Reference SL App : Includes a working &#8220;Busy Indicator&#8221;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7567#7567</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1937<br /><strong>Posted:</strong> 08-Jul-2010 at 9:34am<br /><br /><P style="MARGIN: 0in 0in 10pt" ="Ms&#111;normal"><FONT size=3 face=Calibri>Includes a working “Busy Indicator” on the CustomersView.</P><DIV>* New Version Below *<a href="http://www.ideablade.com/forum/uploads/672/DevMEFedMMVMReferenceSL_v1.1.2.zip" target="_blank"></A></DIV><DIV>&nbsp;</DIV><DIV>Not sure what will be next :)</DIV><DIV>&nbsp;</DIV></FONT><span style="font-size:10px"><br /><br />Edited by DavidKozikowski - 09-Jul-2010 at 7:28am</span>]]>
   </description>
   <pubDate>Thu, 08 Jul 2010 09:34:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7567#7567</guid>
  </item> 
  <item>
   <title>DevForce MEFedMVVM Reference SL App : Version 1.1.1   Added Singleton...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7516#7516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1937<br /><strong>Posted:</strong> 05-Jul-2010 at 6:14am<br /><br /><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 0.75pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Version 1.1.1 <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Added Singleton Pattern for getting the manager.<O:P></O:P></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>Changed naming of Interfaces and Services to better describe their functions.</P><DIV>&nbsp;</DIV><DIV>*New Version Below*<O:P></O:P></DIV></SPAN><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0.75pt 1.5pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN" lang=EN><O:P></O:P></SPAN></P><DIV><a href="http://www.ideablade.com/forum/uploads/672/DevMEFedMVVMReferenceSL_v1.1.0.zip" target="_blank"></A>&nbsp;</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by DavidKozikowski - 08-Jul-2010 at 9:36am</span>]]>
   </description>
   <pubDate>Mon, 05 Jul 2010 06:14:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7516#7516</guid>
  </item> 
  <item>
   <title>DevForce MEFedMVVM Reference SL App : I have been using DevForce with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7499#7499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1937<br /><strong>Posted:</strong> 02-Jul-2010 at 9:40am<br /><br /><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3 face=Calibri>I have been using DevForce with MEFedMVVM and thought I would share this reference app.</FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Hoping someone can take it add some more functionality. This is using MEFedMVVM for Dependency injection. This framework is “Blendable”<SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>serving up design time data in Blend and runtime data is VS based on the Injected services. This is also using the Navigation Framework (other ways welcome)<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>&nbsp;<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>If you have not seen MEFedMVVM this is a good example of how you can use it, very simple and clean.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>On another note with regards to a Repository I’m hoping someone that has a good understanding of this Design pattern and DevForce can maybe take add and share it as well.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>&nbsp;<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>I have removed all the bin and obj file for a small DL you will have to recompile it is using the NorthwindIB on a local instance to make it easy.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>&nbsp;<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Hope someone will find this sample helpful. And we as a community can really make good template to use for our DevForce SL assignments.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Feel free to pick a task and pitch in J<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Next Tasks:<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Create VS templates for adding a new View , ViewModel and Repository items to the solution.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Add Save, update, delete, Search/query support<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Add a Repository.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Add a Login.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Add a Busy Indicator.<o:p></o:p></FONT></FONT></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><FONT size=3><FONT face=Calibri><SPAN style="mso-ansi-: EN" lang=EN>Get a real View by someone that knows Blend</SPAN>.<SPAN style="mso-ansi-: EN" lang=EN><o:p></o:p></SPAN></FONT></FONT></P><P style="LINE-HEIGHT: normal; MARGIN: 0in 1.5pt 10pt" =Ms&#111;normal><SPAN style="mso-ansi-: EN" lang=EN><FONT size=3><FONT face=Calibri>Look Into a Prism v2.2 Composite version.<o:p></o:p></FONT></FONT></SPAN></P><span style="font-size:10px"><br /><br />Edited by DavidKozikowski - 08-Jul-2010 at 9:35am</span>]]>
   </description>
   <pubDate>Fri, 02 Jul 2010 09:40:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1937&amp;PID=7499#7499</guid>
  </item> 
 </channel>
</rss>