<?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>Generic UserControl(Form)</title><link>http://forums.silverlight.net/forums/thread/327515.aspx</link><pubDate>Fri, 27 Nov 2009 16:06:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327515</guid><dc:creator>briancollog</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327515.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327515</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s what I&amp;#39;m in need but don&amp;#39;t know how to do in Silverlight/XAML&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I want to create a Form/UserControl of a register, like, with the add, remove, alter, save and cancel buttons and the generic code for add, remove, alter and save buttons. The code behind of the buttons I already have some idea of what to do, but what I really don&amp;#39;t know is how to create this generic UserControl, where I can make inheritance of this class in another one and Implement the buttons, but all classes with the same layout, so, if I change a button on the Father Class, all my Childs will get the same changes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I Clear?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Someone know how to do it?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks since now. Hope you guys know a way. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>rectangle on top of image</title><link>http://forums.silverlight.net/forums/thread/326140.aspx</link><pubDate>Wed, 25 Nov 2009 07:13:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326140</guid><dc:creator>bryian</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/326140.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=326140</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;How do I place a rectangle on top of an image and be able to drag the rectangle around the image. &lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Bryian Tan &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Dataform Validation for data from WCF Service</title><link>http://forums.silverlight.net/forums/thread/327693.aspx</link><pubDate>Sat, 28 Nov 2009 00:58:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327693</guid><dc:creator>Helen W</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/327693.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327693</wfw:commentRss><description>&lt;p&gt;What is the best way of providing client-side validation in a dataform from data provided through a WCF Service (NOT Ria Services)? Do I need to modify the DataContract classes created by SQLMetal by adding data annotations? (That seems kind of ugly.)&lt;/p&gt;
&lt;p&gt;Other suggestions?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Helen&lt;/p&gt;</description></item><item><title>links in canvas</title><link>http://forums.silverlight.net/forums/thread/326104.aspx</link><pubDate>Wed, 25 Nov 2009 06:00:38 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326104</guid><dc:creator>bryian</dc:creator><slash:comments>6</slash:comments><comments>http://forums.silverlight.net/forums/thread/326104.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=326104</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I have several links (click go to a new page) in my drag-able canvas. Is it possible that I can disable all the links/click-able objects in the canvas?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Bryian Tan &lt;br /&gt;&lt;/p&gt;</description></item><item><title>DataField VerticalContentAlignment Not Applied</title><link>http://forums.silverlight.net/forums/thread/327689.aspx</link><pubDate>Sat, 28 Nov 2009 00:33:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327689</guid><dc:creator>Kieren5</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/327689.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327689</wfw:commentRss><description>&lt;p&gt;The DataField control does not apply VerticalContentAlignment to it&amp;#39;s child? Is this the intended behavior? Is there a workaround?&lt;/p&gt;
&lt;p&gt;Below, the DataField is in a * sized Grid row.&lt;/p&gt;
&lt;p&gt;&amp;lt;Grid&amp;gt;&lt;br /&gt;&amp;lt;RowDefinitions... /&amp;gt;&lt;br /&gt;&amp;lt;DataField Grid.Row=&amp;quot;2&amp;quot;&amp;nbsp;VerticalContentAlignment=&amp;quot;Stretch&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataGrid... /&amp;gt;&lt;br /&gt;&amp;lt;/DataField&amp;gt;&lt;br /&gt;&amp;lt;/Grid&amp;gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;</description></item><item><title>DataGrid Dynamic Binding  from Dictionary ??</title><link>http://forums.silverlight.net/forums/thread/327589.aspx</link><pubDate>Fri, 27 Nov 2009 20:04:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327589</guid><dc:creator>mas3oude</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327589.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327589</wfw:commentRss><description>Hi all 
i need help in following case urgent 
i have List of Dictionaries--List&amp;gt; --  created in run time from selection in map viewer 
so the returned results change depend on selection it change in string and object value
so i can just get the result keys(string) and i can&amp;#39;t bind the result (values) dynamically in the DataGrid please i need solve this problem ASAP

