<?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 : Update UI when change made to cache</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Update UI when change made to cache</description>
  <pubDate>Sat, 11 Apr 2026 16:18:33 -700</pubDate>
  <lastBuildDate>Fri, 02 Apr 2010 06:17:37 -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=1705</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>Update UI when change made to cache : Thank you for the feedback! I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6445#6445</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 1705<br /><strong>Posted:</strong> 02-Apr-2010 at 6:17am<br /><br />Thank you for the feedback!&nbsp; I was able to get this working by converting the IEnumerable returned from the EntityQuery to an ObservableCollection and then modifying the partial classes generated by the DevForce Object Mapper as I initially suspected.]]>
   </description>
   <pubDate>Fri, 02 Apr 2010 06:17:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6445#6445</guid>
  </item> 
  <item>
   <title>Update UI when change made to cache : I would definitely started by...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6442#6442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1705<br /><strong>Posted:</strong> 01-Apr-2010 at 11:15am<br /><br />I would definitely started by converting the IEnumerable to an ObservableCollection, since that implements both INotifyPropertyChanged and INotifyCollectionChanged. That might solve your problem right there.<br><br>DevForce entities already implement INotifyPropertyChanged, via their inheritance from EntityWrapper.<br><br>Of course there's no guarantee that a given control -- in this case the Treecontrol that you're using -- actually listens for the available notifications and does something about it. If it doesn't, then you'll have to, and when notify, refresh the TreeControl yourself.<br>]]>
   </description>
   <pubDate>Thu, 01 Apr 2010 11:15:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6442#6442</guid>
  </item> 
  <item>
   <title>Update UI when change made to cache : I am working with DevForce Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6440#6440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=587" rel="nofollow">cjohnson84</a><br /><strong>Subject:</strong> 1705<br /><strong>Posted:</strong> 01-Apr-2010 at 7:05am<br /><br /><DIV>I am working with DevForce Silverlight in a simple demo application.&nbsp; In my demo app I&nbsp;display a Silverlight treeview control that is bound to&nbsp;an IEnumerable collection ("Facilities")&nbsp;that was returned from an EntityQuery.&nbsp; I have modified the "Facility" partial class that was generated by the DevForce Object Mapper to inherit from my own interface ITreeViewNode in order to make the binding generic (we plan on ultimately binding many different types to the treeview).</DIV><DIV>&nbsp;</DIV><DIV>For demo purposes I have now added a button control that will update the caption property of the selected node ("Facility")&nbsp;in the treeview when clicked.&nbsp; If I examine the cache, I see that the caption property of the entity has indeed been changed.&nbsp; What is the recommended way to keep the treeview control in sync with changes made to the collection/cache?</DIV><DIV>&nbsp;</DIV><DIV>Do I need to re-fetch the data or I was thinking I could convert the IEnumerable collection into an ObservableCollection and then modify the partial entity classes generated by the DevForce Object Mapper to inherit from INotifyPropertyChanged.&nbsp; If that is the case though I think I will need to modify every object that is modeled though.&nbsp; Is this built-in to the DevForce model somehow that I can take advantage of?&nbsp; I have to admit I am confused here with the DevForce model in the picture and any guidance would be appreciated.</DIV>]]>
   </description>
   <pubDate>Thu, 01 Apr 2010 07:05:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1705&amp;PID=6440#6440</guid>
  </item> 
 </channel>
</rss>