<?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>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Add one column dynamically in datagrid</title><link>http://forums.silverlight.net/forums/thread/328100.aspx</link><pubDate>Sun, 29 Nov 2009 18:32:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:328100</guid><dc:creator>Silverlight Web Developer</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/328100.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=328100</wfw:commentRss><description>&lt;p&gt;I have a dataGrid that consists of 2 databinded columns.&lt;em&gt;(r1 and r2)&lt;/em&gt;&amp;nbsp;This is hardcoded like below. What I will need to do is to add one column dynamically in C# code that also have a databound property called r3. &lt;/p&gt;
&lt;p&gt;How can that be done using C# code ? The new column will then keep these properties:&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;CellStyle=&lt;/font&gt;&lt;span class="attrv"&gt;&lt;font color="#0000ff"&gt;&amp;quot;{StaticResource CellStyle}&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span class="attr"&gt;&lt;font color="#ff0000"&gt; Width=&lt;/font&gt;&lt;/span&gt;&lt;span class="attrv"&gt;&lt;font color="#0000ff"&gt;&amp;quot;Auto&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span class="attr"&gt;&lt;font color="#ff0000"&gt; Foreground=&lt;/font&gt;&lt;/span&gt;&lt;span class="attrv"&gt;&lt;font color="#0000ff"&gt;&amp;quot;White&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span class="attr"&gt;&lt;font color="#ff0000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span class="attr"&gt;&lt;font color="#ff0000"&gt;IsReadOnly=&lt;/font&gt;&lt;/span&gt;&lt;span class="attrv"&gt;&lt;font color="#0000ff"&gt;&amp;quot;True&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;span class="attr"&gt;&lt;font color="#ff0000"&gt; Binding=&lt;/font&gt;&lt;/span&gt;&lt;span class="attrv"&gt;&lt;font color="#0000ff"&gt;&amp;quot;{Binding r3}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;        public class BindingClass1
&lt;b id="2"&gt;2    &lt;/b&gt;        {
&lt;b id="3"&gt;3    &lt;/b&gt;            public string r1 { get; set; }
&lt;b id="4"&gt;4    &lt;/b&gt;            public string r2 { get; set; }
&lt;b id="5"&gt;5    &lt;/b&gt;        }
&lt;b id="6"&gt;6    &lt;/b&gt;
&lt;b id="7"&gt;7    &lt;/b&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;a1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; GridLinesVisibility=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;All&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt;  RowStyle=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{StaticResource DataGridRowStyle1}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Background=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; VerticalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Bottom&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Margin=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0,0,0,-25&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;&lt;span class="attr"&gt; RowBackground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#AA000000&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HorizontalGridLinesBrush=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FF141414&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; VerticalGridLinesBrush=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FF141414&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderThickness=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;   &amp;gt;
&lt;b id="8"&gt;8    &lt;/b&gt;            &amp;lt;&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
&lt;b id="9"&gt;9    &lt;/b&gt;                 &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&lt;span class="attr"&gt; CellStyle=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{StaticResource CellStyle}&amp;quot;&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;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MaxWidth=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MinWidth=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; IsReadOnly=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding r1}&amp;quot;&lt;/span&gt;/&amp;gt;
&lt;b id="10"&gt;10  &lt;/b&gt;                 &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&lt;/span&gt;&lt;span class="attr"&gt; CellStyle=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{StaticResource CellStyle}&amp;quot;&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;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;S&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; IsReadOnly=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding r2}&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="11"&gt;11  &lt;/b&gt;            &amp;lt;/&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
&lt;b id="12"&gt;12   &lt;/b&gt;        &amp;lt;/&lt;span class="tag"&gt;data:DataGrid&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&amp;nbsp; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Disable rowselection in datagrid</title><link>http://forums.silverlight.net/forums/thread/327916.aspx</link><pubDate>Sun, 29 Nov 2009 00:18:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327916</guid><dc:creator>Silverlight Web Developer</dc:creator><slash:comments>8</slash:comments><comments>http://forums.silverlight.net/forums/thread/327916.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327916</wfw:commentRss><description>&lt;p&gt;I have a datagrid like this. When hovering the mouse over the grid, it displays a&amp;nbsp;kind of blue&amp;nbsp;selection over the rows.&lt;/p&gt;
&lt;p&gt;What I want is to not have this selection, either when hovering the mouse or clicking in any cell in the grid. How is it possible to achieve this ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1  &lt;/b&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;name1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Background=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; VerticalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Bottom&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Margin=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;0,45,0,-178&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;&lt;span class="attr"&gt; RowBackground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#AA000000&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HorizontalGridLinesBrush=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FF141414&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; VerticalGridLinesBrush=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;#FF141414&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; GridLinesVisibility=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;All&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; BorderThickness=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;   &amp;gt;
&lt;b id="2"&gt;2  &lt;/b&gt;        &amp;lt;&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
&lt;b id="3"&gt;3  &lt;/b&gt;             &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&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;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MaxWidth=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;35&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MinWidth=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;25&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; IsReadOnly=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;True&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding r1}&amp;quot;&lt;/span&gt;/&amp;gt;
&lt;b id="4"&gt;4  &lt;/b&gt;             &amp;lt;&lt;span class="tag"&gt;data:DataGridTextColumn&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;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;r&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; IsReadOnly=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;False&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Binding=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding r2}&amp;quot;&lt;/span&gt; /&amp;gt;
&lt;b id="5"&gt;5  &lt;/b&gt;        &amp;lt;/&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
&lt;b id="6"&gt;6  &lt;/b&gt;&amp;lt;/&lt;span class="tag"&gt;data:DataGrid&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Invoking "AddEventListener" from C#.NET</title><link>http://forums.silverlight.net/forums/thread/328053.aspx</link><pubDate>Sun, 29 Nov 2009 15:39:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:328053</guid><dc:creator>slvrguy</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/328053.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=328053</wfw:commentRss><description>&lt;p&gt;Hi all, 

