<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx</link><description>Presenting a dialog to the user is a common task for many applications. Silverlight 2 does not have a Dialog class, but it is possible to use the Popup class to create a very credible dialog. My Dialog class can't leave the Silverlight plugin--for that</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#8582408</link><pubDate>Mon, 09 Jun 2008 02:59:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8582408</guid><dc:creator>Mark Rideout [msft]</dc:creator><description>&lt;p&gt;You should set TabNavigation=Cycle for your user control so the user doesn't tab outside it on the modal cases.&lt;/p&gt;
&lt;p&gt;-mark&lt;/p&gt;</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#8971867</link><pubDate>Wed, 01 Oct 2008 19:36:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8971867</guid><dc:creator>schmiddy</dc:creator><description>&lt;p&gt;What if you need to design your dialogs in xaml rather than coding everything up in C# in the GetContent() method?&lt;/p&gt;
&lt;p&gt;This may be important if you have lots of complex dialogs that designers create in Blend.&lt;/p&gt;</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#8971874</link><pubDate>Wed, 01 Oct 2008 19:40:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8971874</guid><dc:creator>Dave Relyea</dc:creator><description>&lt;p&gt;schmiddy - In that case, you can make the dialog subclass return a new UserControl subclass for its content--and design the UserControl subclass as normal.&lt;/p&gt;
</description></item><item><title>Crashes on RTW</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9012401</link><pubDate>Thu, 23 Oct 2008 07:11:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012401</guid><dc:creator>maxchristian</dc:creator><description>&lt;p&gt;This doesn't work on 2.0 RTW if the content is non-trivial, e.g. try adding a ListBox inside the dialog and clicking on it a few times -- you get &amp;quot;System Exception: Catastrophic failure&amp;quot;.&lt;/p&gt;
&lt;p&gt;I've found that doing LayoutRoot.Children.Add(_popup) sorts it, not quite sure of the implications of that though.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9013174</link><pubDate>Thu, 23 Oct 2008 18:45:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9013174</guid><dc:creator>Dave Relyea</dc:creator><description>&lt;p&gt;maxchristian, yes, anything that calls TransformToVisual under the hood will crash unless you do what you suggest.&lt;/p&gt;
&lt;p&gt;The implications are that the popup will be affected by the RenderTransforms that apply to the LayoutRoot, but if you are a little clever you can also get around that if need be.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9014804</link><pubDate>Fri, 24 Oct 2008 17:50:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9014804</guid><dc:creator>maxchristian</dc:creator><description>&lt;p&gt;Ah, so that's why my dialog became enormous when I made the SL control fill the browser window using a RenderTransform...&lt;/p&gt;
&lt;p&gt;Can you be more specific? &amp;nbsp;I'm not sure if I'm a little clever but I'm certainly a little lazy. &amp;nbsp;;)&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9015532</link><pubDate>Sat, 25 Oct 2008 04:15:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9015532</guid><dc:creator>Dave Relyea</dc:creator><description>&lt;p&gt;maxchristian,&lt;/p&gt;
&lt;p&gt;You may need to change where you put the RenderTransforms, and/or add an additional element. If you had this:&lt;/p&gt;
&lt;p&gt;&amp;lt;UserControl&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Grid Name=LayoutRoot&amp;gt;&lt;/p&gt;
&lt;p&gt;and the RenderTransforms were on the UserControl or the Grid, and you added the Popup to the Grid, then you may need to do something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;UserControl&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Grid Name=newRoot&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Grid Name=LayoutRoot&amp;gt;&lt;/p&gt;
&lt;p&gt;Add the newRoot Grid, put the RenderTransforms on the LayoutRoot, and add the Popup to the newRoot.&lt;/p&gt;
</description></item><item><title>Keyboard navigation, download link broken</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9460443</link><pubDate>Thu, 05 Mar 2009 22:25:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9460443</guid><dc:creator>kobruleht</dc:creator><description>&lt;p&gt;How to allow to use tab and left/right arrow keys to navigate between buttons ?&lt;/p&gt;
&lt;p&gt;Currently keyboard naviation is not available.&lt;/p&gt;
&lt;p&gt;Also, zip file dowload link is broken.&lt;/p&gt;
&lt;p&gt;Andrus.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9640677</link><pubDate>Mon, 25 May 2009 20:22:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9640677</guid><dc:creator>tearaway_Tea</dc:creator><description>&lt;p&gt;Thanks. This is a great class!&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9798529</link><pubDate>Tue, 23 Jun 2009 02:56:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9798529</guid><dc:creator>kpinckert</dc:creator><description>&lt;p&gt;I am unable to put a ComboBox on a UserControl that is used for a popup window. &amp;nbsp;When I popup the control and touch the ComboBox it hangs. &amp;nbsp;It can be empty or not. Using SL2. &amp;nbsp;Please advise. &amp;nbsp;Thank you.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9799968</link><pubDate>Tue, 23 Jun 2009 21:04:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9799968</guid><dc:creator>Dave Relyea</dc:creator><description>&lt;p&gt;This is likely due to an SL2 bug. ComboBoxes in a Popup, when the Popup is not in the visual tree (i.e. in the page's XAML) don't work. This has been fixed for SL3.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9802021</link><pubDate>Wed, 24 Jun 2009 23:02:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9802021</guid><dc:creator>kpinckert</dc:creator><description>&lt;p&gt;Ok, thanks. &amp;nbsp;A work around then is to wrap your ComboBox in another UserControl in some way; it just can't sit directly on the popup control. &amp;nbsp;I tried that &amp;nbsp;and &amp;nbsp;it seems to be working.&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9857636</link><pubDate>Wed, 05 Aug 2009 06:15:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9857636</guid><dc:creator>Silverlight Tech</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;I find it useful even there is ChildWindow in Silverlight 3 now. ChildWindow is difficult to tune when it provides FullScreen button.&lt;/p&gt;
</description></item><item><title>re: Using Popup to create a Dialog class</title><link>http://blogs.msdn.com/devdave/archive/2008/06/08/using-popup-to-create-a-dialog-class.aspx#9859569</link><pubDate>Thu, 06 Aug 2009 23:34:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9859569</guid><dc:creator>Silverlight Tech</dc:creator><description>&lt;p&gt;Also it should call UpdateSize() method in Show() method too because user can change the browser size while popup is closed.&lt;/p&gt;
</description></item></channel></rss>