<?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 with buttons in the dialog content</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Dialog with buttons in the dialog content</description>
  <pubDate>Fri, 10 Apr 2026 20:38:57 -700</pubDate>
  <lastBuildDate>Thu, 11 Oct 2012 09:30:30 -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=3355</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 with buttons in the dialog content : Yes, I updated the docs. </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14823#14823</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> 3355<br /><strong>Posted:</strong> 11-Oct-2012 at 9:30am<br /><br />Yes, I updated the docs. ]]>
   </description>
   <pubDate>Thu, 11 Oct 2012 09:30:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14823#14823</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Great. Very handy and easy to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14821#14821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1095" rel="nofollow">AuerRo</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 11-Oct-2012 at 8:57am<br /><br />Great. Very handy and easy to use. In my opinion, this would be worth mentioning in the docs!<br>Thanks! Roland<br>]]>
   </description>
   <pubDate>Thu, 11 Oct 2012 08:57:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14821#14821</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content :   It will automatically discover...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14820#14820</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> 3355<br /><strong>Posted:</strong> 11-Oct-2012 at 8:23am<br /><br />It will automatically discover it through MEF and use yours instead of the default.]]>
   </description>
   <pubDate>Thu, 11 Oct 2012 08:23:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14820#14820</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Hi Marcel, I&amp;#039;m afraid I&amp;#039;m...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14815#14815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1095" rel="nofollow">AuerRo</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 10-Oct-2012 at 11:19pm<br /><br />Hi Marcel, I'm afraid I'm a bit confused at the moment:<br>Following your link I know how I can change the DialogHost. But how do I get the DialogManager to use my CustomDialogHost as the default host?<br>]]>
   </description>
   <pubDate>Wed, 10 Oct 2012 23:19:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14815#14815</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content :   Yes, you can. It&amp;#039;s explained...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14796#14796</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> 3355<br /><strong>Posted:</strong> 09-Oct-2012 at 8:39am<br /><br />Yes, you can. It's explained above and also documented in the DRC now.<div>&nbsp;</div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/cocktail-dialog-manager#HCustomizingthedialoghost" target="_blank"><u><font color="#0066cc">http://drc.ideablade.com/xwiki/bin/view/Documentation/cocktail-dialog-manager#HCustomizingthedialoghost</font></u></a></div>]]>
   </description>
   <pubDate>Tue, 09 Oct 2012 08:39:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14796#14796</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Excuse me marcel, can I just redefine...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14795#14795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 09-Oct-2012 at 7:52am<br /><br />Excuse me marcel, <br>can I just redefine the <span style="color: blue;">Cocktail.DialogHostView</span> in my app and use my custom view? How can I do this?<br>Thanks<br>]]>
   </description>
   <pubDate>Tue, 09 Oct 2012 07:52:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=14795#14795</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content :   You got it. I&amp;#039;ll look...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13131#13131</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> 3355<br /><strong>Posted:</strong> 27-Mar-2012 at 10:25am<br /><br />You got it. I'll look into the possiblity of adding a ShowCustomDialog method.]]>
   </description>
   <pubDate>Tue, 27 Mar 2012 10:25:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13131#13131</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Ok, just to know that I get this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13127#13127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1095" rel="nofollow">AuerRo</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 27-Mar-2012 at 1:58am<br /><br />Ok, just to know that I get this right, the steps to do are:<br><br><ul><li>Create the dialog screen, that implements IResult;</li><li>The IResult.Execute just calls windowManager.ShowDialog(this);</li><li>The Completed event rises in the OnDeactivate method, if the close-bool is true;</li><li>In general: Use the CM-WindowManager instead of the Cocktail DialogManager;</li></ul><p>I never considered making a screen an IResult. That opens my eyes!</p><p>Anyway, it would be nice to have a ShowCustomDialog method in the DialogManager, just for the sake of completeness.</p><p>Thanks again!</p><p>Best regards,</p><p>Roland</p>]]>
   </description>
   <pubDate>Tue, 27 Mar 2012 01:58:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13127#13127</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content :   The DialogManager is designed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13112#13112</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> 3355<br /><strong>Posted:</strong> 26-Mar-2012 at 11:10am<br /><br />The DialogManager is designed around the notion of a list of buttons that close the dialog. Each button corresponds to a dialog result, much like the standard MessageBox class. The DialogManager is designed to handle user prompts, not more complex ViewModels that handle their own user interaction.<div>&nbsp;</div><div>The use case you are describing is demonstrated in the LoginViewModel in TempHire. It demonstrates the pattern for how to display your own custom ViewModels as a dialog. The DialogManager cannot add a lot of value here. I'll consider adding a ShowCustomDialog method or something like that to the DialogManager, which would handle the IResult implemetation for you, but in the meantime you can follow the pattern demonstrated by the LoginViewModel.</div>]]>
   </description>
   <pubDate>Mon, 26 Mar 2012 11:10:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13112#13112</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Thanks for your quick answer!But...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13102#13102</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1095" rel="nofollow">AuerRo</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 25-Mar-2012 at 11:32pm<br /><br />Thanks for your quick answer!<br><br>But the problem is, that we need more buttons than the dialog-closing buttons in the ribbon. They need to be in the content view, because 1 - of the specs and 2 - usability. All interactions are limited to the ribbon bars in the views. In many cases we have quite heavy dialogs, containing eg. 5 buttons to interact - 4 to do stuff and interact with the view, 1 to close the dialog. If there is a ribbon bar (at the top), we can't introduce another area where the user can close the dialog. <br><br>Is there a way to close the dialog from the containing view(model)? I hoped for something like: The dialog host closes if the dialogcontentviewmodel is being closed, and the DialogResult is something like "ClosedByContent", so that the programmer knows that he has to check in the containing viewmodel instance for any values he needs. This would keep the containing VM independent from the host, but add the possibility to start the close-interaction from the containing VM.<br><br>I'm suggesting this, because I think that this might be a problem for others as well.<br><br>Thanks for your help (once again)!<br>Roland<br><br><br>]]>
   </description>
   <pubDate>Sun, 25 Mar 2012 23:32:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13102#13102</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content :   Cocktail allows you to replace...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13089#13089</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> 3355<br /><strong>Posted:</strong> 23-Mar-2012 at 6:31am<br /><br />Cocktail allows you to replace the ViewModel and View that make up the dialog window/popup with your own. Unfortunately, it's not documented yet. <div>&nbsp;</div><div>You start by creating your own ViewModel and have it extend DialogHostBase. Then you create a corresponding view the way you want it to look. You can start with the XAML that Cocktail uses. Look for DialogHostView.xaml in the source code. Below is the Silverlight version.</div><div>&nbsp;</div><div>In addition, you can define your own custom buttons by calling _dialogManager.ShowDialog with your own array of custom objects. Strings, images or whatever you want. </div><div>&nbsp;</div><div>The buttons are outside of the containing dialog content, though, even if you do your custom view. Is there a reason they need to be in the containing content?</div><div>&nbsp;</div><div><pre style=": white; color: black; font-family: C&#111;nsolas;"><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">controls</span><span style="color: blue;">:</span><span style="color: rgb163, 21, 21;">ChildWindow</span><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;">"Cocktail.DialogHostView"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">=</span><span style="color: blue;">"http://schemas.microsoft.com/winfx/2006/xaml/presentation"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">:</span><span style="color: red;">x</span><span style="color: blue;">=</span><span style="color: blue;">"http://schemas.microsoft.com/winfx/2006/xaml"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">:</span><span style="color: red;">cal</span><span style="color: blue;">=</span><span style="color: blue;">"http://www.caliburnproject.org"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">:</span><span style="color: red;">controls</span><span style="color: blue;">=</span><span style="color: blue;">"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">:</span><span style="color: red;">d</span><span style="color: blue;">=</span><span style="color: blue;">"http://schemas.microsoft.com/expression/blend/2008"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;xmlns</span><span style="color: blue;">:</span><span style="color: red;">mc</span><span style="color: blue;">=</span><span style="color: blue;">"http://schemas.openxmlformats.org/markup-compatibility/2006"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;d</span><span style="color: blue;">:</span><span style="color: red;">DesignHeight</span><span style="color: blue;">=</span><span style="color: blue;">"277"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;d</span><span style="color: blue;">:</span><span style="color: red;">DesignWidth</span><span style="color: blue;">=</span><span style="color: blue;">"800"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;HasCloseButton</span><span style="color: blue;">=</span><span style="color: blue;">"False"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;mc</span><span style="color: blue;">:</span><span style="color: red;">Ignorable</span><span style="color: blue;">=</span><span style="color: blue;">"d"</span><span style="color: blue;">&gt;</span> <span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">Grid</span><span style="color: red;">&nbsp;x</span><span style="color: blue;">:</span><span style="color: red;">Name</span><span style="color: blue;">=</span><span style="color: blue;">"LayoutRoot"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;MinWidth</span><span style="color: blue;">=</span><span style="color: blue;">"166"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Margin</span><span style="color: blue;">=</span><span style="color: blue;">"2"</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">Grid.RowDefinitions</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">RowDefinition</span><span style="color: blue;">&nbsp;/&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">RowDefinition</span><span style="color: red;">&nbsp;Height</span><span style="color: blue;">=</span><span style="color: blue;">"Auto"</span><span style="color: blue;">&nbsp;/&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">Grid.RowDefinitions</span><span style="color: blue;">&gt;</span> <span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">ItemsControl</span><span style="color: red;">&nbsp;x</span><span style="color: blue;">:</span><span style="color: red;">Name</span><span style="color: blue;">=</span><span style="color: blue;">"DialogButtons"</span><span style="color: red;">&nbsp;Grid.Row</span><span style="color: blue;">=</span><span style="color: blue;">"1"</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">ItemsControl.ItemsPanel</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">ItemsPanelTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">StackPanel</span><span style="color: red;">&nbsp;HorizontalAlignment</span><span style="color: blue;">=</span><span style="color: blue;">"Right"</span><span style="color: red;">&nbsp;Orientation</span><span style="color: blue;">=</span><span style="color: blue;">"Horizontal"</span><span style="color: blue;">&nbsp;/&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">ItemsPanelTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">ItemsControl.ItemsPanel</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">ItemsControl.ItemTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">DataTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">Button</span><span style="color: red;">&nbsp;Width</span><span style="color: blue;">=</span><span style="color: blue;">"75"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Height</span><span style="color: blue;">=</span><span style="color: blue;">"23"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Margin</span><span style="color: blue;">=</span><span style="color: blue;">"5"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;cal</span><span style="color: blue;">:</span><span style="color: red;">Message.Attach</span><span style="color: blue;">=</span><span style="color: blue;">"Close($dataContext)"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Content</span><span style="color: blue;">="{</span><span style="color: rgb163, 21, 21;">Binding</span><span style="color: red;">&nbsp;Content</span><span style="color: blue;">}</span><span style="color: blue;">"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;IsEnabled</span><span style="color: blue;">="{</span><span style="color: rgb163, 21, 21;">Binding</span><span style="color: red;">&nbsp;Enabled</span><span style="color: blue;">}</span><span style="color: blue;">"</span><span style="color: blue;">&nbsp;/&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">DataTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">ItemsControl.ItemTemplate</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">ItemsControl</span><span style="color: blue;">&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;</span><span style="color: rgb163, 21, 21;">ContentControl</span><span style="color: red;">&nbsp;x</span><span style="color: blue;">:</span><span style="color: red;">Name</span><span style="color: blue;">=</span><span style="color: blue;">"ActiveItem"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Width</span><span style="color: blue;">=</span><span style="color: blue;">"Auto"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;Height</span><span style="color: blue;">=</span><span style="color: blue;">"Auto"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;HorizontalContentAlignment</span><span style="color: blue;">=</span><span style="color: blue;">"Stretch"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;">&nbsp;VerticalContentAlignment</span><span style="color: blue;">=</span><span style="color: blue;">"Stretch"</span><span style="color: blue;">&nbsp;/&gt;</span><span style="color: rgb163, 21, 21;">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">Grid</span><span style="color: blue;">&gt;</span><span style="color: blue;">&lt;/</span><span style="color: rgb163, 21, 21;">controls</span><span style="color: blue;">:</span><span style="color: rgb163, 21, 21;">ChildWindow</span><span style="color: blue;">&gt;</span></pre></div>]]>
   </description>
   <pubDate>Fri, 23 Mar 2012 06:31:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13089#13089</guid>
  </item> 
  <item>
   <title>Dialog with buttons in the dialog content : Hi,we have the problem that we...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13086#13086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1095" rel="nofollow">AuerRo</a><br /><strong>Subject:</strong> 3355<br /><strong>Posted:</strong> 23-Mar-2012 at 5:26am<br /><br />Hi,<br><br>we have the problem that we have to implement a dialog with custom locations for the dialogbuttons (in this case: in a ribbon bar). The buttons have to be in the containing dialog content. Is this possible with Cocktail's built-in DialogManager? <br><br>The only solution I can think of is to call _dialogManager.ShowDialog with an empty buttons-array and call the dialog's parent's close method, if the parent is typeof DialogHostBase. But i doubt that this is the right approach. I'd hope for something that smells less like a hacky workaround and is a bit more like a thorough framework implementation.<br><br>Thanks for your help in advance!<br><br>Best, Roland<br>]]>
   </description>
   <pubDate>Fri, 23 Mar 2012 05:26:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3355&amp;PID=13086#13086</guid>
  </item> 
 </channel>
</rss>