<?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 #3: An AutoComplete TextBox in WPF, Part 4 &#8211; WPF Flourishes</title>
	<atom:link href="http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/</link>
	<description>Trapped online since 2004</description>
	<lastBuildDate>Wed, 11 Jan 2012 10:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kzmp</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-803</link>
		<dc:creator>Kzmp</dc:creator>
		<pubDate>Sat, 26 Nov 2011 21:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-803</guid>
		<description>Hi,
Thanks for sharing your code.
I wanted to bring your attention to this alternative here: http://code.google.com/p/kocontrols/downloads/list</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for sharing your code.<br />
I wanted to bring your attention to this alternative here: <a href="http://code.google.com/p/kocontrols/downloads/list" rel="nofollow">http://code.google.com/p/kocontrols/downloads/list</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>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(&#8220;autoCompletePopup&#8221;, value);<br />
                listBox = (ListBox) value.Template.FindName(&#8220;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>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>By: Sharath</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-651</link>
		<dc:creator>Sharath</dc:creator>
		<pubDate>Mon, 25 May 2009 10:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-651</guid>
		<description>Hey i got the solution thanks a  lot.

private void TextBox1_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Pressed)
            {
                TextBlock tb = e.OriginalSource as TextBlock;
                if (tb != null)
                {
                    TextBox1.Text  = tb.Text;
                    e.Handled = true;
                }
            }

        }</description>
		<content:encoded><![CDATA[<p>Hey i got the solution thanks a  lot.</p>
<p>private void TextBox1_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 />
                    TextBox1.Text  = tb.Text;<br />
                    e.Handled = true;<br />
                }<br />
            }</p>
<p>        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharath</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-650</link>
		<dc:creator>Sharath</dc:creator>
		<pubDate>Mon, 25 May 2009 09:00: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-650</guid>
		<description>Quite Helpful!!
But Can you please provide the code for selecting an option from mouse in autocomplete textbox.

Thanks!!!</description>
		<content:encoded><![CDATA[<p>Quite Helpful!!<br />
But Can you please provide the code for selecting an option from mouse in autocomplete textbox.</p>
<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-624</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Thu, 30 Apr 2009 05:27:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-624</guid>
		<description>your solution is way too complicated</description>
		<content:encoded><![CDATA[<p>your solution is way too complicated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NT</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-606</link>
		<dc:creator>NT</dc:creator>
		<pubDate>Wed, 25 Feb 2009 10:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-606</guid>
		<description>Nice, but the inability to select an option with the mouse is a big deviation from any autocomplete I&#039;ve ever used.</description>
		<content:encoded><![CDATA[<p>Nice, but the inability to select an option with the mouse is a big deviation from any autocomplete I&#8217;ve ever used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF) &#124; a geek trapped in a cool guy&#8217;s body</title>
		<link>http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/comment-page-1/#comment-280</link>
		<dc:creator>The Missing .NET #4: Cue Banner in WPF (I mean, Watermark in WPF) &#124; a geek trapped in a cool guy&#8217;s body</dc:creator>
		<pubDate>Wed, 04 Jun 2008 01:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ageektrapped.com/blog/the-missing-net-3-an-autocomplete-textbox-in-wpf-part-4-wpf-flourishes/#comment-280</guid>
		<description>[...] Posts The Missing .NET #3: An AutoComplete TextBox in WPF, Part 4 - WPF FlourishesThe Missing .NET #3: An AutoComplete TextBox in WPF, Part 3 - Control TemplatesThe Missing .NET #3: [...]</description>
		<content:encoded><![CDATA[<p>[...] Posts The Missing .NET #3: An AutoComplete TextBox in WPF, Part 4 &#8211; WPF FlourishesThe Missing .NET #3: An AutoComplete TextBox in WPF, Part 3 &#8211; Control TemplatesThe Missing .NET #3: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

