<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Designer Silverlight &#187; Popup</title>
	<atom:link href="http://www.designersilverlight.com/category/popup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designersilverlight.com</link>
	<description>Matthias Shapiro's Silverlight &#38; WPF Blog - Because Developers Get All The Good Blogs</description>
	<lastBuildDate>Thu, 26 Jan 2012 06:45:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Getting the Popup to Close When It Loses Focus</title>
		<link>http://www.designersilverlight.com/2007/12/11/getting-the-popup-to-close-when-it-loses-focus/</link>
		<comments>http://www.designersilverlight.com/2007/12/11/getting-the-popup-to-close-when-it-loses-focus/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 20:35:12 +0000</pubDate>
		<dc:creator>Matthias Shapiro</dc:creator>
				<category><![CDATA[focus]]></category>
		<category><![CDATA[Popup]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[IsFocused]]></category>
		<category><![CDATA[IsKeyboardFocused]]></category>
		<category><![CDATA[StaysOpen]]></category>

		<guid isPermaLink="false">http://www.designersilverlight.com/2007/12/11/getting-the-popup-to-close-when-it-loses-focus/</guid>
		<description><![CDATA[On a recent project, I spent (I kid you not) over three hours trying to get a stinking popup to close when I clicked somewhere else in the application.  Figuring it was a focus issue, I tried the following triggers: IsFocused IsKeyboardFocused IsKeyboardFocusWithin IsMouseCapture IsMouseCaptureWithin All to no avail. Turns out that the only thing [...]]]></description>
			<content:encoded><![CDATA[<p>On a recent project, I spent (I kid you not) over three hours trying to get a stinking popup to close when I clicked somewhere else in the application.</p>
<p> Figuring it was a focus issue, I tried the following triggers:</p>
<ul>
<li>IsFocused</li>
<li>IsKeyboardFocused</li>
<li>IsKeyboardFocusWithin</li>
<li>IsMouseCapture</li>
<li>IsMouseCaptureWithin</li>
</ul>
<p>All to no avail.</p>
<p>Turns out that the only thing I had to do was set the StaysOpen property of the Popup thus:</p>
<p><font color="#0000ff">&lt;</font><font color="#800000">Popup</font> <font color="#ff0000">StaysOpen</font>=&#8221;<font color="#0000ff">False</font>&#8220;<font color="#0000ff">&gt;</font></p>
<p><font color="#000000">Handy little property. I just wish that it was the default. </font></p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.designersilverlight.com/2007/12/11/getting-the-popup-to-close-when-it-loses-focus/&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Getting+the+Popup+to+Close+When+It+Loses+Focus+http%3A%2F%2Fdesignersilverlight.com%2F%3Fp%3D13" title="Post to Twitter"><img class="nothumb" src="http://www.designersilverlight.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Getting+the+Popup+to+Close+When+It+Loses+Focus+http%3A%2F%2Fdesignersilverlight.com%2F%3Fp%3D13" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.designersilverlight.com/2007/12/11/getting-the-popup-to-close-when-it-loses-focus/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