I want to call &amp;quot;AddEventListener&amp;quot; method on Silverlight object by using COM interop in C#. &lt;/p&gt;&lt;p&gt;I have access to Silverlight object through IXcpControl2 interface&lt;br /&gt;


&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;IXcpControl2 slCtrl = ...; &lt;/pre&gt;&lt;p&gt;Then, to find &amp;#39;StackPanel1&amp;#39; object I can use:&lt;br /&gt;

&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;Object stackPanelObject = slCtrl.Content.GetType().InvokeMember(&lt;span class="st"&gt;&amp;quot;FindName&amp;quot;&lt;/span&gt;, BindingFlags.InvokeMethod, &lt;span class="kwd"&gt;null&lt;/span&gt;,slCtrl.Content, &lt;span class="kwd"&gt;new object&lt;/span&gt;[] {&lt;span class="st"&gt;&amp;quot;StackPanel1&amp;quot;&lt;/span&gt;});&lt;/pre&gt;&lt;p&gt;

This works ok. &lt;/p&gt;&lt;p&gt;

But how do I call &amp;quot;AddEventListener&amp;quot; on my StackPanel object. I guess something like this: 

&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;stackPanelObject.GetType().InvokeMember(&lt;span class="st"&gt;&amp;quot;AddEventListener&amp;quot;&lt;/span&gt;, BindingFlags.InvokeMethod, &lt;span class="kwd"&gt;null&lt;/span&gt;, stackPanelObject,&lt;span class="kwd"&gt;new object&lt;/span&gt;[] {&lt;span class="st"&gt;&amp;quot;MouseMove&amp;quot;&lt;/span&gt;, ?????}); &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;
Can you please help...? I&amp;#39;m really stuck with this.