thanks in advance</description></item><item><title>ComboBox with Checkboxes inside</title><link>http://forums.silverlight.net/forums/thread/327614.aspx</link><pubDate>Fri, 27 Nov 2009 20:21:45 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327614</guid><dc:creator>HugoEnrique</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327614.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327614</wfw:commentRss><description>&lt;p&gt;Hello all, I have read a lot of forums talking about this same issue but not specifically about what am I trying to do. I hope someone can help me with some ideas. I have a ComboBox with CheckBoxes inside, which I have already accomplished. But this is the deal, I want to set the ItemsSource property of the ComboBox from a query, that it&amp;#39;s already working as well, but I want to put each one of them on as a CheckBox content. The proper question would be: How to create CheckBoxes dinamicly from from a list of strings? Any help will be highly appreciated. Thanks.&lt;/p&gt;</description></item><item><title>How can I add a Reflection to my UserControl?</title><link>http://forums.silverlight.net/forums/thread/327666.aspx</link><pubDate>Fri, 27 Nov 2009 22:29:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327666</guid><dc:creator>Malone</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327666.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327666</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have created a UserControl in which I have a Grid and in it a Image and a Textblock. Here is my code of that UserControl:&lt;/p&gt;&lt;p&gt;&amp;lt;UserControl&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:d=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mc=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mc:Ignorable=&amp;quot;d&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x:Class=&amp;quot;MyApp.MenueItem&amp;quot; Width=&amp;quot;160&amp;quot; Height=&amp;quot;117&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid x:Name=&amp;quot;LayoutRoot&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid.RowDefinitions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RowDefinition Height=&amp;quot;0.591*&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RowDefinition Height=&amp;quot;0.409*&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid.RowDefinitions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Image x:Name=&amp;quot;imgPic&amp;quot; Margin=&amp;quot;52,6,51,6&amp;quot; Width=&amp;quot;57&amp;quot; Height=&amp;quot;57&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock x:Name=&amp;quot;txtText&amp;quot; Text=&amp;quot;Textblock&amp;quot; TextWrapping=&amp;quot;Wrap&amp;quot; Margin=&amp;quot;0,6,0,0&amp;quot; Grid.Row=&amp;quot;1&amp;quot; HorizontalAlignment=&amp;quot;Center&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;br /&gt;&amp;lt;/UserControl&amp;gt; &lt;/p&gt;&lt;p&gt;Now I would like to add under my UserControl a Reflection of that item, but how can I do that?&lt;/p&gt;&lt;p&gt;Thank you in advance!&lt;/p&gt;&lt;p&gt;Best Regards&lt;/p&gt;&lt;p&gt;Malone &lt;br /&gt;&lt;/p&gt;</description></item><item><title>show image like slides</title><link>http://forums.silverlight.net/forums/thread/327640.aspx</link><pubDate>Fri, 27 Nov 2009 21:16:21 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327640</guid><dc:creator>hossen.aftabi</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327640.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327640</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;if you see the first of &lt;a href="http://www.silverlight.net/"&gt;www.silverlight.net&lt;/a&gt; can see that many pictures show after another&lt;/p&gt;
&lt;p&gt;can you help my for make like it?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>XAML Binding to another element</title><link>http://forums.silverlight.net/forums/thread/326350.aspx</link><pubDate>Wed, 25 Nov 2009 14:14:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326350</guid><dc:creator>patanpatan</dc:creator><slash:comments>10</slash:comments><comments>http://forums.silverlight.net/forums/thread/326350.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=326350</wfw:commentRss><description>Hi.&lt;br /&gt;&lt;br /&gt;I have a problem with XAML, probably there&amp;#39;s something I&amp;#39;m not doing right.&lt;br /&gt;&lt;br /&gt;I Have a Class that inherits from ContentControl, with a few DependencyProperty. One of this DependencyProperty is a DataGrid, and I need it to reference a DataGrid in the XAML page where I put my control. What I need is set a few eventhandlers for the datagrid.&lt;br /&gt;It&amp;#39;s working if I do it through code behind:&lt;br /&gt;&amp;nbsp;&amp;nbsp; MyControl.DataGrid = this.actualDataGrid;&lt;br /&gt;But I want to reference it in XAML. &lt;br /&gt;I&amp;#39;ve tried several &amp;lt;Binding... but i can&amp;#39;t get it to work. Every sample that I find is for referencing a property in another element, not the whole element.</description></item><item><title>Usage of TreeViewConnectingLines without Blend</title><link>http://forums.silverlight.net/forums/thread/327352.aspx</link><pubDate>Fri, 27 Nov 2009 08:54:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327352</guid><dc:creator>ashwin893</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327352.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327352</wfw:commentRss><description>&lt;p&gt;Iam using Silverlight TreeView. i want Connecting lines between the nodes. In the oct toolkit, there is a class TreeViewConnectingLines but i dont know how to implement it.&lt;/p&gt;
&lt;p&gt;Please help me as soon as possible,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ashwin kumar.&lt;/p&gt;</description></item><item><title>Expanding/Collapsing Accordion item crashes Silverlight!</title><link>http://forums.silverlight.net/forums/thread/327426.aspx</link><pubDate>Fri, 27 Nov 2009 11:32:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327426</guid><dc:creator>The Lockster</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327426.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327426</wfw:commentRss><description>&lt;p&gt;I have had this issue for a few months now and I was hoping the new toolkit would fix the issue however it&amp;#39;s still there &lt;img src="http://forums.silverlight.net/emoticons/emotion-6.gif" alt="Sad" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am currently using &lt;u&gt;&lt;b&gt;Microsoft Silverlight 3 Toolkit July 2009&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;The issue is a fairly simple one, when expanding and/or collapsing the last accordion item in our accordion control, yes it is only the last accordion item that exhibits this behaviour, &lt;u&gt;sometimes&lt;/u&gt; not all the time silverlight crashes with the following error from Firefox ErrorConsole:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control &amp;#39;Xaml1&amp;#39;: System.BadImageFormatException: Could not load file or assembly &amp;#39;1530 bytes loaded from System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e&amp;#39; or one of its dependencies. An attempt was made to load a program with an incorrect format.&lt;br /&gt;File name: &amp;#39;1530 bytes loaded from System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e&amp;#39; ---&amp;gt; System.BadImageFormatException: Bad IL format.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.Assembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark&amp;amp; stackMark, Boolean fIntrospection)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Reflection.Assembly.Load(Byte[] rawAssembly)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.JoltHelper.LoadAssembly(Byte[] buffdata, Assembly&amp;amp; loadedAssembly)&lt;br /&gt;Source File: http://localhost:13371/ScriptResource.axd?d=a4gAuAW-M4XAX3KqmhziLiPPDprSm-G0BQ_yOJNkgkXu90GV5MKZKCRr6GUnXA1P35eO6DrbZA-JNFdJ_tIBxw2&amp;amp;t=1f1ca10&lt;br /&gt;Line: 461&lt;/p&gt;&lt;p&gt;I have searched forums to no avail and unsure whether it is an issue with the accordion control or whether the xaml is wrong in some way? Hopefully someone can help clear this up, or I shall have to report the issue.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The Xaml for the accordion:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;layoutToolkit:Accordion x:Name=&amp;quot;Properties&amp;quot; Grid.Column=&amp;quot;2&amp;quot; ExpandDirection=&amp;quot;Down&amp;quot; SelectionMode=&amp;quot;ZeroOrMore&amp;quot; Width=&amp;quot;270&amp;quot; Margin=&amp;quot;0, 10, 0, 10&amp;quot; VerticalAlignment=&amp;quot;Stretch&amp;quot; HorizontalAlignment=&amp;quot;Stretch&amp;quot; VerticalContentAlignment=&amp;quot;Stretch&amp;quot; HorizontalContentAlignment=&amp;quot;Stretch&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layoutToolkit:AccordionItem Header=&amp;quot;Element Properties&amp;quot; IsSelected=&amp;quot;True&amp;quot; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ScrollViewer VerticalScrollBarVisibility=&amp;quot;Auto&amp;quot; BorderThickness=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel x:Name=&amp;quot;PropertyPanel&amp;quot; Margin=&amp;quot;5,5,0,5&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ScrollViewer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layoutToolkit:AccordionItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layoutToolkit:AccordionItem Header=&amp;quot;Item Properties&amp;quot; IsSelected=&amp;quot;True&amp;quot; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ScrollViewer VerticalScrollBarVisibility=&amp;quot;Auto&amp;quot; BorderThickness=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel x:Name=&amp;quot;ItemPropertyPanel&amp;quot; Margin=&amp;quot;5,5,0,5&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ScrollViewer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layoutToolkit:AccordionItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layoutToolkit:AccordionItem Header=&amp;quot;Element Type&amp;quot; IsSelected=&amp;quot;True&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ScrollViewer VerticalScrollBarVisibility=&amp;quot;Auto&amp;quot; BorderThickness=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel x:Name=&amp;quot;ControlPropertyPanel&amp;quot; Margin=&amp;quot;5,5,0,0&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ScrollViewer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layoutToolkit:AccordionItem&amp;gt;&lt;br /&gt;&amp;lt;/layoutToolkit:Accordion&amp;gt;&lt;/p&gt;&lt;p&gt;All of the stack panels within the accordion items are populated dynamically with a collection of silverlight controls so the accordion items size dynamically. I have tried just setting the content of the scroll viewer as well rather than having an extra stack panel control and the issue still occurs.&lt;/p&gt;&lt;p&gt;Please let me know your ideas on what could be wrong or things to try to fix it! &lt;/p&gt;&lt;p&gt;Many Thanks&lt;/p&gt;&lt;p&gt;Paul. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Select record in DataGrid</title><link>http://forums.silverlight.net/forums/thread/327439.aspx</link><pubDate>Fri, 27 Nov 2009 12:21:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327439</guid><dc:creator>dunirvana</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/327439.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327439</wfw:commentRss><description>&lt;p&gt;&lt;span id="result_box" class="long_text"&gt;&lt;span&gt;I would like to select a particular record and place the focus on the same.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;With this code the record is selected but the scroll bar does not move:&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="long_text"&gt;&lt;span&gt;&lt;pre class="coloredcode"&gt;&lt;pre class="coloredcode"&gt;grid.SelectedIndex = 10;&lt;/pre&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt; &lt;span id="result_box" class="long_text"&gt;&lt;span&gt;I&amp;#39;ve tried that way, but nothing happens:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="long_text"&gt;&lt;span&gt;&lt;pre class="coloredcode"&gt;grid.ScrollIntoView (_sistemaContext.EntSistemas [_sistemaContext.EntSistemas.Count-1], grid.Columns [0]);&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/p&gt;</description></item><item><title>Listbox SelectedItem not working</title><link>http://forums.silverlight.net/forums/thread/324552.aspx</link><pubDate>Sun, 22 Nov 2009 21:44:03 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:324552</guid><dc:creator>StefanOlson</dc:creator><slash:comments>8</slash:comments><comments>http://forums.silverlight.net/forums/thread/324552.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=324552</wfw:commentRss><description>&lt;p&gt;I have two Listboxes.&amp;nbsp; There should always be an item selected in the top ListBox, which displays a series of items based on selection&amp;nbsp;in the bottom&amp;nbsp;ListBox.&amp;nbsp; Unfortunately, WPF sets the selected item perfectly, but Silverlight doesn&amp;#39;t set the selected item correctly after I change the selection in the bottom ListBox for the second time. I have looked at this article (&lt;a href="http://blogs.msdn.com/delay/archive/2008/03/05/lb-sv-faq-examples-notes-tips-and-more-for-silverlight-2-beta-1-s-listbox-and-scrollviewer-controls.aspx"&gt;http://blogs.msdn.com/delay/archive/2008/03/05/lb-sv-faq-examples-notes-tips-and-more-for-silverlight-2-beta-1-s-listbox-and-scrollviewer-controls.aspx&lt;/a&gt;), but it doesn&amp;#39;t seem to provide any solutions for my particular problem. Can anyone explain why the selected item is correctly set in my code&amp;nbsp;(as you can see because the text block displays it), but the selected item is not highlighted in the list box?&lt;/p&gt;
&lt;p&gt;C# code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Collections.Generic;

