<?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>Sun, 05 Sep 2010 21:43:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</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[Popup]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[focus]]></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>
]]></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>
