<?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 : DialogHost custom labels</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : DialogHost custom labels</description>
  <pubDate>Wed, 10 Jun 2026 05:35:11 -700</pubDate>
  <lastBuildDate>Wed, 15 May 2013 06:13:04 -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=4149</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>DialogHost custom labels : Yes, using commands is the way...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4149&amp;PID=16335#16335</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 4149<br /><strong>Posted:</strong> 15-May-2013 at 6:13am<br /><br />Yes, using commands is the way to go if you want control over the labels and state of the commands. Your issue is that you are calling the wrong ShowDialogAsync method. You need to swap commands and mod. The first parameter is the list of commands, followed by the view model.<div><br></div><div><a href="http://cocktail.ideablade.com/CocktailHelpReference/net45/Cocktail~Cocktail.IDialogManager~ShowDialogAsync%60%601%28IEnumerable%7BIDialogUICommand%7B%60%600%7D%7D,&#079;bject,String%29.html" target="_blank">http://cocktail.ideablade.com/CocktailHelpReference/net45/Cocktail~Cocktail.IDialogManager~ShowDialogAsync%60%601(IEnumerable%7BIDialogUICommand%7B%60%600%7D%7D,Object,String).html</a></div>]]>
   </description>
   <pubDate>Wed, 15 May 2013 06:13:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4149&amp;PID=16335#16335</guid>
  </item> 
  <item>
   <title>DialogHost custom labels : HiI am in need of some custom...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4149&amp;PID=16332#16332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1375" rel="nofollow">murray.bryant</a><br /><strong>Subject:</strong> 4149<br /><strong>Posted:</strong> 15-May-2013 at 1:33am<br /><br />Hi<div><br></div><div>I am in need of some custom labels in my dialog ( Pass,Fail,Cancel)</div><div><br></div><div>And I know I can achieve that with the following</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>var result = await _dialogManager.ShowDialogAsync(mod, new&#091;&#093; {"Pass", "Fail", "Cancel"});</div><div></pre></td></tr></table></div><div><br></div><div>where mod is my custom view model.</div><div><br></div><div>What I can't work out how to do is to be able to enable/disable the buttons within the view model.</div><div><br></div><div>Is this the best way to do this or is there another way?</div><div><br></div><div>When I tried using custom commands</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp;var commands = new List&lt;IDialogUICommand&lt;DialogResult&gt;&gt;();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _passCommand = new DialogUICommand&lt;DialogResult&gt;("Pass", DialogResult.Ok, true, false);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; commands.Add(_passCommand);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _failCommand = new DialogUICommand&lt;DialogResult&gt;("Fail", DialogResult.No, false, false);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; commands.Add(_failCommand);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var closeCommand = new DialogUICommand&lt;DialogResult&gt;("Cancel", DialogResult.Cancel, false, true);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; commands.Add(closeCommand);</div></div><div>var result = await _dialogManager.ShowDialogAsync(mod, commands);</div><div><br></div><div></pre></td></tr></table></div><div><br></div><div>the labels did not show correctly on the buttons. Is this the better way, and if so what have I done wrong with the labels</div><div><br></div><div>thanks</div><div><br>Murray</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 15 May 2013 01:33:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4149&amp;PID=16332#16332</guid>
  </item> 
 </channel>
</rss>