<?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: BusinessBase.IsSave can not reflact enable property of Button in Silverlight</title><link>http://forums.lhotka.net/forums/thread/52560.aspx</link><pubDate>Tue, 17 Apr 2012 15:52:37 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52560</guid><dc:creator>RockfordLhotka</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52560.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52560</wfw:commentRss><description>&lt;p&gt;You can look at the implementation of the various properties (like CanSave) in the ViewModelBase class in Csla.Xaml. There are some tricks to making these properties work correctly - and they don&amp;#39;t need to be a DependencyProperty&amp;nbsp;- just a bindable property that raises PropertyChanged.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: BusinessBase.IsSave can not reflact enable property of Button in Silverlight</title><link>http://forums.lhotka.net/forums/thread/52559.aspx</link><pubDate>Tue, 17 Apr 2012 12:45:44 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52559</guid><dc:creator>Marsh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52559.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52559</wfw:commentRss><description>&lt;p&gt;Thanks for your replay.&lt;/p&gt;
&lt;p&gt;I have created a&amp;nbsp;dependency&amp;nbsp;Property in ViewModel and added&amp;nbsp;Event handler BrokenRulesCollection.CollectionChanged for businessbase object property. Then set dependency property in event by checking count of brokernRules and bind with IsEnable property of the search button&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (this.Criteria.BrokenRulesCollection != null &amp;amp;&amp;amp; this.Criteria.BrokenRulesCollection.Count != 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;	&lt;/span&gt;this.CanSearch = false;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;	&lt;/span&gt;this.CanSearch = true;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Its works fine.!!! But is it proper way achieve above&amp;nbsp;scenario?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: BusinessBase.IsSave can not reflact enable property of Button in Silverlight</title><link>http://forums.lhotka.net/forums/thread/52558.aspx</link><pubDate>Tue, 17 Apr 2012 11:38:40 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52558</guid><dc:creator>RockfordLhotka</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52558.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52558</wfw:commentRss><description>&lt;p&gt;That is correct. None of the metastate properties of business objects are bindable in the current versions of CSLA.&lt;/p&gt;
&lt;p&gt;You should use ViewModelBase to access bindable versions of these properties, as shown in the video series and ebook series.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>BusinessBase.IsSave can not reflact enable property of Button in Silverlight</title><link>http://forums.lhotka.net/forums/thread/52557.aspx</link><pubDate>Tue, 17 Apr 2012 11:30:06 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52557</guid><dc:creator>Marsh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52557.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52557</wfw:commentRss><description>&lt;p&gt;I have ViewModel&amp;lt;T&amp;gt; business class and I have added Property of another businessclass to Validate search parameter. I have bound&amp;nbsp;IsEnabled property of search button with&amp;nbsp;businessclass object.IsValid Property. &lt;/p&gt;
&lt;p&gt;But it does not get&amp;nbsp;reflated when all required fields are selected.&lt;/p&gt;
&lt;p&gt;Any Idea how to reflect UI with businessobject IsValid property&lt;/p&gt;
&lt;p&gt;Does&amp;nbsp;IsValid&amp;nbsp; is dependency property?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>