<?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: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/159990.aspx</link><pubDate>Tue, 13 Jan 2009 15:33:08 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:159990</guid><dc:creator>aknuth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/159990.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=159990</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I got the same problem. Any progress on this topic yet?&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;André &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/89557.aspx</link><pubDate>Wed, 10 Sep 2008 19:14:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:89557</guid><dc:creator>jayme_edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/89557.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=89557</wfw:commentRss><description>&lt;p&gt;To add a simple code example, if I have the following classes:&lt;/p&gt;&lt;p&gt;namespace A { public class MyControl1 : UserControl { ... } }&lt;br /&gt;namespace B { public class MyControl2 : UserControl { ... } }&lt;br /&gt;namespace C { public class MyControl3 : UserControl { ... } } &lt;/p&gt;&lt;p&gt;In WPF I can add this to my AssemblyInfo.cs:&lt;/p&gt;&lt;p&gt;[assembly: XmlnsDefinition(&amp;quot;http://MyControls&amp;quot;, &amp;quot;A&amp;quot;)]&lt;br /&gt;[assembly: XmlnsDefinition(&amp;quot;http://MyControls&amp;quot;, &amp;quot;B&amp;quot;)]&lt;br /&gt;[assembly: XmlnsDefinition(&amp;quot;http://MyControls&amp;quot;, &amp;quot;C&amp;quot;)]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And then use them on a page with only one namespace declaration (assuming my page has a reference to the assembly into which the previous controls are compiled):&lt;/p&gt;&lt;p&gt;&amp;lt;MyControl1 x:Class=&amp;quot;MyOtherProject.MyControl1Subclass&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:p=&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=&amp;quot;http://MyControls&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;MyControl2&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;MyControl3 /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/MyControl2&amp;gt;&lt;br /&gt;&amp;lt;/MyControl1&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In Silverlight my AssemblyInfo.cs entries look like this to do the same thing:&lt;/p&gt;&lt;p&gt;[assembly: XmlnsDefinition(&amp;quot;http://schemas.microsoft.com/client/2007&amp;quot;, &amp;quot;A&amp;quot;)]&lt;br /&gt;[assembly: XmlnsDefinition(&amp;quot;http://schemas.microsoft.com/client/2007&amp;quot;, &amp;quot;B&amp;quot;)]&lt;br /&gt;[assembly: XmlnsDefinition(&amp;quot;http://schemas.microsoft.com/client/2007&amp;quot;, &amp;quot;C&amp;quot;)]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;And to use them I need to declare three CLR namespaces, AND they can&amp;#39;t be the default (no prefix) namespace or the compiler gives warnings:&lt;/p&gt;&lt;p&gt;&amp;lt;a:MyControl1 x:Class=&amp;quot;MyOtherProject.MyControl1Subclass&amp;quot;&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:a=&amp;quot;clr-namespace:A;assembly=MyControlsAssembly&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:b=&amp;quot;clr-namespace:B;assembly=MyControlsAssembly&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:c=&amp;quot;clr-namespace:C;assembly=MyControlsAssembly&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;b:MyControl2&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;c:MyControl3 /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/b:MyControl2&amp;gt;&lt;br /&gt;
&amp;lt;/a:MyControl1&amp;gt;&lt;/p&gt;&lt;p&gt;I would really like to see this work consistently with WPF &lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83294.aspx</link><pubDate>Sun, 24 Aug 2008 15:15:41 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83294</guid><dc:creator>jayme_edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83294.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83294</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t mind having to put a namespace prefix before my control. What I don&amp;#39;t like is having to have my namespace declaration use the &amp;quot;clr-namespace&amp;quot; directive and not an XML namespace declared in my AssemblyInfo.cs. Using the &amp;quot;clr-namespace&amp;quot; prefix within an xml namespace&amp;nbsp;declaration&amp;nbsp;constrains my namespace prefix to only refer to one&amp;nbsp;namespace of C# code per XML namespace.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In WPF you can map multiple C# namespaces in another assembly to a SINGLE XML namespace, declare this XML namespace&amp;nbsp;in your inherited subclass in a silverlight application assembly, and have access to all of your types under a single namespace. This allows third party control vendors or creators of frameworks on WPF to enable consumers of their controls to declare a single XML namespace on top of their XAML and have access to their entire API of user controls - a larger framework of controls and markup WILL be broken up into more than one C# namespace, and with the way things are now consumers of my API now need to declare multiple namespaces, remember the assembly they reside in, and then use multiple namespace prefixes instead of one XML namespace mapped to all of them. I don&amp;#39;t see any reason other than time constraints as to why this isn&amp;#39;t in Silverlight. These are two Microsoft owned technologies, and the feature I describe is a very powerful one that by not enabling in Silverlight, makes its implementation of XAML look like a shoddy, half-implemented effort. Having some controls missing from Silverlight 2 is one thing - having the architecture laden with caveats that differ from WPF&amp;nbsp;because time to market and a desire for&amp;nbsp;more&amp;nbsp;controls took precedence over the&amp;nbsp;infrastructure is another.&lt;/p&gt;
&lt;p&gt;I would like to say that Silverlight is a solid implementation of WPF for the web, but to do that fairly it needs to function consistently enough with respect to things that are not constrained simply by being in a browser (like the way assemblies are dynamically loaded) for me to safely recommend that this technology is &amp;quot;ready for primetime&amp;quot; to others for projects. My ability to cut the time needed to deliver applications by packaging reusable controls and have folks familiar with WPF come on board quickly with Silverlight makes or breaks the feasibility of the technology. Having to explain that Silverlight does things differently in areas where there are no technical constraints as to why costs time in communicating architecture, and leveraging existing personnel.&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83258.aspx</link><pubDate>Sun, 24 Aug 2008 06:16:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83258</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83258.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83258</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The steps that I mentioned above are working fine in Silverlight. &lt;/p&gt;&lt;p&gt;But yes. You can&amp;#39;t use like &amp;lt;BaseControl&amp;gt; or &amp;lt;EditPage&amp;gt; directly. You will have to go with &amp;lt;alias:BaseControl&amp;gt; or &amp;lt;alias:EditPage&amp;gt; or etc.&amp;nbsp; I&amp;#39;m not sure why the mapping is not working. If the mapping is working fine, you maybe able to go without having alias. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83223.aspx</link><pubDate>Sat, 23 Aug 2008 21:04:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83223</guid><dc:creator>jayme_edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83223.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83223</wfw:commentRss><description>&lt;p&gt;Thanks very much for the post, you get the point across well. &lt;/p&gt;&lt;p&gt;I really want to be able to do what you show in step 6 with Silverlight though. It works in WPF. The nice thing is then you can have several base classes, like one for an edit page, one for a list page as user controls and then in your markup say &amp;lt;EditPage&amp;gt; or &amp;lt;ListPage&amp;gt; as the root element of the XAML documents that inherit from the bases. It works nicely in WPF and gets you closer to a domain specific language by removing UserControl from the language on the page.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Just my two cents, hope you guys implement it :) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;-Jayme &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83217.aspx</link><pubDate>Sat, 23 Aug 2008 20:34:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83217</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83217.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83217</wfw:commentRss><description>&lt;p&gt;I got it. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As your sample is not availble here, I will show from scretch.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. Create Silverlight Application with Website attached. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; Add a Silverlight Class Library project to Solution and named it &lt;b&gt;SilverlightBaseLib&lt;/b&gt;&lt;/p&gt;&lt;p&gt;2. Add a class called &lt;b&gt;BaseControl.cs&lt;/b&gt; &lt;/p&gt;&lt;p&gt;3. BaseControl should be inherited from UserControl.&amp;nbsp;&lt;/p&gt;&lt;p&gt;using System;&lt;br /&gt;using System.Net;&lt;br /&gt;using System.Windows;&lt;br /&gt;using System.Windows.Controls;&lt;br /&gt;using System.Windows.Documents;&lt;br /&gt;using System.Windows.Ink;&lt;br /&gt;using System.Windows.Input;&lt;br /&gt;using System.Windows.Media;&lt;br /&gt;using System.Windows.Media.Animation;&lt;br /&gt;using System.Windows.Shapes;&lt;br /&gt;&lt;br /&gt;namespace SilverlightBaseLib {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class &lt;b&gt;BaseControl : UserControl&lt;/b&gt;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public new object &lt;b&gt;FindName&lt;/b&gt;(string name) {&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; return base.FindName(name);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public new UIElement &lt;b&gt;Content&lt;/b&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; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return base.Content;&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;&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; set {&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; base.Content = value;&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; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Note: &lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Content property&lt;/b&gt; : The reason why I&amp;#39;m adding &amp;quot;Content&amp;quot; property in this class is for showing UI on the screen. &lt;/li&gt;&lt;li&gt;&lt;b&gt;FindName &lt;/b&gt;: this.FindName() is used in the generated cs file. So, I need to implement this method to avoid this error. &lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;4. Add&amp;nbsp; that Silverlight class library to Silverlight Application project. &lt;/p&gt;&lt;p&gt;5. Add one Silverlight User Control to Silverlight Application and named it&amp;nbsp; &lt;b&gt;InheritedControl.xaml&lt;/b&gt;&lt;/p&gt;&lt;p&gt;6. Copy and paste the following code. &lt;/p&gt;&lt;p&gt;&amp;lt;&lt;b&gt;base:BaseControl&lt;/b&gt; x:Class=&amp;quot;SilverlightApplication1.InheritedControl&amp;quot;&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;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:base=&amp;quot;clr-namespace:SilverlightBaseLib;assembly=SilverlightBaseLib&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Width=&amp;quot;400&amp;quot; Height=&amp;quot;300&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid x:Name=&amp;quot;LayoutRoot&amp;quot; Background=&amp;quot;Red&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;br /&gt;&lt;b&gt;&amp;lt;/base:BaseControl&amp;gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;7. Go to InheritedControl.xaml.cs and change UserControl to SilverlightBaseLib.BaseControl.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Net;&lt;br /&gt;using System.Windows;&lt;br /&gt;using System.Windows.Controls;&lt;br /&gt;using System.Windows.Documents;&lt;br /&gt;using System.Windows.Input;&lt;br /&gt;using System.Windows.Media;&lt;br /&gt;using System.Windows.Media.Animation;&lt;br /&gt;using System.Windows.Shapes;&lt;br /&gt;&lt;br /&gt;namespace SilverlightApplication1 {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class InheritedControl : &lt;b&gt;SilverlightBaseLib.BaseControl&lt;/b&gt; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public InheritedControl() {&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; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;8. then, use it in Page.xaml as below.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;UserControl xmlns:my=&amp;quot;clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls&amp;quot;&amp;nbsp; x:Class=&amp;quot;SilverlightApplication1.Page&amp;quot;&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;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:ctl=&amp;quot;clr-namespace:SilverlightApplication1&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Grid&amp;gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ctl:InheritedControl /&amp;gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Grid&amp;gt;&lt;br /&gt;&amp;lt;/UserControl&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That&amp;#39;s all. Hope it helps.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Note: Yu-lin said that xmlns mapping should be used in Assembly. Ref: http://silverlight.net/forums/p/10986/34909.aspx&amp;nbsp; but it doesn&amp;#39;t work well with nested control. Hello Yu-lin, Could you please explain me why it&amp;#39;s not working with nested control for mapping? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83183.aspx</link><pubDate>Sat, 23 Aug 2008 17:00:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83183</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83183.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83183</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I recieved your sample project.I think it&amp;#39;s related to the nested namespace problem. Please read last two or three posts in this link &lt;a href="http://silverlight.net/forums/p/10986/83178.aspx" target="_blank"&gt;http://silverlight.net/forums/p/10986/83178.aspx&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;I will find out about that and will let you know.  &lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/83145.aspx</link><pubDate>Sat, 23 Aug 2008 11:04:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:83145</guid><dc:creator>mchlSync</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/83145.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=83145</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m very interested to take a look this issue.&amp;nbsp; Can you send the sample file to mchlsync AT gmail DOT com? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/82933.aspx</link><pubDate>Fri, 22 Aug 2008 13:34:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:82933</guid><dc:creator>jayme_edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/82933.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=82933</wfw:commentRss><description>&lt;p&gt;How do I get the sample project to you? Do you want me to email it or is there a way to attach messages in this forum? I have a sample project created that demonstrates this.&lt;/p&gt;
&lt;p&gt;-Jayme&lt;/p&gt;</description></item><item><title>Re: Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/82805.aspx</link><pubDate>Fri, 22 Aug 2008 05:14:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:82805</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/82805.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=82805</wfw:commentRss><description>&lt;p&gt;Hello, can you share a sample project? I can&amp;#39;t reproduce this problem... The generated code in Page.g.cs looks like this:&lt;/p&gt;
&lt;p&gt;public partial class Page : SilverlightClassLibrary1.Control1 &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Referenced namespaces missing from generated code behind for inherited user control</title><link>http://forums.silverlight.net/forums/thread/82344.aspx</link><pubDate>Wed, 20 Aug 2008 19:37:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:82344</guid><dc:creator>jayme_edwards</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/82344.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=82344</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In WPF this works:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Create a class library &amp;quot;MyControls&amp;quot;.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add a XAML user control called &amp;quot;MyControl&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add attribute to AssemblyInfo.cs of &amp;quot;MyControls&amp;quot; library to register the namespace containing &amp;quot;MyControl&amp;quot; with an XML namespace.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Create a XAML application project &amp;quot;MyApp&amp;quot;.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add a reference to the &amp;quot;MyControls&amp;quot; project to the&amp;nbsp;&amp;quot;MyApp&amp;quot; project.&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add a XAML user control to the&amp;nbsp;&amp;quot;MyApp&amp;quot; project.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Modify the user control in the following ways:&lt;/div&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;In the markup, declare the XML namespace from step 3.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Change the root element of the user control to &amp;quot;MyControl&amp;quot; prefixed with the namespace prefix you used above.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the code behind, change the control to inherit from MyControl instead of UserControl.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;
&lt;p&gt;In Silverlight, doing this works except that the partial class generated by compiling the &amp;quot;MyApp&amp;quot; project&amp;#39;s user control doesn&amp;#39;t have a using statement for the C# namespace(s) from step 3.&lt;/p&gt;
&lt;p&gt;This is important for allowing people to create libraries of controls that can be inherited from. I&amp;#39;ve used it in many situations in WPF to great effect!!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>