<?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>Visual Studio &amp; Silverlight Development Tools</title><link>http://forums.silverlight.net/forums/18.aspx</link><description>Discussions around using Visual Studio and other development tools to create Silverlight applications</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Converted project (from Beta 1 to Beta 2) is not working.</title><link>http://forums.silverlight.net/forums/thread/105969.aspx</link><pubDate>Fri, 10 Oct 2008 07:40:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:105969</guid><dc:creator>Amanda Wang - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/105969.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=105969</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;mramu1310:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;font size="2"&gt;Then my project is running with out any errors but it is not showing the Pie chart. Am I missing anything?&lt;/font&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Based on the code that you can see, you declare the System.Windows.Shapes.&lt;font color="#2b91af" size="2"&gt;Path&lt;/font&gt;&lt;font size="2"&gt; path1, do you want to display the pie chat by using path1?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;You need to add the path1 to the usercontrol. for example:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; LayoutRoot.Children.Add(path1);&lt;/p&gt;
&lt;p&gt;If I mmisunderstand you, please let me know.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Converted project (from Beta 1 to Beta 2) is not working.</title><link>http://forums.silverlight.net/forums/thread/104572.aspx</link><pubDate>Wed, 08 Oct 2008 06:20:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:104572</guid><dc:creator>mramu1310</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/104572.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=18&amp;PostID=104572</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am new to Silverlight.&lt;/p&gt;
&lt;p&gt;One of my friend gave&amp;nbsp;me code for Pie chart which was coded in VS 2008 and&amp;nbsp;Silverlight 2.0 Beta1.&lt;/p&gt;
&lt;p&gt;I converted it to Silverlight 2.0&amp;nbsp;Beta 2.&lt;/p&gt;
&lt;p&gt;In order to rectify compilation errors I did the following modifications.&lt;/p&gt;
&lt;p&gt;a) Changed the statement &lt;/p&gt;
&lt;p&gt;myCanvas = this.InitializeFromXaml(new System.IO.StreamReader(s).ReadToEnd()) as Canvas;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;myCanvas = XamlReader.Load(new System.IO.StreamReader(s).ReadToEnd()) as Canvas;&lt;/p&gt;
&lt;p&gt;b) Removed Boolean parameter in XamlReader.Load method.&lt;/p&gt;
&lt;p&gt;With the above two modifications the compilation errors were rectified.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when I ran the project i got the runtime error in the following statement&lt;/p&gt;
&lt;p&gt;pathElem.SetValue(Path.DataProperty, sbuilder);&lt;/p&gt;
&lt;p&gt;I changed this statement to &lt;/p&gt;&lt;font size="2"&gt;System.Windows.Shapes.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Path&lt;/font&gt;&lt;font size="2"&gt; path1 = (System.Windows.Shapes.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Path&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XamlReader&lt;/font&gt;&lt;font size="2"&gt;.Load(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;Path &amp;quot;&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="#a31515" size="2"&gt;&amp;quot;xmlns=\&amp;quot;http://schemas.microsoft.com/client/2007\&amp;quot; &amp;quot;&lt;/font&gt;&lt;font size="2"&gt; +&lt;/p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Data=\&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + sbuilder.ToString() + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;\&amp;quot;/&amp;gt;&amp;quot;&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;var&lt;/font&gt;&lt;font size="2"&gt; o = path1.GetValue(System.Windows.Shapes.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Path&lt;/font&gt;&lt;font size="2"&gt;.DataProperty);&lt;/p&gt;path1.Data = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;pathElem.SetValue(System.Windows.Shapes.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Path&lt;/font&gt;&lt;font size="2"&gt;.DataProperty, o);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Then my project is running with out any errors but it is not showing the Pie chart. Am I missing anything?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Are there any setting to set to run a beta 1 project in Beta 2? Please help me.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Thanks in Advance.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanks and Regards&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Ramu&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>