<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Programmatically show/activate autocompletebox dropdown</title><link>http://forums.silverlight.net/forums/thread/163299.aspx</link><pubDate>Tue, 20 Jan 2009 10:35:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163299</guid><dc:creator>JWilcox</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163299.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=163299</wfw:commentRss><description>&lt;p&gt;@mikeros,&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re simply looking to set the SelectedItem, or use a two-way binding, the next release of the toolkit will support this. In the meantime, you can get early access to the changes here: &lt;a href="http://www.jeff.wilcox.name/2008/12/selecteditem-dcr/"&gt;http://www.jeff.wilcox.name/2008/12/selecteditem-dcr/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Jeff&lt;/p&gt;</description></item><item><title>Re: Re: Re: Programmatically show/activate autocompletebox dropdown</title><link>http://forums.silverlight.net/forums/thread/163217.aspx</link><pubDate>Tue, 20 Jan 2009 07:33:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:163217</guid><dc:creator>mikejos</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/163217.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=163217</wfw:commentRss><description>&lt;p&gt;Additionally, is there a way to programmatically select and display an item from the autocompletebox ItemsSource?&lt;/p&gt;
&lt;p&gt;I want to use the same control, an AutoCompleteBox, both for searching and displaying data.&lt;/p&gt;</description></item><item><title>Re: Re: Programmatically show/activate autocompletebox dropdown</title><link>http://forums.silverlight.net/forums/thread/156677.aspx</link><pubDate>Tue, 06 Jan 2009 16:01:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:156677</guid><dc:creator>KaptajnVom</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/156677.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=156677</wfw:commentRss><description>&lt;p&gt;Thanks Jeff.&lt;/p&gt;
&lt;p&gt;For future readers/reference:&lt;/p&gt;
&lt;p&gt;1. The VisualTree must be traversed after the control has Loaded - otherwise you risk that Textbox is not created (== null)&lt;/p&gt;
&lt;p&gt;2. The flesh of the code is:&lt;br /&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#2b91af"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; AutoCompleteBox_Loaded(&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;RoutedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt; e)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;{&lt;br /&gt;&amp;nbsp; &lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DependencyObject&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; o = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;VisualTreeHelper&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.GetChild((&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;AutoCompleteBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)sender, 0);&lt;br /&gt;&amp;nbsp; o = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;VisualTreeHelper&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.GetChild(o,0);&lt;br /&gt;&amp;nbsp; ((&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)(o)).Text = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;z&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Best Regards,&lt;br /&gt;Thomas Hagen&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Programmatically show/activate autocompletebox dropdown</title><link>http://forums.silverlight.net/forums/thread/156099.aspx</link><pubDate>Mon, 05 Jan 2009 16:42:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:156099</guid><dc:creator>JWilcox</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/156099.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=156099</wfw:commentRss><description>&lt;p&gt;Thomas,&lt;/p&gt;
&lt;p&gt;Technically the auto complete control does not expose a method for doing this, but if you look through the unit tests that came with the toolkit (AutoCompleteBoxTest.cs), you&amp;#39;ll see that those do exactly what you are looking to do.&lt;/p&gt;
&lt;p&gt;The process is:&lt;/p&gt;
&lt;p&gt;1. Step into the visual tree to find the TextBox that is part of the auto complete control&lt;/p&gt;
&lt;p&gt;2. Programatically set the Text dependency property value on the &lt;strong&gt;TextBox&lt;/strong&gt; (not auto complete box) to your value (&amp;quot;z&amp;quot;)&lt;/p&gt;
&lt;p&gt;That should work just fine. Let me know if you need help locating the test or getting this working.&lt;/p&gt;
&lt;p&gt;-Jeff&lt;/p&gt;</description></item><item><title>Programmatically show/activate autocompletebox dropdown</title><link>http://forums.silverlight.net/forums/thread/156049.aspx</link><pubDate>Mon, 05 Jan 2009 15:08:24 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:156049</guid><dc:creator>KaptajnVom</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/156049.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=156049</wfw:commentRss><description>&lt;p&gt;Is it possible to programmatically show/activate&amp;nbsp;the dropdown used by a autocompletebox control?&lt;/p&gt;
&lt;p&gt;I aim at&amp;nbsp;having the autocompletebox show&amp;nbsp;all items in a list without the user typing a filter.&lt;/p&gt;
&lt;p&gt;For example doing:&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;...&lt;br /&gt;acb.IsTextCompletionEnabled = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;br /&gt;acb&lt;font size="2"&gt;.SearchMode = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;AutoCompleteSearchMode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Contains;&lt;/font&gt;&lt;br /&gt;acb.ItemsSource = myStringArray;&lt;br /&gt;acb.Text = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;z&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;In the above case I&amp;nbsp;would like to show the dropdown with all strings containing &amp;quot;z&amp;quot; from myStringArray.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Thomas Hagen&lt;/p&gt;</description></item></channel></rss>