&lt;span class="kwd"&gt;namespace&lt;/span&gt; SelectedItemBug
{
    &lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; MainPage
    {
        &lt;span class="kwd"&gt;public&lt;/span&gt; List Groups { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
        
        &lt;span class="kwd"&gt;public&lt;/span&gt; MainPage()
        {
            InitializeComponent();

            Groups = &lt;span class="kwd"&gt;new&lt;/span&gt; List { &lt;span class="kwd"&gt;new&lt;/span&gt; Group(&lt;span class="st"&gt;&amp;quot;group1&amp;quot;&lt;/span&gt;), &lt;span class="kwd"&gt;new&lt;/span&gt; Group(&lt;span class="st"&gt;&amp;quot;group2&amp;quot;&lt;/span&gt;), &lt;span class="kwd"&gt;new&lt;/span&gt; Group(&lt;span class="st"&gt;&amp;quot;group3&amp;quot;&lt;/span&gt;) };
        }
    }

    &lt;span class="kwd"&gt;public class&lt;/span&gt; Group
    {
        &lt;span class="kwd"&gt;public&lt;/span&gt; List Items { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
        &lt;span class="kwd"&gt;public&lt;/span&gt; Item SelectedItem { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }

        &lt;span class="kwd"&gt;public&lt;/span&gt; Group(&lt;span class="kwd"&gt;string&lt;/span&gt; name)
        {
            Items = &lt;span class="kwd"&gt;new&lt;/span&gt; List { &lt;span class="kwd"&gt;new&lt;/span&gt; Item(name + &lt;span class="st"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;), &lt;span class="kwd"&gt;new&lt;/span&gt; Item(name + &lt;span class="st"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;), &lt;span class="kwd"&gt;new&lt;/span&gt; Item(name + &lt;span class="st"&gt;&amp;quot;3&amp;quot;&lt;/span&gt;) };
            SelectedItem = Items[0];
        }
    }
    &lt;span class="kwd"&gt;public class&lt;/span&gt; Item
    {
        &lt;span class="kwd"&gt;public string&lt;/span&gt; Name { &lt;span class="kwd"&gt;get&lt;/span&gt;; &lt;span class="kwd"&gt;set&lt;/span&gt;; }
        &lt;span class="kwd"&gt;public&lt;/span&gt; Item(&lt;span class="kwd"&gt;string&lt;/span&gt; name)
        {
            Name = name;
        }
        &lt;span class="kwd"&gt;public override string&lt;/span&gt; ToString()
        {
            &lt;span class="kwd"&gt;return&lt;/span&gt; Name;
        }
    }
}
&lt;/pre&gt;&amp;nbsp; 
&lt;p&gt;Xaml code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;UserControl&lt;/span&gt;&lt;span class="attr"&gt; x:Class=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;SelectedItemBug.MainPage&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;    xmlns=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;    xmlns:x=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;    x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;_MainPage&amp;quot;&lt;/span&gt;&amp;gt;
    &amp;lt;&lt;span class="tag"&gt;Grid&lt;/span&gt; &amp;gt;
        &amp;lt;&lt;span class="tag"&gt;Grid.RowDefinitions&lt;/span&gt;&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;RowDefinition&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Auto&amp;quot;&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;RowDefinition&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;*&amp;quot;&lt;/span&gt;/&amp;gt;
            &amp;lt;&lt;span class="tag"&gt;RowDefinition&lt;/span&gt;&lt;span class="attr"&gt; Height=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Auto&amp;quot;&lt;/span&gt;/&amp;gt;
        &amp;lt;/&lt;span class="tag"&gt;Grid.RowDefinitions&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;ListBox&lt;/span&gt;&lt;span class="attr"&gt; ItemsSource=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding ElementName=_ListBox, Path=SelectedItem.Items}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; SelectedItem=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding ElementName=_ListBox, Path=SelectedItem.SelectedItem}&amp;quot;&lt;/span&gt; /&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Grid.Row=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding ElementName=_ListBox, Path=SelectedItem.SelectedItem.Name}&amp;quot;&lt;/span&gt;/&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;ListBox&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;_ListBox&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Grid.Row=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ItemsSource=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding ElementName=_MainPage, Path=Groups}&amp;quot;&lt;/span&gt;/&amp;gt;
    &amp;lt;/&lt;span class="tag"&gt;Grid&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;UserControl&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&amp;nbsp; 
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;</description></item><item><title>AutoCompleteBox: how to make popup resizable or correct width</title><link>http://forums.silverlight.net/forums/thread/323178.aspx</link><pubDate>Thu, 19 Nov 2009 19:50:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:323178</guid><dc:creator>kobruleht</dc:creator><slash:comments>10</slash:comments><comments>http://forums.silverlight.net/forums/thread/323178.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=323178</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using AutoCompletebox with styled popup below, FilterMode is StartsWith. 
&lt;p&gt;Popup rembembers sometimes its previous width during search if ItemsSource is not changed.&amp;nbsp;If new search string is entered, popup width is too small for new list. I tried to use Grid Column width=&amp;quot;Auto&amp;quot; but in this case width changes if users scrolls in list which is not nice. 
&lt;p&gt;How to make&amp;nbsp;popup width resizable by user (or better force its width to follow content always) ? 
&lt;p&gt;Andrus.&lt;pre class="coloredcode"&gt;                            &amp;lt;&lt;span class="tag"&gt;Popup&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Popup&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Closed=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Popup_Closed&amp;quot;&lt;/span&gt; &amp;gt;

                                &amp;lt;&lt;span class="tag"&gt;Border&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;PopupBorder&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HorizontalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Stretch&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Opacity=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0.0&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderThickness=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; CornerRadius=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;3&amp;quot;&lt;/span&gt;&amp;gt;
                                    &amp;lt;&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;TranslateTransform&lt;/span&gt;&lt;span class="attr"&gt; X=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Y=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;2&amp;quot;&lt;/span&gt; /&amp;gt;
                                    &amp;lt;/&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                    &amp;lt;&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;SolidColorBrush&lt;/span&gt;&lt;span class="attr"&gt; Color=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#11000000&amp;quot;&lt;/span&gt; /&amp;gt;
                                    &amp;lt;/&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;
                                    &amp;lt;&lt;span class="tag"&gt;Border&lt;/span&gt;&lt;span class="attr"&gt; HorizontalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Stretch&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderThickness=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; CornerRadius=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;3&amp;quot;&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;SolidColorBrush&lt;/span&gt;&lt;span class="attr"&gt; Color=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#11000000&amp;quot;&lt;/span&gt; /&amp;gt;
                                        &amp;lt;/&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;TransformGroup&lt;/span&gt;&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;ScaleTransform&lt;/span&gt; /&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;SkewTransform&lt;/span&gt; /&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;RotateTransform&lt;/span&gt; /&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;TranslateTransform&lt;/span&gt;&lt;span class="attr"&gt; X=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Y=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-1&amp;quot;&lt;/span&gt; /&amp;gt;
                                            &amp;lt;/&lt;span class="tag"&gt;TransformGroup&lt;/span&gt;&amp;gt;
                                        &amp;lt;/&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;Border&lt;/span&gt;&lt;span class="attr"&gt; HorizontalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Stretch&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Opacity=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Padding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderThickness=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderBrush=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{TemplateBinding BorderBrush}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; CornerRadius=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;3&amp;quot;&lt;/span&gt;&amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;TransformGroup&lt;/span&gt;&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;ScaleTransform&lt;/span&gt; /&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;SkewTransform&lt;/span&gt; /&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;RotateTransform&lt;/span&gt; /&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;TranslateTransform&lt;/span&gt;&lt;span class="attr"&gt; X=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-2&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Y=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-2&amp;quot;&lt;/span&gt; /&amp;gt;
                                                &amp;lt;/&lt;span class="tag"&gt;TransformGroup&lt;/span&gt;&amp;gt;
                                            &amp;lt;/&lt;span class="tag"&gt;Border.RenderTransform&lt;/span&gt;&amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;LinearGradientBrush&lt;/span&gt;&lt;span class="attr"&gt; EndPoint=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0.5,1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; StartPoint=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0.5,0&amp;quot;&lt;/span&gt;&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;GradientStop&lt;/span&gt;&lt;span class="attr"&gt; Color=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FFDDDDDD&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Offset=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;/&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;GradientStop&lt;/span&gt;&lt;span class="attr"&gt; Color=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#AADDDDDD&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Offset=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;/&amp;gt;
                                                &amp;lt;/&lt;span class="tag"&gt;LinearGradientBrush&lt;/span&gt;&amp;gt;
                                            &amp;lt;/&lt;span class="tag"&gt;Border.Background&lt;/span&gt;&amp;gt;

                                            &amp;lt;&lt;span class="tag"&gt;Grid&lt;/span&gt;&amp;gt;
                                                &amp;lt;&lt;span class="tag"&gt;Grid.ColumnDefinitions&lt;/span&gt;&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;ColumnDefinition&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;*&amp;quot;&lt;/span&gt;/&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;ColumnDefinition&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Auto&amp;quot;&lt;/span&gt;/&amp;gt;
                                                &amp;lt;/&lt;span class="tag"&gt;Grid.ColumnDefinitions&lt;/span&gt;&amp;gt;

                                                &amp;lt;&lt;span class="tag"&gt;ListBox&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Selector&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; &lt;/span&gt;&lt;span class="attr"&gt;IsTabStop=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;False&amp;quot;&lt;/span&gt;&amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;ListBox.ItemTemplate&lt;/span&gt;&amp;gt;
                                                        &amp;lt;&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
                                                            &amp;lt;&lt;span class="tag"&gt;StackPanel&lt;/span&gt;&lt;span class="attr"&gt; Orientation=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&amp;gt;
                                                                &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding DisplayMember}&amp;quot;&lt;/span&gt; /&amp;gt;
                                                                &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;  &amp;quot;&lt;/span&gt; /&amp;gt;
                                                                &amp;lt;&lt;span class="tag"&gt;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding PopupAdditional}&amp;quot;&lt;/span&gt; /&amp;gt;
                                                            &amp;lt;/&lt;span class="tag"&gt;StackPanel&lt;/span&gt;&amp;gt;
                                                        &amp;lt;/&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&amp;gt;
                                                    &amp;lt;/&lt;span class="tag"&gt;ListBox.ItemTemplate&lt;/span&gt;&amp;gt;
                                                &amp;lt;/&lt;span class="tag"&gt;ListBox&lt;/span&gt;&amp;gt;

                                                &amp;lt;&lt;span class="tag"&gt;StackPanel&lt;/span&gt;&lt;span class="attr"&gt; Grid.Column=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1&amp;quot;&lt;/span&gt; &amp;gt;
                                                    &amp;lt;&lt;span class="tag"&gt;Button&lt;/span&gt;&lt;span class="attr"&gt; Background=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Gray&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;openTableButton&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                                    Style=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{StaticResource ZoomBtnTemplate}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; &lt;/span&gt;&lt;span class="attr"&gt;IsTabStop=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;False&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;40&amp;quot;&lt;/span&gt;
                                                    &amp;gt;
                                                        &amp;lt;&lt;span class="tag"&gt;Image&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;previewImage&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;16&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Source=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;/Images/open-16x16.png&amp;quot;&lt;/span&gt;/&amp;gt;
                                                    &amp;lt;/&lt;span class="tag"&gt;Button&lt;/span&gt;&amp;gt;
                                                &amp;lt;/&lt;span class="tag"&gt;StackPanel&lt;/span&gt;&amp;gt;
                                            &amp;lt;/&lt;span class="tag"&gt;Grid&lt;/span&gt;&amp;gt;

                                        &amp;lt;/&lt;span class="tag"&gt;Border&lt;/span&gt;&amp;gt;
                                    &amp;lt;/&lt;span class="tag"&gt;Border&lt;/span&gt;&amp;gt;
                                &amp;lt;/&lt;span class="tag"&gt;Border&lt;/span&gt;&amp;gt;
                            &amp;lt;/&lt;span class="tag"&gt;Popup&lt;/span&gt;&amp;gt;
