<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.lhotka.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>CSLA .NET discussion</title><link>http://forums.lhotka.net/forums/5.aspx</link><description>General discussion about CSLA .NET</description><dc:language /><generator>CommunityServer 2008.5 SP3 (Build: 36.8414)</generator><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44506.aspx</link><pubDate>Tue, 17 Aug 2010 23:11:57 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44506</guid><dc:creator>Tiago Freitas Leal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44506.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44506</wfw:commentRss><description>&lt;p&gt;Hi again Rocky,&lt;/p&gt;
&lt;p&gt;My test program implements this technique and it works all right with no remoting in place. As soon as I turn remoting on, it doesn&amp;#39;t work... &lt;/p&gt;
&lt;p&gt;My project was CSLA 3.0.5 but now is CSLA 4.0.1.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m under the very strong impression it did work under 3.0.5... must go back and check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44486.aspx</link><pubDate>Tue, 17 Aug 2010 09:08:23 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44486</guid><dc:creator>jlfernandezmiranda</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44486.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44486</wfw:commentRss><description>&lt;p&gt;How can I implement a weak event&amp;nbsp; using csla? I need to replace shared static events with weakevent manager? Could you write a sample using vb? I have not found a sample that uses weak event manager :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44446.aspx</link><pubDate>Sat, 14 Aug 2010 22:31:15 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44446</guid><dc:creator>Tiago Freitas Leal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44446.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44446</wfw:commentRss><description>&lt;p&gt;Hi Rocky,&lt;/p&gt;
&lt;p&gt;&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.lhotka.net/Themes/hawaii/images/icon-quote.gif"&gt; &lt;strong&gt;RockfordLhotka:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;
&lt;p&gt;Be careful with that though, as it can cause memory leaks.&lt;/p&gt;
&lt;p&gt;To do that &lt;i&gt;correctly&lt;/i&gt; you really need to use weak references, or a strict publish/subscribe model.&lt;/p&gt;
&lt;p&gt;Having objects handle a static event must be done &lt;i&gt;very&lt;/i&gt; carefully or those objects will never leave memory - that static event will always have a reference to the object, so the garbage collector will never reclaim them.&lt;/p&gt;
&lt;div style="CLEAR:both;"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;You&amp;#39;re right. I think you are referring to this &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.weakeventmanager.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.windows.weakeventmanager.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44437.aspx</link><pubDate>Sat, 14 Aug 2010 00:05:05 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44437</guid><dc:creator>RockfordLhotka</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44437.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44437</wfw:commentRss><description>&lt;p&gt;Be careful with that though, as it can cause memory leaks.&lt;/p&gt;
&lt;p&gt;To do that &lt;i&gt;correctly&lt;/i&gt; you really need to use weak references, or a strict publish/subscribe model.&lt;/p&gt;
&lt;p&gt;Having objects handle a static event must be done &lt;i&gt;very&lt;/i&gt; carefully or those objects will never leave memory - that static event will always have a reference to the object, so the garbage collector will never reclaim them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44435.aspx</link><pubDate>Fri, 13 Aug 2010 23:55:12 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44435</guid><dc:creator>Tiago Freitas Leal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44435.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44435</wfw:commentRss><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;Have a look at &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.lhotka.net/weblog/IAmWorkingOnMyUsingCSLANET30EbookAndWroteSomeContentThatIDontThinkImGoingToUseInTheBook.aspx"&gt;http://www.lhotka.net/weblog/IAmWorkingOnMyUsingCSLANET30EbookAndWroteSomeContentThatIDontThinkImGoingToUseInTheBook.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44294.aspx</link><pubDate>Sat, 07 Aug 2010 15:18:52 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44294</guid><dc:creator>JonStonecash</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44294.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44294</wfw:commentRss><description>&lt;p&gt;There are two ways that I can think of.&amp;nbsp; One, re-read the list, and two, add some functionality to the read only business object that allows it to update itself.&lt;/p&gt;
&lt;p&gt;The first way, re-reading the list, is simple and easy to do.&amp;nbsp; Unless there are serious performance issues, this is the way to go.&lt;/p&gt;
&lt;p&gt;The second way, bypassing some of the protections of the Csla readonly lists, can be done but it is complicated and is prone to breakage.&amp;nbsp; If I were to go down this path, I would add a method to the readonly business class that would accept the newly updated editable object and use the LoadProperty methods to change the values.&amp;nbsp; I am not entirely familiar with WPF, but I would imagine that you could refresh the display by rebinding the list.&amp;nbsp; Having said all of this, I really would avoid this approach.&amp;nbsp; This approach breaks the typical patterns within the application.&amp;nbsp; Someone, down the road, might make a change and not realize that there was this deviation from the pattern.&amp;nbsp; A lot of time might well be spent trying to track down the cause of the defects arising from this.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jon Stonecash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Refresh ReadOnlyList after edit</title><link>http://forums.lhotka.net/forums/thread/44291.aspx</link><pubDate>Sat, 07 Aug 2010 14:19:54 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:44291</guid><dc:creator>t.kehl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/44291.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=44291</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have a WPF Application. In this, there is a Grid which is bound to a ReadOnlyList which contains the items to show. Now, when the user DoubleClick on a Item, I create a EditableRoot-Item which the Id of the item which the User has selected and Show a EditForm. After Editing, the Item will be saved. This is working great. Now, what is the best strategy to update the item in the bounded ReadOnlyList that the Grid is showing the new Values?&lt;/p&gt;
&lt;p&gt;Thanks for your Info.&lt;/p&gt;
&lt;p&gt;Best Regards, Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>