<?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 : strange behavior IsbussyIndicator</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : strange behavior IsbussyIndicator</description>
  <pubDate>Sun, 12 Apr 2026 16:15:51 -700</pubDate>
  <lastBuildDate>Tue, 14 Sep 2010 01:33:23 -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=2143</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>strange behavior IsbussyIndicator : Hi Ward,   Thank you for your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8487#8487</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> 2143<br /><strong>Posted:</strong> 14-Sep-2010 at 1:33am<br /><br />Hi Ward, <DIV>&nbsp;</DIV><DIV>Thank you for your investigation. I Implemented the snippets but it didnt solve the problem. The buttons dis/appears as aspected but the control's state seems to be disabled when fetching&nbsp;data from the database. If you click on a controle-item such as button or textbox (set the focus), the enabled state is restored.</DIV><DIV>&nbsp;</DIV><DIV>Again, this isn't a big issue but is makes me wonder if the toolbox is a good and reliable source.&nbsp;I Move forward and&nbsp; downladed the PrismExplorer to evaluate the code and architecture, and hopefully I find more complex&nbsp;situations according to normal business reality. I realy enjoyed your TechEd&nbsp;video presentation about Prism though sometimes it is hard to understand all the concepts and jokes&nbsp;because English is not my&nbsp;native language.</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by Peer - 14-Sep-2010 at 6:16am</span>]]>
   </description>
   <pubDate>Tue, 14 Sep 2010 01:33:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8487#8487</guid>
  </item> 
  <item>
   <title>strange behavior IsbussyIndicator : Couldn&amp;#039;t help peeking. The...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8473#8473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 2143<br /><strong>Posted:</strong> 13-Sep-2010 at 9:44am<br /><br /><P>Couldn't help peeking. The Toolkit's BusyIndicator does disable/re-enable the DataForm but that has no influence on the DataForm's CommandButtons. Aaargh!&nbsp; Maybe they'll fix that someday.</P><DIV>How do I know this? </DIV><DIV>(1) I confirmed your experience of clicking the navigation buttons while the form was supposedly disabled. </DIV><DIV>(2) In the code-behind I listened to the EmployeeDataForm.IsEnabledChanged event ... which dutifully toggled in sync with the BusyIndicator.IsBusy property.</DIV><DIV>&nbsp;</DIV><DIV>There is no obvious&nbsp;way to talk to the CommandButtons directly (see what I mean about Swiss Army Knife?). </DIV><DIV>&nbsp;</DIV><DIV>You can control their visibility. One palliative approach is to hide the buttons when busy. I took a quick crack at it (remember, this is a DEMO). </DIV><DIV>&nbsp;</DIV><DIV>Three Steps:</DIV><DIV>1) Bind the DataForm's CommandButtonsVisibility to IsBusy in MainPage.xaml</DIV><DIV>&nbsp;&nbsp;&nbsp; Binding will need a ValueConverter because Visibility takes an enumeration and IsBusy is boolean</DIV><DIV>2) Add a ValueConverter as a resource in MainPage.xaml</DIV><DIV>3) Write the ValueConverter in the first place</DIV><DIV>&nbsp;</DIV><DIV>Of course I actually proceeded in reverse: 3,2,1</DIV><DIV>&nbsp;</DIV><DIV>3) Add Value Converter</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">namespace</SPAN>&nbsp;SimpleSteps&nbsp;{<BR>&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">class</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">HideDataFormCommandVisibilityConverter</SPAN>&nbsp;:&nbsp;<SPAN style="COLOR: #2b91af">IValueConverter</SPAN>&nbsp;{<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;HideDataFormCommandVisibilityConverter()&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CommandButtonsVisibility&nbsp;=&nbsp;<SPAN style="COLOR: #2b91af">DataFormCommandButtonsVisibility</SPAN>.All;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">DataFormCommandButtonsVisibility</SPAN>?&nbsp;CommandButtonsVisibility&nbsp;{<SPAN style="COLOR: blue">get</SPAN>;&nbsp;<SPAN style="COLOR: blue">set</SPAN>;}&nbsp;<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">object</SPAN>&nbsp;Convert(<SPAN style="COLOR: blue">object</SPAN>&nbsp;value,&nbsp;System.<SPAN style="COLOR: #2b91af">Type</SPAN>&nbsp;targetType,&nbsp;<BR>         <SPAN style="COLOR: blue">object</SPAN>&nbsp;parameter,&nbsp;System.Globalization.<SPAN style="COLOR: #2b91af">CultureInfo</SPAN>&nbsp;culture)&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">if</SPAN>&nbsp;(value.GetType()&nbsp;!=&nbsp;<SPAN style="COLOR: blue">typeof</SPAN>(<SPAN style="COLOR: blue">bool</SPAN>))&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;<SPAN style="COLOR: blue">null</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;((<SPAN style="COLOR: blue">bool</SPAN>)&nbsp;value)&nbsp;?&nbsp;<SPAN style="COLOR: #2b91af">DataFormCommandButtonsVisibility</SPAN>.None&nbsp;:&nbsp;CommandButtonsVisibility;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">object</SPAN>&nbsp;ConvertBack(<SPAN style="COLOR: blue">object</SPAN>&nbsp;value,&nbsp;System.<SPAN style="COLOR: #2b91af">Type</SPAN>&nbsp;targetType,&nbsp;<BR>         <SPAN style="COLOR: blue">object</SPAN>&nbsp;parameter,&nbsp;System.Globalization.<SPAN style="COLOR: #2b91af">CultureInfo</SPAN>&nbsp;culture)&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">return</SPAN>&nbsp;<SPAN style="COLOR: blue">null</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;}<BR>}</PRE></DIV><DIV>2) Add Resource to UserControl.Resources </DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">UserControl</SPAN>&nbsp;<SPAN style="COLOR: red">&nbsp;x</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: red">Class</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"SimpleSteps.MainPage"</SPAN><BR>    ...<BR>&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;xmlns</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: red">local</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"clr-namespace:SimpleSteps"</SPAN><SPAN style="COLOR: blue">&nbsp;&gt;<BR><BR><BR><BR></SPAN><BR><SPAN style="COLOR: #a31515">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">UserControl.Resources</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR><SPAN style="COLOR: #a31515">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">local</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: #a31515">HideDataFormCommandVisibilityConverter</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;x</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: red">Key</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"HideEmployeeCommandsConverter"</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;CommandButtonsVisibility</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"Navigation,&nbsp;Add,&nbsp;Delete,&nbsp;Cancel,&nbsp;Commit"</SPAN><SPAN style="COLOR: blue">/&gt;</SPAN><BR><SPAN style="COLOR: #a31515">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: blue">&lt;/</SPAN><SPAN style="COLOR: #a31515">UserControl.Resources</SPAN><SPAN style="COLOR: blue">&gt;</SPAN><BR></PRE><PRE style="FONT-FAMILY: c&#111;nsolas">3) Bind DataForm's CommandButtonsVisibility</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">&lt;</SPAN><SPAN style="COLOR: #a31515">toolkit</SPAN><SPAN style="COLOR: blue">:</SPAN><SPAN style="COLOR: #a31515">DataForm</SPAN><SPAN style="COLOR: red">&nbsp;Name</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"EmployeeDataForm"</SPAN><SPAN style="COLOR: red">&nbsp;Grid.Row</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"0"</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;ItemsSource</SPAN><SPAN style="COLOR: blue">="{</SPAN><SPAN style="COLOR: #a31515">Binding</SPAN><SPAN style="COLOR: red">&nbsp;Employees</SPAN><SPAN style="COLOR: blue">}</SPAN><SPAN style="COLOR: blue">"</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;EditEnded</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">"dataForm1_EditEnded"</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;CurrentItem</SPAN><SPAN style="COLOR: blue">&nbsp;="{</SPAN><SPAN style="COLOR: #a31515">Binding</SPAN><SPAN style="COLOR: red">&nbsp;CurrentEmployee</SPAN><SPAN style="COLOR: blue">,</SPAN><SPAN style="COLOR: red">&nbsp;Mode</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">TwoWay</SPAN><SPAN style="COLOR: blue">}</SPAN><SPAN style="COLOR: blue">"</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;CommandButtonsVisibility</SPAN><SPAN style="COLOR: blue">="{</SPAN><SPAN style="COLOR: #a31515">Binding</SPAN><SPAN style="COLOR: red">&nbsp;IsBusy</SPAN><SPAN style="COLOR: blue">,</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: red">&nbsp;Converter</SPAN><SPAN style="COLOR: blue">={</SPAN><SPAN style="COLOR: #a31515">StaticResource</SPAN><SPAN style="COLOR: red">&nbsp;HideEmployeeCommandsConverter</SPAN><SPAN style="COLOR: blue">},</SPAN><SPAN style="COLOR: red">&nbsp;Mode</SPAN><SPAN style="COLOR: blue">=</SPAN><SPAN style="COLOR: blue">TwoWay</SPAN><SPAN style="COLOR: blue">}</SPAN><SPAN style="COLOR: blue">"</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">&nbsp;/&gt;</SPAN><BR></PRE></PRE></DIV><DIV>I remind you again that this is demo code. Plenty of other gotchas; there is no error handling, for example ... as the code makes clear with plenty of "ToDo" comments.</DIV><DIV>&nbsp;</DIV><DIV>HTH</DIV>]]>
   </description>
   <pubDate>Mon, 13 Sep 2010 09:44:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8473#8473</guid>
  </item> 
  <item>
   <title>strange behavior IsbussyIndicator : We&amp;#039;ll have to look at it....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8458#8458</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 2143<br /><strong>Posted:</strong> 10-Sep-2010 at 7:27pm<br /><br /><P>We'll have to look at it. Confess that we're just hooking together toolkit controls whose innards are mysterious. Might have missed some essential wiring step. No guarantees.&nbsp; </P><DIV>Did I happen to&nbsp;mention that I try not to use the DataForm or DataGrid in real code? I think of them as convenient demoware. In a real application I&nbsp;prefer to think through the UX and write an intentional experience rather than reach for the swiss army knife.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV>Of course this is besides the point. We should make it work even if it is not ours. <DIV>&nbsp;</DIV><DIV>Doesn't sound like there is great urgency on this subject. We'll get to it.</DIV>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 19:27:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8458#8458</guid>
  </item> 
  <item>
   <title>strange behavior IsbussyIndicator : While following the SimpleSteps...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8436#8436</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> 2143<br /><strong>Posted:</strong> 10-Sep-2010 at 11:16am<br /><br />While following the SimpleSteps sample(s) for Silverlight 4.0 , I have noticed the isbusyIndicator(from the toolkit)&nbsp;disturbs the dataform control (also from the toolkit).<DIV>Wen data is retrieved from orders&nbsp; by&nbsp;a query, the navigationbuttons from the dataform control seems te be disabled(color)&nbsp;, but they respond&nbsp;normal. After using the navigationbuttons, the enabled color appears&nbsp; only when the data is retrieved from cache. Obvious the disabled color is set while querying the database and firing some changed events...</DIV><DIV>&nbsp;</DIV><DIV>It isn't' a big issue but it is interesting to know why this happens. Does somebody have an idea ?</DIV><DIV>thanks,</DIV><DIV>Peer</DIV>]]>
   </description>
   <pubDate>Fri, 10 Sep 2010 11:16:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2143&amp;PID=8436#8436</guid>
  </item> 
 </channel>
</rss>