<?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 : Dialog Buttons binding to method</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Dialog Buttons binding to method</description>
  <pubDate>Sat, 11 Apr 2026 03:46:51 -700</pubDate>
  <lastBuildDate>Fri, 14 Sep 2012 15:55:28 -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=3623</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>Dialog Buttons binding to method : I figured it out. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14448#14448</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1213" rel="nofollow">jlozina</a><br /><strong>Subject:</strong> 3623<br /><strong>Posted:</strong> 14-Sep-2012 at 3:55pm<br /><br />I figured it out.]]>
   </description>
   <pubDate>Fri, 14 Sep 2012 15:55:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14448#14448</guid>
  </item> 
  <item>
   <title>Dialog Buttons binding to method : Thanks for that.  If I pass...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14443#14443</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1213" rel="nofollow">jlozina</a><br /><strong>Subject:</strong> 3623<br /><strong>Posted:</strong> 14-Sep-2012 at 4:26am<br /><br />Thanks for that.<DIV>&nbsp;</DIV><DIV>If I pass an empty list of buttons to the DialogManager how would I simulate the Ok button behavior. </DIV><DIV>&nbsp;</DIV><DIV>So in the parent VM I can access the properties of Dialog when I finish with it.</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IEnumerable</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IResult</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt; EditAddress(){</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> addressEditor = _addressEditorFactory.CreatePart();</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>yield</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>return</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> _dialogManager.ShowDialogAsync(addressEditor, </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>new</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>List</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DialogResult</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&gt;() );</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>string</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> test = addressEditor.MiddleName;</P><P>}</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 14 Sep 2012 04:26:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14443#14443</guid>
  </item> 
  <item>
   <title>Dialog Buttons binding to method : BTW, you can pass an empty list...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14417#14417</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> 3623<br /><strong>Posted:</strong> 12-Sep-2012 at 10:27am<br /><br />BTW, you can pass an empty list of buttons to the DialogManager and&nbsp; do all the buttons yourself in addressEditor, including the Cancel button. <DIV>&nbsp;</DIV><DIV>You can then access the DialogHost from addressEditor as described in the following link and call IDialogHost.TryClose to close the dialog if the user clicks Cancel or "Finish".</DIV><DIV>&nbsp;</DIV><DIV><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/cocktail-dialog-manager#HAccessingthedialoghost" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-dialog-manager#HAccessingthedialoghost</A></DIV>]]>
   </description>
   <pubDate>Wed, 12 Sep 2012 10:27:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14417#14417</guid>
  </item> 
  <item>
   <title>Dialog Buttons binding to method :   You can&amp;#039;t do that with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14412#14412</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> 3623<br /><strong>Posted:</strong> 12-Sep-2012 at 7:19am<br /><br />You can't do that with the DialogManager as-is. The buttons are designed to close the dialog with a certain DialogResult, not to trigger other actions in the dialog. If you want to build a wizard, you have two options:<div></div><div>1. Make Previous/Cancel part of addressEditor</div><div>2. Don't use the DialogManager and build the wizard yourself from scratch</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 12 Sep 2012 07:19:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14412#14412</guid>
  </item> 
  <item>
   <title>Dialog Buttons binding to method : Hi  I&amp;#039;m trying to bind...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14410#14410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1213" rel="nofollow">jlozina</a><br /><strong>Subject:</strong> 3623<br /><strong>Posted:</strong> 12-Sep-2012 at 5:30am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>I'm trying to bind the buttons in the Dialog to a method but it seems always to go to&nbsp; <FONT size=2><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>CanClose(</FONT></FONT><FONT color=#2b91af face=C&#111;nsolas><FONT color=#2b91af face=C&#111;nsolas><FONT color=#2b91af face=C&#111;nsolas>Action</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>&lt;</FONT></FONT><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas>bool</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>&gt; callback) </FONT></FONT><FONT face=Verdana>Method. </FONT></FONT></DIV><DIV><FONT face=Verdana><FONT size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT face=Verdana><FONT size=2>If&nbsp; I call the Dialog with the following buttons <FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas>yield</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas>return</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas> _dialogManager.ShowDialogAsync(addressEditor, </FONT></FONT><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas><FONT color=#0000ff face=C&#111;nsolas>new</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>&#091;&#093; { </FONT></FONT><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas>"Previous"</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>, </FONT></FONT><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas>"Next"</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas>, </FONT></FONT><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas><FONT color=#a31515 face=C&#111;nsolas>"Cancel"</FONT></FONT></FONT><FONT face=C&#111;nsolas><FONT face=C&#111;nsolas> }); h</FONT></FONT><FONT face=Verdana>ow do I&nbsp;get the buttons to call&nbsp;a&nbsp; <FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>void</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> Previous()</FONT></FONT>&nbsp;or <FONT face=C&#111;nsolas><FONT color=#0000ff>void</FONT><FONT size=2><FONT size=2> Next()</FONT></FONT></FONT>&nbsp;method in the Dialog VM?</FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Regards,</FONT></DIV><DIV><FONT size=2>Joe</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 12 Sep 2012 05:30:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3623&amp;PID=14410#14410</guid>
  </item> 
 </channel>
</rss>