&amp;nbsp;&lt;/pre&gt;</description></item><item><title>Swapping the position of 2 TreeViewItems</title><link>http://forums.silverlight.net/forums/thread/320975.aspx</link><pubDate>Mon, 16 Nov 2009 19:18:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:320975</guid><dc:creator>johan.gl</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/320975.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=320975</wfw:commentRss><description>&lt;p&gt;Is there an easy way to swap the position of 2 TreeViewItems within a TreeView?&lt;/p&gt;&lt;p&gt;I need this because im manually handling drag-and-drop behaviour of the treeview to fit my own needs. &lt;/p&gt;</description></item><item><title>TreeViewDragDropTarget Droping change info</title><link>http://forums.silverlight.net/forums/thread/327559.aspx</link><pubDate>Fri, 27 Nov 2009 18:30:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327559</guid><dc:creator>crixo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/327559.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327559</wfw:commentRss><description>&lt;p&gt;i&amp;#39;m using TreeView control to show a Hierarchy menu.&lt;/p&gt;
&lt;p&gt;I added TreeViewDragDropTarget and everything looks fine: I can successfully re-order sibling, change parent dragging TreeViewItem into new parent...&lt;/p&gt;
&lt;p&gt;but i&amp;#39;m in trouble to read changes on Drops events.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m using&lt;/p&gt;
&lt;p&gt;ItemDroppedOnSource=&amp;quot;TreeViewDragDropTarget_ItemDroppedOnSource&amp;quot; ItemDroppedOnTarget=&amp;quot;TreeViewDragDropTarget_ItemDroppedOnTarget&amp;quot;&lt;br /&gt;Drop=&amp;quot;TreeViewDragDropTarget_Drop&lt;/p&gt;
&lt;p&gt;but I cannot figure out how to get new parent where I dropped my dragged item.&lt;/p&gt;
&lt;p&gt;into any of those methods I try to get parent of dragged item &lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; parentItem = twMenu.GetParentItem(twMenu.SelectedItem);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;parentItem is still reflecting situation after initial binding, not change obteined with drag action&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;what I&amp;#39;d like to know is new parent after drag and/or new order of sibling if i moved an item up/down&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Silverlight application and accessing client side files</title><link>http://forums.silverlight.net/forums/thread/327455.aspx</link><pubDate>Fri, 27 Nov 2009 12:47:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327455</guid><dc:creator>Ian Hannah</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/327455.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327455</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I just wanted to make sure that my understanding was correct. When a client downloads a Silverlight application that application cannot access the client&amp;#39;s file system other than by using a file open dialog. Is this correct? &lt;/p&gt;
&lt;p&gt;So there is no way that the Silverlight application could read a configuration file from the client machine? What I would like to do is to have a standard installation but to allow the user to create a configuraition file that can be loaded. Any ideas on if this is possible or how to do it would be appreciated?&lt;/p&gt;
&lt;p&gt;However in Silverlight 4 you can access the client file system if the application is run out of browser and has elevated privileges. Is this correct?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Ian&lt;/p&gt;</description></item><item><title>When is an object hierarchy completely loaded? Loaded event is unreliable.</title><link>http://forums.silverlight.net/forums/thread/114323.aspx</link><pubDate>Tue, 21 Oct 2008 12:42:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:114323</guid><dc:creator>andulvar</dc:creator><slash:comments>8</slash:comments><comments>http://forums.silverlight.net/forums/thread/114323.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=114323</wfw:commentRss><description>&lt;p&gt;I have an application that is causing me grief with the Loaded event.&amp;nbsp; I derive a class from Grid (call it Outer), and a class from DependencyObject (call it Inner).&amp;nbsp; Inner is a child of Outer.&amp;nbsp; When both are loaded I want to assign Inner as the DataContext of Outer.&amp;nbsp; Logically, I should do this work in the Loaded event of Outer.&amp;nbsp; Alternatively, I could do this work in the OnApplyTemplate method of Outer.&amp;nbsp; It doesn&amp;#39;t work reliably because I cannot predict whether Inner exists when Outer&amp;#39;s Loaded event fires.&amp;nbsp; &lt;/p&gt;&lt;p&gt;If Inner is fully defined within the XAML of Outer, it appears to work.&amp;nbsp; If Inner is templated, so that its own properties are assigned through {StaticResource...} then Inner is not yet defined when Outer&amp;#39;s Loaded event fires.&amp;nbsp; Consequently when I assign Outer.DataContext = Inner, this throws an error (argument is out of expected range) presumably because Inner has not yet been initialized in some fashion.&amp;nbsp; This post: &lt;a href="http://silverlight.net/forums/p/11996/39114.aspx#39114"&gt;http://silverlight.net/forums/p/11996/39114.aspx#39114&lt;/a&gt; implies that the order is fixed.&amp;nbsp; It clearly is not.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m doing all this because if I try to assign Outer as its own DataContext (basically: this.DataContext = this), it always fails with the same error message.&amp;nbsp; It looks like the object state has to pass a certain point in the construction process before it can be assigned as a DataContext.&lt;/p&gt;&lt;p&gt;I tried to make Inner a FrameworkElement or a Control so I could count Loaded events, and do the work only when two Loaded events have occurred.&amp;nbsp; This can only work because Inner and Outer are both my code, and they know about each other.&amp;nbsp; The problem is that Inner&amp;#39;s Loaded event can fire zero, one or multiple times.&amp;nbsp; I haven&amp;#39;t figured out what causes that, other than to note that if there is a try/catch in some processing that precedes Inner&amp;#39;s Loaded event, and an error is caught, this could stop Inner&amp;#39;s Loaded event from happening at all.&amp;nbsp; In the debugger I once saw Inner&amp;#39;s Loaded event get called 6 times in a single run.&amp;nbsp; I can&amp;#39;t tell you why.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I considered calling ApplyTemplate manually in the Loaded event of Outer.&amp;nbsp; Unfortunately, Grid does not have an ApplyTemplate method.&amp;nbsp; Why not?&amp;nbsp; It has an OnApplyTemplate override.&amp;nbsp; Strangely, the OnApplyTemplate method of Outer never actually gets called.&amp;nbsp; If I make Inner into a FrameworkElement, its OnApplyTemplate never gets called either.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve read this post: &lt;a href="http://silverlight.net/forums/p/27294/93181.aspx#93181"&gt;http://silverlight.net/forums/p/27294/93181.aspx#93181&lt;/a&gt; which deals with the question of Loaded order somewhat, but doesn&amp;#39;t address the issue for objects without an ApplyTemplate method.&amp;nbsp; It also doesn&amp;#39;t address the issue of Loaded firing a random number of times.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;So, after all this, I have one simple question:&lt;/p&gt;&lt;p&gt;At what point in the code can I be guaranteed that my object (in general, a DependencyObject) and all of its children are completely loaded?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>OnApplyTemplate issue</title><link>http://forums.silverlight.net/forums/thread/92272.aspx</link><pubDate>Tue, 16 Sep 2008 18:29:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:92272</guid><dc:creator>GA30</dc:creator><slash:comments>6</slash:comments><comments>http://forums.silverlight.net/forums/thread/92272.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=92272</wfw:commentRss><description>&lt;p&gt;Hello All!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got this progress bar type control that I got from around here. It works great. The only thing is that every so often the control bombs because it has code that tries to access its parts but for whatever reason on occassion the part references are null. They are null because on occassion the code that accesses the parts runs BEFORE OnApplyTemplate is called. Again, this does not always happen, only some times but enough to be a problem. I have made sure that this code that accesses the control parts does not fire until the control&amp;#39;s loaded event fires. Furthermore, because of various things I&amp;#39;ve read out there I have taken yet extra precautions to prevent this problem by calling BeginInvoke (see code below) within the loaded event handler but still on occassion it bombs. In order to get around the problem I find myself sometimes creating timers on the fly with very short time spans which I hope will be enough time for the control&amp;#39;s OnApplyTemplate method to be called. Anyone have any ideas?????? Thanks in advance&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Loaded += (o, e) =&amp;gt;{&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;//the&amp;nbsp;Start method is the one that occassionally bombs&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Dispatcher.BeginInvoke(() =&amp;gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.Start());&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;};&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Combobox with foreign key - resources</title><link>http://forums.silverlight.net/forums/thread/327461.aspx</link><pubDate>Fri, 27 Nov 2009 13:02:53 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327461</guid><dc:creator>mhv642</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/327461.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327461</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to implement a combobox in a datagrid in silverlight 3 (in VB)&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve used the information from http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx&lt;/p&gt;&lt;p&gt;This works, but now I want to replace the static resource, because static resources are no real live solutions for dynamic data&lt;/p&gt;&lt;p&gt;Has anybody other suggestions on how I can do this ? (I&amp;#39;m not a specialist in silverlight programming, and certainly not in C#) &lt;img src="http://forums.silverlight.net/emoticons/emotion-6.gif" alt="Sad" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Bart &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem incorporating a Border Blur.Effect in a TextBox style template</title><link>http://forums.silverlight.net/forums/thread/327259.aspx</link><pubDate>Fri, 27 Nov 2009 02:54:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327259</guid><dc:creator>spbgeb</dc:creator><slash:comments>2</slash:comments><comments>http://forums.silverlight.net/forums/thread/327259.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327259</wfw:commentRss><description>&lt;p&gt;I have implemented a custom TextBox template, very similar to what Karen Corby presented in sample code at MIX09.&amp;nbsp; In this sample, the standard TextBox template was changed to place a Border around the TextBox with a Blur.Effect (Radius=&amp;quot;10&amp;quot;).&amp;nbsp; Whenever the VisualState is changed to InvalidFocused or ValidFocused, the Border opacity is changed to &amp;quot;1&amp;quot; to allow the red-colored border and blur to be show, putting a cool red &amp;quot;glow&amp;quot; around the TextBox whenever a Validation error occurs.&lt;/p&gt;
&lt;p&gt;This all seemed to work great (very simple changes to the default TextBox template) until I put a TextBox in my XAML using this new style that had a Height set to something other than the default.&amp;nbsp; For example, I placed a TextBox in the XAML that was a multi-line TextBox with Height=&amp;quot;200&amp;quot;.&amp;nbsp; All TextBoxes in the XAML stopped working.&amp;nbsp; If the Blur.Effect was removed from the Border, it works great.&lt;/p&gt;
&lt;p&gt;This is very easy to reproduce.&amp;nbsp; Any ideas why adding a simple Border with a Blur.Effect in the template would cause all TextBoxes to become unstable?&amp;nbsp; BTW, if I leave the Border but remove the Blur.Effect, it works great.&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;Border&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ErrorBlur&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Opacity=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Margin=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;-1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Background=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FFDB000C&amp;quot;&lt;/span&gt;&amp;gt;
   &amp;lt;&lt;span class="tag"&gt;Border.Effect&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;BlurEffect&lt;/span&gt;&lt;span class="attr"&gt; Radius=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;10&amp;quot;&lt;/span&gt;/&amp;gt;
   &amp;lt;/&lt;span class="tag"&gt;Border.Effect&lt;/span&gt;&amp;gt;
