<?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>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/125831.aspx</link><pubDate>Thu, 06 Nov 2008 11:36:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:125831</guid><dc:creator>Bijoy Thangaraj</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/125831.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=125831</wfw:commentRss><description>&lt;p&gt;
What were those differences?
&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/121159.aspx</link><pubDate>Thu, 30 Oct 2008 15:38:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:121159</guid><dc:creator>peterdungan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/121159.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=121159</wfw:commentRss><description>&lt;p&gt;Sorry&amp;nbsp;I found that the error I was getting was because of some differences in xaml syntax when I upgraded - it wasn&amp;#39;t due to this bug&lt;/p&gt;</description></item><item><title>Re: Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/120063.aspx</link><pubDate>Wed, 29 Oct 2008 09:07:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:120063</guid><dc:creator>makkros</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/120063.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=120063</wfw:commentRss><description>&lt;p&gt;Strange, because with the final release it worked&amp;nbsp;for me .&lt;/p&gt;
&lt;p&gt;I have the base UserControl&amp;nbsp;declared in XAML and&amp;nbsp;the sub UserControl in the code only.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/119591.aspx</link><pubDate>Tue, 28 Oct 2008 20:36:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119591</guid><dc:creator>peterdungan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119591.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=119591</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting this error after trying to update a beta 2 project to rtw.&lt;/p&gt;
&lt;p&gt;It worked fine in beta 2.&lt;/p&gt;
&lt;p&gt;Should it also wrk ok in rtw, or does it indicate the update didn&amp;#39;t work properly?&lt;/p&gt;</description></item><item><title>Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/96235.aspx</link><pubDate>Wed, 24 Sep 2008 09:22:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:96235</guid><dc:creator>makkros</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/96235.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=96235</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;does anybody has found a workaround to this problem?&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;Yi-Lun Luo - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;It&amp;#39;s true that if the base UserControl is declared in XAML, the sub UserControl can only use code. But due to some internal parser issues, currently even if the sub UserControl only uses code, you&amp;#39;ll get errors. &lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp; 
&lt;p&gt;&amp;nbsp;I have urgently to solve it, otherwise I have to change all my application logic.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/92636.aspx</link><pubDate>Wed, 17 Sep 2008 11:28:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:92636</guid><dc:creator>makkros</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/92636.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=92636</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;what about the solution of this problem? Does this problem is solved in the future release? Actually I can&amp;#39;t run my silverlight application and&amp;nbsp;I need to kwow it in order to plan the update that application.&lt;/p&gt;
&lt;p&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49908.aspx</link><pubDate>Tue, 29 Apr 2008 07:34:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49908</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49908.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49908</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/silverlight/images/icon-quote.gif"&gt; &lt;strong&gt;Yi-Lun Luo - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Hello, this is a known issue. It&amp;#39;s true that if the base UserControl is declared in XAML, the sub UserControl can only use code. But due to some internal parser issues, currently even if the sub UserControl only uses code, you&amp;#39;ll get errors. Our developers are tracking this issue. But sorry I can&amp;#39;t give you more details at this time...&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your reply. Yi-Lun. &lt;img src="http://silverlight.net/emoticons/emotion-21.gif" alt="Yes" /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49899.aspx</link><pubDate>Tue, 29 Apr 2008 06:33:37 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49899</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49899.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49899</wfw:commentRss><description>&lt;p&gt;Hello, this is a known issue. It&amp;#39;s true that if the base UserControl is declared in XAML, the sub UserControl can only use code. But due to some internal parser issues, currently even if the sub UserControl only uses code, you&amp;#39;ll get errors. Our developers are tracking this issue. But sorry I can&amp;#39;t give you more details at this time...&lt;/p&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49879.aspx</link><pubDate>Tue, 29 Apr 2008 05:47:15 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49879</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49879.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49879</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;The problem is that we can&amp;#39;t have XAML in Base Control. Is it possible for you not to use XAML in BaseControl? &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49480.aspx</link><pubDate>Sun, 27 Apr 2008 09:42:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49480</guid><dc:creator>Necroman</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49480.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49480</wfw:commentRss><description>&lt;p&gt;I use different way, when inheriting objects:&lt;/p&gt;
&lt;p&gt;3)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BaseControl = It is inherited from User Control. It has XAML. 
&lt;li&gt;MyControl = It is inherited from BaseControl. It is&amp;nbsp;a&amp;nbsp;class that doesnt have XAML. Additional controls and methods are added&amp;nbsp;in C# code in constructor.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;In classic WPF it works without a problem, but in Silverlight 2 I still get the error, when I try to instantiate MyControl.&lt;/p&gt;
&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;MyControl&lt;/font&gt;&lt;font size="2"&gt; control = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;MyControl&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;LayoutRoot.Children.Add(control);&lt;/p&gt;
&lt;p&gt;It crashes with AG_E_PARSER_BAD_TYPE when calling InitializeComponents() in BaseControl.&lt;br /&gt;Just try it and you&amp;#39;ll surely get the same error message.&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Btw. In your example, &lt;a href="http://michaelsync.net/demo/SilverlightApplication10.zip"&gt;&lt;font color="#697dff"&gt;http://michaelsync.net/demo/SilverlightApplication10.zip&lt;/font&gt;&lt;/a&gt; you are adding the Base class &amp;lt;ctl:SimplyActivity /&amp;gt;&amp;nbsp;into Page, try adding the inherited class &amp;lt;ctl:SilverlightControl1 /&amp;gt; and you get the exact same error.&lt;/p&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49474.aspx</link><pubDate>Sun, 27 Apr 2008 06:39:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49474</guid><dc:creator>arshadm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49474.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49474</wfw:commentRss><description>&lt;p&gt;Actually, it doesn&amp;#39;t work from the XAML either because afterwards I noticed that Page.xaml was uing ctl:SimplyActivity rather than the subclass ctl:SilverlightControl1, when I changed that it gave the same error.&lt;/p&gt;
&lt;p&gt;I think I can understand why this might not be allowed in the current circumstances because it doesn&amp;#39;t really make sense to have two separate XAML in the class hierarchy (which one is the real user interface because there can only be one root control in each user control).&lt;/p&gt;
&lt;p&gt;My original requirement though was much simpler and shouldn&amp;#39;t cause a problem as far as I can see, I wanted a base class with XAML. This base class may be abstract, a derived class would then provide the actual implementation for the event handlers and other logic. I think this would be a very useful feature, but obviously since I am a Silverlight newbie it might open up a can of worms which I don&amp;#39;t understand.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49470.aspx</link><pubDate>Sun, 27 Apr 2008 05:43:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49470</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49470.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49470</wfw:commentRss><description>&lt;p&gt;You are right. Adding the control from code is giving you this problem... Is it possible for you to add the control in XAML? (Like I did in my sample) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49412.aspx</link><pubDate>Sat, 26 Apr 2008 17:00:32 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49412</guid><dc:creator>arshadm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49412.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49412</wfw:commentRss><description>&lt;p&gt;Sorry, syntax error in code&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Canvas&lt;/font&gt;&lt;font size="2"&gt;.SetTop(control, 50);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Canvas&lt;/font&gt;&lt;font size="2"&gt;.SetLeft(control, 50);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;But still gives same exception.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49410.aspx</link><pubDate>Sat, 26 Apr 2008 16:42:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49410</guid><dc:creator>arshadm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49410.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49410</wfw:commentRss><description>&lt;p&gt;Hmm, your code works if the subclass is treated as a control via the assembly.&lt;/p&gt;
&lt;p&gt;But, if I add the following line to Page.xaml.cs then it throws the error I mention, and I am not sure why anymore because it works when it&amp;#39;s used via the Xaml but not in code.&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; Page() {&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;InitializeComponent();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;UserControl&lt;/font&gt;&lt;font size="2"&gt; control = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;SilverlightControl1&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;LayoutRoot.Children.Add(control);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Canvas&lt;/font&gt;&lt;font size="2"&gt;.SetTop(50);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;Canvas&lt;/font&gt;&lt;font size="2"&gt;.SetLeft(50);&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;I changed the Page.xaml to remove the mention of the control to :-&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#a31515" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;Grid&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt; x&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;Name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;LayoutRoot&amp;quot;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt; Background&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;White&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;Grid&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;This should be doing in C# code what the xaml is doing, but it throws the exception I mentioned above.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;Regards.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Silverlight 2 Beta Bug?</title><link>http://forums.silverlight.net/forums/thread/49402.aspx</link><pubDate>Sat, 26 Apr 2008 15:02:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:49402</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/49402.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=49402</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have tested your code. It&amp;#39;s working fine. (I think there are some typo errors in yourposts)&lt;/p&gt;&lt;p&gt;You can download the code from this link. &lt;a href="http://michaelsync.net/demo/SilverlightApplication10.zip"&gt;http://michaelsync.net/demo/SilverlightApplication10.zip&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>