<?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 for a geek trapped in a cool guy's body</title>
	<atom:link href="http://www.ageektrapped.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ageektrapped.com/blog</link>
	<description>Trapped online since 2004</description>
	<lastBuildDate>Tue, 09 Mar 2010 17:02:57 -0500</lastBuildDate>
	<generator>http://wordpress.org/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Subtext to WordPress: Converting blog engines by PaulFarrow.com &#187; Blog Archive &#187; Moved from SubText to Wordpress</title>
		<link>http://www.ageektrapped.com/blog/subtext-to-wordpress-converting-blog-engines/comment-page-1/#comment-684</link>
		<dc:creator>PaulFarrow.com &#187; Blog Archive &#187; Moved from SubText to Wordpress</dc:creator>
		<pubDate>Tue, 09 Mar 2010 17:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonkemp.ca/blog/subtext-to-wordpress-converting-blog-engines/#comment-684</guid>
		<description>[...] I exported my subtext blog to blogml then used this very nice blog article to import it into wordpress.  I did what the chap says but didnt really have any problems at all.  [...]</description>
		<content:encoded><![CDATA[<p>[...] I exported my subtext blog to blogml then used this very nice blog article to import it into wordpress.  I did what the chap says but didnt really have any problems at all.  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using the Command Pattern in Windows Forms clients by Exorsus</title>
		<link>http://www.ageektrapped.com/blog/using-the-command-pattern-in-windows-forms-clients/comment-page-1/#comment-682</link>
		<dc:creator>Exorsus</dc:creator>
		<pubDate>Mon, 01 Mar 2010 09:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://69.42.58.100/~jaso3118/blog/using-the-command-pattern-in-windows-forms-clients/#comment-682</guid>
		<description>n fact it’s so useful and so powerful that I’m a little disappointed that Microsoft didn’t provide something like it in the framework itself =&gt; Smart Client Software Factory ....</description>
		<content:encoded><![CDATA[<p>n fact it’s so useful and so powerful that I’m a little disappointed that Microsoft didn’t provide something like it in the framework itself =&gt; Smart Client Software Factory &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF) by Eze</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-681</link>
		<dc:creator>Eze</dc:creator>
		<pubDate>Wed, 10 Feb 2010 18:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-681</guid>
		<description>Nice work!
But, these code makes Blend2 crash (there are no problem in VS):



    
        
            
        
    
    
        Geek
        Cool Guy
    

</description>
		<content:encoded><![CDATA[<p>Nice work!<br />
But, these code makes Blend2 crash (there are no problem in VS):</p>
<p>        Geek<br />
        Cool Guy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by daeD</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-676</link>
		<dc:creator>daeD</dc:creator>
		<pubDate>Fri, 11 Dec 2009 14:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-676</guid>
		<description>thanks a lot, I was looking for that for some time :)</description>
		<content:encoded><![CDATA[<p>thanks a lot, I was looking for that for some time <img src='http://www.ageektrapped.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #3: An AutoComplete TextBox in WPF, Part 4 &#8211; WPF Flourishes by Benoit</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-674</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-674</guid>
		<description>a little review of the code of Sharath

internal Control TextBox
        {
            set 
            {
                control = ControlUnderAutoComplete.Create(value);
                Style s = (Style)this[control.StyleKey];
                viewSource = control.GetViewSource(s);
                viewSource.Filter += CollectionViewSource_Filter;
                value.SetValue(Control.StyleProperty, this[control.StyleKey]);
                value.ApplyTemplate();
                autoCompletePopup = (Popup) value.Template.FindName(&quot;autoCompletePopup&quot;, value);
                listBox = (ListBox) value.Template.FindName(&quot;autoCompleteListBox&quot;, value);
                value.AddHandler(System.Windows.Controls.TextBox.TextChangedEvent, new TextChangedEventHandler(textBox1_TextChanged));
                value.LostFocus += textBox1_LostFocus;
                value.PreviewKeyUp += textBox1_PreviewKeyUp;

                //ADD THIS LINE FOR SELECTING AN OPTION FROM MOUSE 
                value.PreviewMouseDown += new MouseButtonEventHandler(value_PreviewMouseDown);

            }
        }

        void value_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                TextBlock tb = e.OriginalSource as TextBlock;
                if (tb != null)
                {
                    ((TextBox )sender).Text = tb.Text;
                    e.Handled = true;
                }
            }
        }</description>
		<content:encoded><![CDATA[<p>a little review of the code of Sharath</p>
<p>internal Control TextBox<br />
        {<br />
            set<br />
            {<br />
                control = ControlUnderAutoComplete.Create(value);<br />
                Style s = (Style)this[control.StyleKey];<br />
                viewSource = control.GetViewSource(s);<br />
                viewSource.Filter += CollectionViewSource_Filter;<br />
                value.SetValue(Control.StyleProperty, this[control.StyleKey]);<br />
                value.ApplyTemplate();<br />
                autoCompletePopup = (Popup) value.Template.FindName(&#8221;autoCompletePopup&#8221;, value);<br />
                listBox = (ListBox) value.Template.FindName(&#8221;autoCompleteListBox&#8221;, value);<br />
                value.AddHandler(System.Windows.Controls.TextBox.TextChangedEvent, new TextChangedEventHandler(textBox1_TextChanged));<br />
                value.LostFocus += textBox1_LostFocus;<br />
                value.PreviewKeyUp += textBox1_PreviewKeyUp;</p>
<p>                //ADD THIS LINE FOR SELECTING AN OPTION FROM MOUSE<br />
                value.PreviewMouseDown += new MouseButtonEventHandler(value_PreviewMouseDown);</p>
<p>            }<br />
        }</p>
<p>        void value_PreviewMouseDown(object sender, MouseButtonEventArgs e)<br />
        {<br />
            if (e.LeftButton == MouseButtonState.Pressed)<br />
            {<br />
                TextBlock tb = e.OriginalSource as TextBlock;<br />
                if (tb != null)<br />
                {<br />
                    ((TextBox )sender).Text = tb.Text;<br />
                    e.Handled = true;<br />
                }<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by Ondrej Gratz</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-673</link>
		<dc:creator>Ondrej Gratz</dc:creator>
		<pubDate>Fri, 06 Nov 2009 14:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-673</guid>
		<description>Great ! This article was useful for me, too.</description>
		<content:encoded><![CDATA[<p>Great ! This article was useful for me, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #3: An AutoComplete TextBox in WPF, Part 4 &#8211; WPF Flourishes by Benoit</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-671</link>
		<dc:creator>Benoit</dc:creator>
		<pubDate>Thu, 05 Nov 2009 13:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-671</guid>
		<description>Very nice, but I have an issue with the style. 
How can I assign a custom style to this control? 

Thanks!!!</description>
		<content:encoded><![CDATA[<p>Very nice, but I have an issue with the style.<br />
How can I assign a custom style to this control? </p>
<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by Ciantic</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-670</link>
		<dc:creator>Ciantic</dc:creator>
		<pubDate>Thu, 08 Oct 2009 20:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-670</guid>
		<description>I&#039;m sorry above example works just fine.

Just remember to *remove* the StartupUri in Application element at app.xaml.

I was in a hurry and missed that. (Looking only the source code)</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry above example works just fine.</p>
<p>Just remember to *remove* the StartupUri in Application element at app.xaml.</p>
<p>I was in a hurry and missed that. (Looking only the source code)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The WPF Application Class: Overview and Gotcha by Ciantic</title>
		<link>http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/comment-page-1/#comment-669</link>
		<dc:creator>Ciantic</dc:creator>
		<pubDate>Thu, 08 Oct 2009 18:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-wpf-application-class-overview-and-gotcha/#comment-669</guid>
		<description>Something is changed, or was not working all along:

public class MyApp : Application
{
    protected override void OnStartUp(object sender, StartUpEventArgs e)
    {
        MainWindow window = new MainWindow();
        MyConfigDialog dialog = new MyConfigDialog();
        dialog.ShowDialog();
        
        // Problem: The application doesn&#039;t close when mainwindow is closed.
        // window.Show();  // If you uncomment this it shows *two* main windowes. But same problem, application never closes.
    }
}</description>
		<content:encoded><![CDATA[<p>Something is changed, or was not working all along:</p>
<p>public class MyApp : Application<br />
{<br />
    protected override void OnStartUp(object sender, StartUpEventArgs e)<br />
    {<br />
        MainWindow window = new MainWindow();<br />
        MyConfigDialog dialog = new MyConfigDialog();<br />
        dialog.ShowDialog();</p>
<p>        // Problem: The application doesn&#8217;t close when mainwindow is closed.<br />
        // window.Show();  // If you uncomment this it shows *two* main windowes. But same problem, application never closes.<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF) by Doug</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/comment-page-1/#comment-668</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 05 Oct 2009 15:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-4-cue-banner-in-wpf-i-mean-watermark-in-wpf/#comment-668</guid>
		<description>I really dig the approach here to the problem and will be using it, however the GotFocus, LostFocus and Loaded event handlers are never removed and are set using strong references. Since this is a static class and the class never removes the event handlers, the targeted controls will never be garbaged collected. This is a pretty significant memory leak.

Instead of using += to set event handlers you should use the DependencyPropertyDescriptor method that Brian used for the Visibility issue. Internally the WPF Dependency system uses weak refrences for event handlers thus the memory leak issue is avoided. I will post example code showing my solution derived from yours. Thanks for the good work!</description>
		<content:encoded><![CDATA[<p>I really dig the approach here to the problem and will be using it, however the GotFocus, LostFocus and Loaded event handlers are never removed and are set using strong references. Since this is a static class and the class never removes the event handlers, the targeted controls will never be garbaged collected. This is a pretty significant memory leak.</p>
<p>Instead of using += to set event handlers you should use the DependencyPropertyDescriptor method that Brian used for the Visibility issue. Internally the WPF Dependency system uses weak refrences for event handlers thus the memory leak issue is avoided. I will post example code showing my solution derived from yours. Thanks for the good work!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