&amp;lt;/&lt;span class="tag"&gt;Border&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&amp;nbsp;</description></item><item><title>What to do when DataForm looses its content when CurrentItem is null</title><link>http://forums.silverlight.net/forums/thread/304624.aspx</link><pubDate>Sun, 18 Oct 2009 23:04:39 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:304624</guid><dc:creator>Casimodo72</dc:creator><slash:comments>3</slash:comments><comments>http://forums.silverlight.net/forums/thread/304624.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=304624</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;The DataForm will set its _contentPresenter.Content to null if its CurrentItem is null (this is the case whem its ItemsSource is empty); this behaviour is quite confusing for consumers of the UI, because the DataForm&amp;#39;s fields will suddenly disappear - producing a disturbing void in the UI.&lt;br /&gt;As a (hopefully) temporary workaround, I&amp;#39;m thinking about how I can convince the DataForm to display some content when its ItemsSource is empty.&lt;br /&gt;&lt;br /&gt;Since I&amp;#39;m using RIA Services, I could generate a mock object which would act as a &amp;quot;null object&amp;quot; when the given ItemsSource is empty.&lt;br /&gt;Whenever the ItemsSource is empty DataForm.ItemsSource shall be set to null, and its CurrentItem shall be set to the &amp;quot;null object&amp;quot;. In turn, whenever the original ItemsSource gets filled, CurrentItem shall be set to null and its original ItemsSource shall be reassigned to the DataForm.&lt;br /&gt;&lt;br /&gt;Has anyone done such plumbing before? Is there a simple and focused way (e.g. by deriving DataForm) to inject such a behaviour? From my first naive inspections of the code, the DataForm is very unfriendly to derivation endeavours. Seems more like a &amp;quot;take it or leave it&amp;quot; implementation.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Kasimier&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Is there any Label-like Control for non-input scenarios?</title><link>http://forums.silverlight.net/forums/thread/303974.aspx</link><pubDate>Fri, 16 Oct 2009 15:50:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:303974</guid><dc:creator>Casimodo72</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/303974.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=303974</wfw:commentRss><description>&lt;p&gt;I would like to use the Label in non-input scenarios; i.e. where I don&amp;#39;t want its text to become e.g. bold when a bound object is marked with [Required]. I just want it to show the [Display] attribute&amp;#39;s information, but do no want any other behaviour.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Can the Label control be convinced to do so? Does an other control exist which does what I need? Do I have to implement a new control and re-implement the part I need from the Label control?&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Kasimier &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Adding a new row to DataGrid when press the tab control</title><link>http://forums.silverlight.net/forums/thread/327305.aspx</link><pubDate>Fri, 27 Nov 2009 06:27:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327305</guid><dc:creator>anil_litam</dc:creator><slash:comments>2</slash:comments><comments>http://forums.silverlight.net/forums/thread/327305.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=327305</wfw:commentRss><description>&lt;p&gt;HI,&lt;/p&gt;&lt;p&gt;I have the following code which is working fine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;data:DataGrid&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;MyDataGrid&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; AutoGenerateColumns=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;False&amp;quot;&lt;/span&gt;&amp;gt;            &lt;br /&gt;            &lt;span class="cmt"&gt;&amp;lt;!-- Add DataGrid Columns --&amp;gt;&lt;/span&gt;&lt;br /&gt;            &amp;lt;&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;ID&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding ID}&amp;quot;&lt;/span&gt; /&amp;gt;&lt;br /&gt;                &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding Name}&amp;quot;&lt;/span&gt; /&amp;gt;&lt;br /&gt;                &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Book Title&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding BookTitle}&amp;quot;&lt;/span&gt; &amp;gt;&lt;br /&gt;                &amp;lt;/&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;            &lt;br /&gt;        &amp;lt;/&lt;span class="tag"&gt;data:DataGrid&lt;/span&gt;&amp;gt;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Linq;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Net;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Controls;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Documents;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Input;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Media;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Media.Animation;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Shapes;&lt;br /&gt;&lt;span class="kwd"&gt;using&lt;/span&gt; System.Windows.Controls.Primitives;&lt;br /&gt;&lt;br /&gt;&lt;span class="kwd"&gt;namespace&lt;/span&gt; DataGridBindingSample&lt;br /&gt;{&lt;br /&gt;    &lt;span class="kwd"&gt;public&lt;/span&gt; partial &lt;span class="kwd"&gt;class&lt;/span&gt; MainPage : UserControl&lt;br /&gt;    {&lt;br /&gt;        &lt;span class="kwd"&gt;public&lt;/span&gt; MainPage()&lt;br /&gt;        {&lt;br /&gt;            InitializeComponent();            &lt;br /&gt;            MyDataGrid.ItemsSource = LoadCollectionData();&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwd"&gt;private&lt;/span&gt; List LoadCollectionData()&lt;br /&gt;        {&lt;br /&gt;            List authors = &lt;span class="kwd"&gt;new&lt;/span&gt; List();&lt;br /&gt;            authors.Add(&lt;span class="kwd"&gt;new&lt;/span&gt; Author(){&lt;br /&gt;                    ID = 101, &lt;br /&gt;                    Name = &lt;span class="st"&gt;&amp;quot;Mahesh Chand&amp;quot;&lt;/span&gt;,&lt;br /&gt;                    BookTitle = &lt;span class="st"&gt;&amp;quot;Graphics Programming with GDI+&amp;quot;&lt;/span&gt;});&lt;br /&gt;&lt;br /&gt;            &lt;span class="kwd"&gt;return&lt;/span&gt; authors;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&amp;nbsp;The above code binds a single record to datagird. When i press the tab control it is switching perfectly between cells.&lt;/p&gt;&lt;p&gt;But my requirement is when my cursor is at last column position if i press tab control, i need to add a new row to my datagrid.&lt;/p&gt;&lt;p&gt;[For Ref : Open MSWord and create a new table and then tab through that to see what i am talking about here.]&lt;/p&gt;&lt;p&gt;Please somebody help... &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>