<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF)</title>
	<atom:link href="http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/</link>
	<description>Trapped online since 2004</description>
	<pubDate>Tue, 06 Jan 2009 19:26:39 +0000</pubDate>
	<generator>http://wordpress.org/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zsombor</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-548</link>
		<dc:creator>Zsombor</dc:creator>
		<pubDate>Mon, 06 Oct 2008 20:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-548</guid>
		<description>Great! Congratulation!
I like it very much! Easy to use. :)

Thanks!</description>
		<content:encoded><![CDATA[<p>Great! Congratulation!<br />
I like it very much! Easy to use. <img src='http://www.ageektrapped.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-485</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 19 Aug 2008 15:11:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-485</guid>
		<description>Great code, I didn't even think about adding a cue like that.  I did find a small problem though, if the cue's are displayed and the visiblity of the control changes, the cues can be left.  To fix this I hooked up to the IsVisible property to the control so it would remove the cue if it was visible.  Not sure if I fixed in the best manner, but it seems to work.

private static void CueBannerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Control control = (Control) d;
            control.Loaded += control_Loaded;
            DependencyPropertyDescriptor isVisiblePropertyDescriptor = DependencyPropertyDescriptor.FromProperty(Control.IsVisibleProperty, d.GetType());
            isVisiblePropertyDescriptor.AddValueChanged(d, control_IsVisibleChanged);

....

private static void control_IsVisibleChanged(object sender, EventArgs e)
        {
            Control control = (Control) sender;
            if( !ShouldShowCueBanner(control) &#124;&#124; !control.IsVisible )
                RemoveCueBanner(control);
        }</description>
		<content:encoded><![CDATA[<p>Great code, I didn&#8217;t even think about adding a cue like that.  I did find a small problem though, if the cue&#8217;s are displayed and the visiblity of the control changes, the cues can be left.  To fix this I hooked up to the IsVisible property to the control so it would remove the cue if it was visible.  Not sure if I fixed in the best manner, but it seems to work.</p>
<p>private static void CueBannerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br />
        {<br />
            Control control = (Control) d;<br />
            control.Loaded += control_Loaded;<br />
            DependencyPropertyDescriptor isVisiblePropertyDescriptor = DependencyPropertyDescriptor.FromProperty(Control.IsVisibleProperty, d.GetType());<br />
            isVisiblePropertyDescriptor.AddValueChanged(d, control_IsVisibleChanged);</p>
<p>&#8230;.</p>
<p>private static void control_IsVisibleChanged(object sender, EventArgs e)<br />
        {<br />
            Control control = (Control) sender;<br />
            if( !ShouldShowCueBanner(control) || !control.IsVisible )<br />
                RemoveCueBanner(control);<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-314</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Fri, 13 Jun 2008 12:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-314</guid>
		<description>This is brilliant.. no better, amazing! Thanks for the article :)</description>
		<content:encoded><![CDATA[<p>This is brilliant.. no better, amazing! Thanks for the article <img src='http://www.ageektrapped.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-301</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Fri, 06 Jun 2008 12:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-301</guid>
		<description>Thanks Scott. Something weird happened between Wordpress and Windows Live Writer. I've hopefully fixed it. You should see the link at the bottom of the post.</description>
		<content:encoded><![CDATA[<p>Thanks Scott. Something weird happened between Wordpress and Windows Live Writer. I&#8217;ve hopefully fixed it. You should see the link at the bottom of the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Bussinger</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-300</link>
		<dc:creator>Scott Bussinger</dc:creator>
		<pubDate>Fri, 06 Jun 2008 06:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-300</guid>
		<description>Nice post! But I didn't see a download link anywhere. I was going to play with your CueBanner, but wasn't sure if I had to cut and paste my way to a file or if there was some place to download some working code. Thanks!</description>
		<content:encoded><![CDATA[<p>Nice post! But I didn&#8217;t see a download link anywhere. I was going to play with your CueBanner, but wasn&#8217;t sure if I had to cut and paste my way to a file or if there was some place to download some working code. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop &#8211; June 5, 2008 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-293</link>
		<dc:creator>Dew Drop &#8211; June 5, 2008 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Thu, 05 Jun 2008 13:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-293</guid>
		<description>[...] The Missing .NET #4: Cue Banner in WPF (I Mean, Watermark in WPF) (Jason Kemp) [...]</description>
		<content:encoded><![CDATA[<p>[...] The Missing .NET #4: Cue Banner in WPF (I Mean, Watermark in WPF) (Jason Kemp) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