Thanks&lt;/p&gt;</description></item><item><title>Copy of Canvas</title><link>http://forums.silverlight.net/forums/thread/326325.aspx</link><pubDate>Wed, 25 Nov 2009 13:22:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326325</guid><dc:creator>Galaad</dc:creator><slash:comments>7</slash:comments><comments>http://forums.silverlight.net/forums/thread/326325.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=326325</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello everybody !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve a problem with Canvas. I&amp;#39;ve an application with some Canvas which contains children add by the user. But I want to make a function to copy the contain of a canvas in another. The problem is that all the Canvas&amp;#39;s children are from different type of UIelement (rectangle, textblock etc).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve try this code :&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;foreach (UIElement elt in Canvas1.Children)&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; {&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;nbsp;&amp;nbsp;&amp;nbsp; Canvas2.Children.Add(elt);&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; } &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But it not works, because the &amp;quot;elt&amp;quot; is already the children of Canvas1. If somebody has an idea it&amp;#39;ll really great !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank You ! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WSOB: Could not load type 'System.Windows.Controls.ChildWindow' in Application_UnhandledException</title><link>http://forums.silverlight.net/forums/thread/225245.aspx</link><pubDate>Wed, 27 May 2009 15:19:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:225245</guid><dc:creator>hudgeo</dc:creator><slash:comments>6</slash:comments><comments>http://forums.silverlight.net/forums/thread/225245.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=225245</wfw:commentRss><description>&lt;p&gt;I started getting the lovely WSOB (White Screen Of Blank) suddenly and noticed that none of my breakpoints were being hit in Application_UnhandledException or any of the loaded / completed events.&amp;nbsp; After checking the FireFox Error Console I noticed the below error. The ErrorWindow worked fine before, not sure why it can&amp;#39;t seem to load it now.&amp;nbsp; Any ideas?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Error: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control &amp;#39;Silverlight1&amp;#39;: System.TypeLoadException: Could not load type &amp;#39;System.Windows.Controls.ChildWindow&amp;#39; from assembly &amp;#39;System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;#39;.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at ChartSummary.Silverlight.App.Application_UnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Error.CallApplicationUEHandler(Exception e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Error.GetXresultForUserException(Exception ex)&lt;br /&gt;Source File: http://localhost:64917/ScriptResource.axd?d=WBi8venOLETlDB6tESAGU0h1Tm0LJPDkj6Z6aDs6QRVhE1-7Vmyz7wncruSUXvx7gKH5VKOhNqdOOFRSzKTyKA2&amp;amp;t=3bb1633f&lt;br /&gt;Line: 461&lt;/p&gt;</description></item><item><title>MembershipProvider methods exposed in System.Web.ApplicationServices.AuthenticationService</title><link>http://forums.silverlight.net/forums/thread/328073.aspx</link><pubDate>Sun, 29 Nov 2009 16:38:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:328073</guid><dc:creator>spatemp</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/328073.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=328073</wfw:commentRss><description>&lt;p&gt;I exposed Authentication service on my website.&amp;nbsp; I followed the following article &lt;a href="http://blogs.msdn.com/brada/archive/2008/05/03/accessing-the-asp-net-authentication-profile-and-role-service-in-silverlight.aspx"&gt;http://blogs.msdn.com/brada/archive/2008/05/03/accessing-the-asp-net-authentication-profile-and-role-service-in-silverlight.aspx&lt;/a&gt;&amp;nbsp;. So, that my silverlight app can call the services in it. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;My question is are all methods in MembershipProvider class are they&amp;nbsp;exposed&amp;nbsp;in Authentication service.&amp;nbsp;&amp;nbsp;&amp;nbsp;It does not seem like it.&amp;nbsp; What&amp;nbsp;am I missing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to use OpenFileDialog() with ICommand pattern</title><link>http://forums.silverlight.net/forums/thread/328060.aspx</link><pubDate>Sun, 29 Nov 2009 16:14:17 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:328060</guid><dc:creator>kobruleht</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/328060.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=328060</wfw:commentRss><description>&lt;p&gt;I tried to use ShowDialog with &lt;a href="http://blogs.infragistics.com/blogs/josh_smith/archive/2008/11/18/putting-silverlight-commands-to-use.aspx"&gt;http://blogs.infragistics.com/blogs/josh_smith/archive/2008/11/18/putting-silverlight-commands-to-use.aspx&lt;/a&gt;&lt;br /&gt;command pattern using command code below.&lt;/p&gt;
&lt;p&gt;Sometimes to button causes exception &amp;quot;command should initiated by user action only&amp;quot;.&lt;br /&gt;How to fix ?&lt;/p&gt;
&lt;p&gt;Andrus.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public RelayCommand UploadPictureCommand&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; get&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; {&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;nbsp;&amp;nbsp;&amp;nbsp; if (_uploadCommand == null)&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _uploadCommand = new RelayCommand(&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; () =&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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;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; OpenFileDialog ofd = new OpenFileDialog() { Filter = (&amp;quot;Picture (*.jpg)|*.jpg&amp;quot;) };&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;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; if (ofd.ShowDialog() != true)&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;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; return;&lt;br /&gt;...&lt;/p&gt;</description></item><item><title>XDocument Question</title><link>http://forums.silverlight.net/forums/thread/328050.aspx</link><pubDate>Sun, 29 Nov 2009 14:49:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:328050</guid><dc:creator>arunairs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/328050.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=328050</wfw:commentRss><description>Hi,
 I have a web service that returns the following xml: 


  John
  Doe
  85244


I have Customer class and I am trying to build a customer object from the above xml:
Stream stm = e.Result;
            XDocument doc = XDocument.Load(stm);
            //doc contains the xml show above
            var c = from m in doc.Root.Elements(&amp;quot;Customer&amp;quot;)
                    select new 
                    {
                        FirstName = (string)m.Attribute(&amp;quot;FirstName&amp;quot;).Value,
                        LastName = (string)m.Attribute(&amp;quot;LastName&amp;quot;).Value,
                        Zip = Convert.ToInt32((string)m.Attribute(&amp;quot;Zip&amp;quot;).Value)
                    };

     Customer cust = c;

            foreach (var cu in c)
            {
                cust.FirstName = cu.FirstName;
                cust.LastName = cu.LastName;
                cust.Zip = cu.Zip;
            }

The problem here is the program never goes inside the for each loop, even though doc contains the xml shown above. there is only one Customer returned always.

What am I doing wrong?

Also, since there is only one customer returned always, is there a way I can avoid the foreach loop?


thanks,

Arun</description></item><item><title>How can I just send query variables to a php page???</title><link>http://forums.silverlight.net/forums/thread/327936.aspx</link><pubDate>Sun, 29 Nov 2009 02:19:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327936</guid><dc:creator>tvance929</dc:creator><slash:comments>2</slash:comments><comments>http://forums.silverlight.net/forums/thread/327936.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327936</wfw:commentRss><description>&lt;p&gt;I am trying to send some info via the query string so I tried making a webclient AND then using a string&amp;nbsp;&lt;/p&gt;&lt;p&gt; string url = &amp;quot;http://www.toddvance.com/silverlight/bingmaps/silverCities.php?text=&amp;quot; + cityState + &amp;quot;|&amp;quot; ;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;then calling both the OpenWrite and the OpenReadAsyn methods... I added the completed methods and hit the completed methods...&lt;/p&gt;&lt;p&gt;I debugged and found that the query string made is in the correct format and that if I were to copy it in a browser and go, it would work appropriately...&amp;nbsp; but when I run the program (and the XAP and PHP page are all in the same directory on my server -- APACHE) it doesnt work ... I dont get any errors it just doesnt do what the PHP script is supposed to (which is write the values passed to a text file).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;HERE is the call:&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; string url = &amp;quot;http://www.toddvance.com/silverlight/bingmaps/silverCities.php?text=&amp;quot; + cityState + &amp;quot;|&amp;quot; ;&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;nbsp;&amp;nbsp;&amp;nbsp; addCityClient.OpenReadCompleted +=new OpenReadCompletedEventHandler(addCityClient_OpenReadCompleted);&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; &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;nbsp;&amp;nbsp;&amp;nbsp; addCityClient.OpenReadAsync(new Uri(url));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am not sending anything back --- I just want to hit that PHP script with that query variable... .any help??? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;**Just tried the Download string method and am getting back a SecurityException... hmmm... &lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;</description></item><item><title>call functions in ASP.NET c#</title><link>http://forums.silverlight.net/forums/thread/327999.aspx</link><pubDate>Sun, 29 Nov 2009 10:54:50 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327999</guid><dc:creator>lordbaltz</dc:creator><slash:comments>6</slash:comments><comments>http://forums.silverlight.net/forums/thread/327999.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327999</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;I am trying to make calls to the C# code of the ASP.NET page from silverlight but i cant find any way to do this.&lt;/p&gt;&lt;p&gt;Is there any way to directly make such calls?&lt;/p&gt;&lt;p&gt; If not can i use javascript to call c# functions and get their return values ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>A problem of Validation Exception in SL3, urgency!</title><link>http://forums.silverlight.net/forums/thread/327973.aspx</link><pubDate>Sun, 29 Nov 2009 06:53:59 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327973</guid><dc:creator>guozili</dc:creator><slash:comments>3</slash:comments><comments>http://forums.silverlight.net/forums/thread/327973.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327973</wfw:commentRss><description>&lt;p&gt;&amp;lt;TextBox Text=&amp;quot;{Binding Name, Mode=TwoWay, ValidatesOnExceptions=True}&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Button Content=&amp;quot;clearName&amp;quot; Click=&amp;quot;ClearName&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;1.entity class&lt;/p&gt;
&lt;p&gt;&amp;quot;Name&amp;quot;s setter include:&lt;br /&gt;if (value == string.Empty)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;throw new Exception(&amp;quot;name&amp;nbsp;shouldn&amp;#39;t be&amp;nbsp;null&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. usercontrol_loaded:&lt;/p&gt;
&lt;p&gt;currentEntity = new Entity();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;this.DataContext = currentEntity;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3.and button event:&lt;br /&gt;ClearName(.....){&lt;/p&gt;
&lt;p&gt;currentEntity.Name = string.Empty; // &lt;/p&gt;
&lt;p&gt;&amp;nbsp;//i want to clear name&amp;#39;s value as null, but it will enter entity setter and throw a UnhandledException, which lead to silverlight application crush&lt;/p&gt;
&lt;p&gt;//so, is any solution to ignore&amp;nbsp;the exception&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Clearing Accordion Items throws ArgumentOufOfRange exception</title><link>http://forums.silverlight.net/forums/thread/325884.aspx</link><pubDate>Tue, 24 Nov 2009 20:26:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:325884</guid><dc:creator>sl_3478</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/325884.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=325884</wfw:commentRss><description>&lt;p&gt;I have my program add some items to an Accordion that is definedi n XAML.&amp;nbsp; After one of them is selected, I do some work and need to update the AccordionItems in the Accordion.&amp;nbsp; If I call the this.myAccordion.Items.Clear() (otherwise I will keep duplicating accordionItems in list) I get the exception mentioned in the title.&amp;nbsp; Now I found out this is because I have an AccordionItem (AI) selected.&amp;nbsp; So I do this.myAccordion.SelectedItems.Clear() before this.myAccordion.Items.Clear() and while I do not get the exception and my newly created AI items load in the Accordion, the contents of these accordionItems does not appear.&amp;nbsp;When I click an AccordionItem, i have the content autogenerated.&amp;nbsp; When I step through this code it works fine and properly sets the selected Ai.content value with my auto-gen content, but the content does not visually appear....the accordionItem contents never exapnds essentailly.&amp;nbsp; I do not get any errors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any known issue with adding autogeneterated AI items to an accordion, removing them, and adding new ones?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;//also, my environment is VS2008, SL3, Expression 3,&amp;nbsp;.Net 3.5 SP1, and&amp;nbsp;Win7, if that helps&lt;/p&gt;</description></item><item><title>Cannot find 'ServiceReferences.ClientConfig'</title><link>http://forums.silverlight.net/forums/thread/307899.aspx</link><pubDate>Fri, 23 Oct 2009 10:43:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:307899</guid><dc:creator>weverton</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/307899.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=307899</wfw:commentRss><description>Hi Guys,

When I&amp;#39;m starting my SL app, I&amp;#39;m getting the following error:

Detalhes dos erros da página da Web

Agente de Usuário: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729)
Carimbo de data/hora: Fri, 23 Oct 2009 10:40:49 UTC


Mensagem: Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: System.InvalidOperationException: Cannot find &amp;#39;ServiceReferences.ClientConfig&amp;#39; in the .xap application package. This file is used to configure client proxies for web services, and allows the application to locate the services it needs. Either include this file in the application package, or modify your code to use a client proxy constructor that specifies the service address and binding explicitly. Please see inner exception for details. ---&amp;gt; System.Xml.XmlException: Cannot open &amp;#39;ServiceReferences.ClientConfig&amp;#39;. The Uri parameter must be a relative path pointing to content inside the Silverlight application&amp;#39;s XAP package. If you need to load content from an arbitrary Uri, please see the documentation on Loading XML content using WebClient/HttpWebRequest. ---&amp;gt; System.ArgumentException: Application object is not initialized.
   ...
   at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
   at System.ServiceModel.ClientBase`1..ctor()
   at Tron.InovaTron.Apresentacao.ServicoDeRelatorioServiceReference.ServicoDeRelatorioClient..ctor()
   at Tron.InovaTron.Apresentacao.App..ctor()     

Linha: 56
Caractere: 13
Código: 0
URI: http://localhost/Tron.InovaTron.Apresentacao.Web/Default.aspx

I looked at SL project and the file ServiceReferences.ClientConfig is there and inside the xap too. Where else can I look to solve this problem??

Thanks,</description></item><item><title>Canceling an async wcf request</title><link>http://forums.silverlight.net/forums/thread/326717.aspx</link><pubDate>Thu, 26 Nov 2009 00:38:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326717</guid><dc:creator>Savij</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/326717.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=326717</wfw:commentRss><description>&lt;p&gt;I have created a cascading combo box control. When you select an item in the first box, the second box populates with related data to the first selection. For instance if it were car makes and models, choosing a make, would allow the models combo to populate with models of that make.&lt;/p&gt;
&lt;p&gt;Using the above example, the issue I have is that if the models combo is getting it&amp;#39;s data (via wcf async) and the user chooses another selection in the makes combo box, there is a short period of time when the first selections query comes back, and the second selections query begins. The user could during that time select a model that does not belong to the current selected make.&lt;/p&gt;
&lt;p&gt;I could disable the whole control while it retreives its data, but I think it would &amp;quot;feel&amp;quot; better to a user if I could just cancel the first query and start a new one. Is this possible? What is the standard way of handling related user input in this manner?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Savij&lt;/p&gt;</description></item><item><title>silverlight database</title><link>http://forums.silverlight.net/forums/thread/327806.aspx</link><pubDate>Sat, 28 Nov 2009 14:56:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327806</guid><dc:creator>criurs</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/327806.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327806</wfw:commentRss><description>hi,
Does anybody know a database engine to store data/objects in IsolatedStorage on client machine?
I just looked at db4o but has some disadvantages: I cannot use LINQ to retrieve objects and performance is quite bad. I need something small,fast and easy to use, any other vendors?</description></item><item><title>Getting rid of the blue border around a DataGrid cell.</title><link>http://forums.silverlight.net/forums/thread/327872.aspx</link><pubDate>Sat, 28 Nov 2009 19:52:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327872</guid><dc:creator>Aaron Edwards</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327872.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327872</wfw:commentRss><description>&lt;p&gt;Does anyone know the property that is setting this&amp;nbsp;light-blue border in the DataGrid below?&amp;nbsp;&amp;nbsp;It appears in the first cell when the page is first loaded, and in the selected&amp;nbsp;cell if you&amp;nbsp;select a different cell.&amp;nbsp;&amp;nbsp;My XAML is&amp;nbsp;pasted below.&amp;nbsp; Thanks in advance.&lt;/p&gt;
&lt;p&gt;Aaron&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:482px;HEIGHT:214px;" title="Data Grid" alt="Data Grid" src="http://www.datasushi.net/DataGrid.jpg" width="482" height="214" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&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;dgStaffInterested&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;&lt;span class="attr"&gt; ItemsSource=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding staffInterested}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HeadersVisibility=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Row&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                    GridLinesVisibility=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Horizontal&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MaxHeight=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;100&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; HorizontalAlignment=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Left&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;200&amp;quot;&lt;/span&gt; &amp;gt;
                                   &amp;lt;&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&lt;span class="attr"&gt; Header=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Staff Name&amp;quot;&lt;/span&gt; &amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellTemplate&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;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding staffMember.staffName}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;140&amp;quot;&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;data:DataGridTemplateColumn.CellTemplate&lt;/span&gt;&amp;gt;
                                            &amp;lt;&lt;span class="tag"&gt;data:DataGridTemplateColumn.CellEditingTemplate&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;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding staffMember.staffName}&amp;quot;&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;data:DataGridTemplateColumn.CellEditingTemplate&lt;/span&gt;&amp;gt;
                                        &amp;lt;/&lt;span class="tag"&gt;data:DataGridTemplateColumn&lt;/span&gt;&amp;gt;
                                    &amp;lt;/&lt;span class="tag"&gt;data:DataGrid.Columns&lt;/span&gt;&amp;gt;
                                &amp;lt;/&lt;span class="tag"&gt;data:DataGrid&lt;/span&gt;&amp;gt;
&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Read the last line of a file</title><link>http://forums.silverlight.net/forums/thread/327814.aspx</link><pubDate>Sat, 28 Nov 2009 15:05:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327814</guid><dc:creator>Silverlight Web Developer</dc:creator><slash:comments>6</slash:comments><comments>http://forums.silverlight.net/forums/thread/327814.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327814</wfw:commentRss><description>&lt;p&gt;I am searching for a way to read the last line in a text file. What I dont want to do is to read the whole file from top to bottom and save the last line because this will not be effecient.&lt;/p&gt;
&lt;p&gt;What I think I need to do is to read character by character backwards in the file until a &amp;quot;\n&amp;quot; or the beginning of file is reached and start reading the file from here and then catching the line.&lt;/p&gt;
&lt;p&gt;I am not sure how I will do this ? I am searched long time for a straight forward example but havent found this yet. Normally&amp;nbsp;how I read the file now is like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;            IsolatedStorageFile isg = IsolatedStorageFile.GetUserStoreForApplication();
&lt;b id="2"&gt;2    &lt;/b&gt;            
&lt;b id="3"&gt;3    &lt;/b&gt;		String Path = &lt;span class="st"&gt;&amp;quot;file1.txt&amp;quot;&lt;/span&gt;;
&lt;b id="4"&gt;4    &lt;/b&gt;		IsolatedStorageFileStream hr = &lt;span class="kwd"&gt;new&lt;/span&gt; IsolatedStorageFileStream(Path , FileMode.Open, FileAccess.ReadWrite, isg);
&lt;b id="5"&gt;5    &lt;/b&gt;            StreamReader Readfile = &lt;span class="kwd"&gt;new&lt;/span&gt; StreamReader(hr);
&lt;b id="6"&gt;6    &lt;/b&gt;
&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Localization SL3 how do I change the cuture from a loaded app</title><link>http://forums.silverlight.net/forums/thread/324651.aspx</link><pubDate>Mon, 23 Nov 2009 04:35:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:324651</guid><dc:creator>Brett Styles</dc:creator><slash:comments>14</slash:comments><comments>http://forums.silverlight.net/forums/thread/324651.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=324651</wfw:commentRss><description>I have the resources assemblies working correctly and I am using the suggested pattern in the Microsoft docs. When I change the culture on start-up it all works fine, but I want the user to also have the choice of selecting the language after startup.&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;Content=&amp;quot;{&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Binding&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; LocalResources&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;logon_password&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;,&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; Source&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;={&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;StaticResource&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt; LocalizedStrings&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;}}&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;Now I want the user to choose the language from a combo box and the localized textblock and buttons to update.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;I have tried InvalidateMeasure and InvalidateArrange but they do not force a rebind. I have tried seting LocalizedStrings with INotifyPropertyChanged and raising a PropertyChanged event but I figure since it is marked as Static that probably would not work.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;Has anyone have any suggestions on how I can get all my localized resources to update to reflect the user&amp;#39;s selection?&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Silverlight viewmodel and an childwindow</title><link>http://forums.silverlight.net/forums/thread/327782.aspx</link><pubDate>Sat, 28 Nov 2009 12:34:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327782</guid><dc:creator>keesschouten</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327782.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327782</wfw:commentRss><description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;At the moment i&amp;#39;m using the viewmodel pattern like the viewmodel on &lt;a href="http://blogs.msdn.com/brada/archive/2009/09/07/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-viewmodel.aspx" title="LINK"&gt;this page &lt;/a&gt;of Brad Abrams. So far i used it succesfull on all kinds of pages. But now i wanna open an childwindow with de the details of an item in a datagrid. The childwindow dataform will have much more data then the datagrid. What i wanna know is:&lt;/p&gt;&lt;p&gt;Do i have to make an different new viewmodel for this childwindow and pass the id of the selected item to this childwindow?&lt;/p&gt;&lt;p&gt;Or is better to pass the current viewmodel to the childwindow and use that viewmodel in the chilwindow to retrieve the selected item.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h3 class="r"&gt;&lt;a href="http://www.google.nl/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=1&amp;amp;ved=0CAcQFjAA&amp;amp;url=http%3A%2F%2Fblogs.msdn.com%2Fbrada%2Farchive%2F2009%2F09%2F07%2Fbusiness-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-viewmodel.aspx&amp;amp;rct=j&amp;amp;q=abrams+viewmodel&amp;amp;ei=hhYRS8-BHYTd-Qbfw5X2Dg&amp;amp;usg=AFQjCNHZCBNKi8G_2_2uawNMFI3WfeiCCg" class="l"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/a&gt;&lt;a href="http://www.google.nl/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=1&amp;amp;ved=0CAcQFjAA&amp;amp;url=http%3A%2F%2Fblogs.msdn.com%2Fbrada%2Farchive%2F2009%2F09%2F07%2Fbusiness-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-viewmodel.aspx&amp;amp;rct=j&amp;amp;q=abrams+viewmodel&amp;amp;ei=hhYRS8-BHYTd-Qbfw5X2Dg&amp;amp;usg=AFQjCNHZCBNKi8G_2_2uawNMFI3WfeiCCg" class="l"&gt; &lt;/a&gt;&lt;/h3&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using media element to play local files</title><link>http://forums.silverlight.net/forums/thread/327022.aspx</link><pubDate>Thu, 26 Nov 2009 13:50:14 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327022</guid><dc:creator>jgnjs</dc:creator><slash:comments>1</slash:comments><comments>http://forums.silverlight.net/forums/thread/327022.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327022</wfw:commentRss><description>&lt;p&gt;Hi, I am a newbie in silverlight and I have problems trying to get the video that is saved in my D drive to play. When I run the page nothing happens. Here is my code. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;public MainPage()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; InitializeComponent();&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; string test = &amp;quot;D:/user/Life.wmv&amp;quot;;&lt;br /&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; myVideo.Source = new Uri(test, UriKind.Relative);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;br /&gt;However if i set my string test = &amp;quot;Life.wmv&amp;quot; the video will play.&lt;/p&gt;&lt;p&gt;Any idea how can I play the video in my D drive?&amp;nbsp; &lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>passing value from parent to child window</title><link>http://forums.silverlight.net/forums/thread/327643.aspx</link><pubDate>Fri, 27 Nov 2009 21:40:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:327643</guid><dc:creator>gnop</dc:creator><slash:comments>2</slash:comments><comments>http://forums.silverlight.net/forums/thread/327643.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=327643</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, im having trouble finding a way to pass a value from the parent to child window. ive seen many examples of child to parent but not the other way around. Any help would be appreciated &lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Good ways to update UI? (no more stuttering!)</title><link>http://forums.silverlight.net/forums/thread/302849.aspx</link><pubDate>Wed, 14 Oct 2009 16:41:07 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:302849</guid><dc:creator>bschmidt</dc:creator><slash:comments>9</slash:comments><comments>http://forums.silverlight.net/forums/thread/302849.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=302849</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello, I&amp;#39;ve recently started learning what Silverlight has to offer in terms of charting and while I like what I&amp;#39;ve been able to find out thus far there is one thing that I haven&amp;#39;t been able to find out yet - is there a good way to update charts (ie. have them redrawn) without affecting the other controls on the screen?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Currently I have a&amp;nbsp; news ticker like object on the bottom of my app which is just two textblocks being animated.&amp;nbsp; Above that is a chart that I have updating with new information from a database every second and while it only shows the last 50 or so records, re-rendering the chart with the new information causes the ticker on the bottom to pause until the chart has finished rendering.&lt;/p&gt;&lt;p&gt;&amp;nbsp;My first thought was to have it re-render in a separate thread but I&amp;#39;m not sure if Silverlight would support that.&amp;nbsp; Has anyone experience a problem like this and found a work-around?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>UI Bind radiobutton.IsClicked in listbox itemtemplate</title><link>http://forums.silverlight.net/forums/thread/325331.aspx</link><pubDate>Tue, 24 Nov 2009 00:24:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:325331</guid><dc:creator>tonyedmo</dc:creator><slash:comments>5</slash:comments><comments>http://forums.silverlight.net/forums/thread/325331.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=325331</wfw:commentRss><description>&lt;p&gt;Ok we have a listbox which lists a RadioButton, Textblock and Image. Our problem is trying to link the listitem.isselected to the radiobutton.ischecked. We have tried many many different methods to do this and are now at our wits end. Below is a mock up, without the image portion. If anyone could give us a kick in the right direction, it would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Code behind:&lt;/p&gt;
&lt;div style="FONT-FAMILY:Courier New;BACKGROUND:white;COLOR:black;FONT-SIZE:10pt;"&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;17&lt;/span&gt;&amp;nbsp;&lt;span style="COLOR:blue;"&gt;public&lt;/span&gt; MainPage()&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;18&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;19&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;20&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lb.Items.Clear();&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;21&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lb.ItemsSource = &lt;span style="COLOR:#a31515;"&gt;&amp;quot;test1,test2,test3&amp;quot;&lt;/span&gt;.Split(&lt;span style="COLOR:blue;"&gt;new&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;char&lt;/span&gt;[] {&lt;span style="COLOR:#a31515;"&gt;&amp;#39;,&amp;#39;&lt;/span&gt; });&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&lt;span style="COLOR:#2b91af;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;22&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;xaml:&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;UserControl.Resources&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;DataTemplate&lt;/span&gt;&lt;span class="attr"&gt; x:Key=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;dt&amp;quot;&lt;/span&gt; &amp;gt;
            &amp;lt;&lt;span class="tag"&gt;ListBoxItem&lt;/span&gt;&lt;span class="attr"&gt; Background=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Black&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; MouseLeftButtonDown=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;listBoxItem_MouseLeftButtonDown&amp;quot;&lt;/span&gt;&amp;gt;
                &amp;lt;&lt;span class="tag"&gt;RadioButton&lt;/span&gt;&lt;span class="attr"&gt;   GroupName=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;rbtest&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;TextBlock&lt;/span&gt;&lt;span class="attr"&gt; Text=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{Binding}&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Foreground=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;White&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;RadioButton&lt;/span&gt;&amp;gt;
            &amp;lt;/&lt;span class="tag"&gt;ListBoxItem&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;UserControl.Resources&lt;/span&gt;&amp;gt;

    &amp;lt;&lt;span class="tag"&gt;Grid&lt;/span&gt;&lt;span class="attr"&gt; x:Name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;LayoutRoot&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;lb&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; SelectionChanged=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;lb_SelectionChanged&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;                 ItemTemplate=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;{StaticResource dt}&amp;quot;&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;Grid&lt;/span&gt;&amp;gt;&lt;/pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style="MARGIN:0px;"&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>The remote server returned an error: NotFound</title><link>http://forums.silverlight.net/forums/thread/325459.aspx</link><pubDate>Tue, 24 Nov 2009 07:35:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:325459</guid><dc:creator>cmant</dc:creator><slash:comments>4</slash:comments><comments>http://forums.silverlight.net/forums/thread/325459.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=325459</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I am&amp;nbsp;geting error.&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;my web service&amp;nbsp;code is&amp;nbsp;this , and whin i call this method it showes&amp;nbsp;error.&amp;nbsp;&lt;/p&gt;[&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;WebMethod&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;]&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataTable&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CreateDT()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataTable&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dt = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataTable&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/p&gt;dt.Columns.Add(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Name&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;dt.Columns.Add(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Age&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataRow&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dr;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;dr = dt.NewRow();&lt;/p&gt;dr[0] = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Cmant&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;dr[1] = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;23&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;
&lt;p&gt;dt.Rows.Add(dr);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;dt.WriteXml(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;~/test.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;my .xaml.cs code&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataServiceSoapClient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; proxy = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DataServiceSoapClient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;proxy.HelloWorldCompleted += &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;EventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HelloWorldCompletedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;(proxy_HelloWorldCompleted);&lt;/p&gt;
&lt;p&gt;proxy.HelloWorldAsync();&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; proxy_HelloWorldCompleted(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HelloWorldCompletedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Load(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;~/test.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&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;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myData = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;from&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; info &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc.Descendants(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Table&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;select&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Person&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;FirstName = info.Element(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Name&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).Value,&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;Age = info.Element(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Age&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).Value&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;grdShow.ItemsSource = myData;&lt;/p&gt;
&lt;p&gt;txtname.Text = e.Result.ToString();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And Error show on Reference.cs file(Default file)&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SilverlightDB.sappleDB.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HelloWorldResponse&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; EndHelloWorld(System.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;IAsyncResult&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; result) {&lt;/font&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;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] _args = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[0];&lt;/p&gt;SilverlightDB.sappleDB.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HelloWorldResponse&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; _result = ((SilverlightDB.sappleDB.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;HelloWorldResponse&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;base&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.EndInvoke(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;HelloWorld&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, _args, result)));&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; _result;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Help me someone&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Using TransitionControl with Page Class</title><link>http://forums.silverlight.net/forums/thread/326843.aspx</link><pubDate>Thu, 26 Nov 2009 07:27:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:326843</guid><dc:creator>tvadik</dc:creator><slash:comments>2</slash:comments><comments>http://forums.silverlight.net/forums/thread/326843.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=326843</wfw:commentRss><description>&lt;p&gt;Hello everyone :)&lt;/p&gt;
&lt;p&gt;I was wondering how could i use the&amp;nbsp;Transition Control&amp;nbsp;in conjuction with the&amp;nbsp;Page&amp;nbsp;and Frame Class&amp;nbsp;&amp;nbsp;so that i could display a transition effect when changing page.&lt;/p&gt;
&lt;p&gt;And one more thing, is the transition control the right way of doing it? thanks!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>