<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/143029.aspx</link><pubDate>Fri, 05 Dec 2008 17:04:53 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:143029</guid><dc:creator>michael_weed</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/143029.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=143029</wfw:commentRss><description>&lt;p&gt;Thanks Bruno.&amp;nbsp; I&amp;#39;ll start digging into this right away!&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/143004.aspx</link><pubDate>Fri, 05 Dec 2008 16:33:56 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:143004</guid><dc:creator>Bigsby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/143004.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=143004</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;There you go.&lt;/p&gt;&lt;p&gt;You can get the working sample &lt;a href="http://bigsby.no-ip.org/internalcontrols.zip" title="Internal controls" target="_blank"&gt;here&lt;/a&gt; &lt;/p&gt;&lt;p&gt;Hope it helps. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;What happens is that generic.xaml is just a kind of patch to workaround the fact that ResourceDictionary is not WPF like implemented yet. The consequence of this is that generic.xaml is parsed &amp;quot;outside&amp;quot; the assembly thus not knowing the internal types. So, to use the internal controls and style them, you&amp;#39;ll have to workaround in a manner like the one I propose in the sample.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The reason I didn&amp;#39;t run into this kind of trouble in my Panel implementation is I was using the panels precisely to make the parsing/constructing of the UI objects faster not using any XAML and setting my own optimized measure and arranging methods. This was, naturally, all done in the code behind.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If you look at the way I&amp;#39;m getting the Style for the PrivateButton type, you&amp;#39;ll see the way I&amp;#39;m setting my styles, now-a-days. I use a private static (thus only instanciated in the first object) field and set it in the constructor. One of the advantage of this is that you don&amp;#39;t 3 miles of generic.xaml with all the styles in it which is very little workable.&lt;/p&gt;&lt;p&gt;Well. I think this is enough for you to get the picture.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Anything else, just whistle.&lt;/p&gt;&lt;p&gt;Bruno. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/142887.aspx</link><pubDate>Fri, 05 Dec 2008 11:58:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:142887</guid><dc:creator>michael_weed</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/142887.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=142887</wfw:commentRss><description>&lt;p&gt;Hi Bigsby,&lt;/p&gt;
&lt;p&gt;Do you have a working example of this you can provide?&amp;nbsp; As I said before, I&amp;#39;ve tried simply marking the controls I intend to hide as &amp;quot;internal&amp;quot; and this has not worked.&amp;nbsp; I get a design-time error as soon as I try to use any of the publiclly-scoped controls that depend on one of the internal controls.&amp;nbsp; The error only goes away when I mark all of the controls as &amp;quot;public&amp;quot; again.&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/141860.aspx</link><pubDate>Wed, 03 Dec 2008 21:28:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:141860</guid><dc:creator>michael_weed</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/141860.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=141860</wfw:commentRss><description>&lt;p&gt;Great!&lt;/p&gt;
&lt;p&gt;I agree with you about the requirement of using a resource dictionary with a required name of generic.xaml.&amp;nbsp; Perhaps this will evolve over time.&lt;/p&gt;
&lt;p&gt;Thanks again for your help!&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/141819.aspx</link><pubDate>Wed, 03 Dec 2008 20:22:11 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:141819</guid><dc:creator>Bigsby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/141819.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=141819</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ll make a working sample tonight and provide it so you can check it out.&lt;/p&gt;
&lt;p&gt;Regarding the generic.xaml question, I&amp;#39;ll have to check it out but there shouldn&amp;#39;t be nothing else to hide once the Controls are modified as internal. One thing I really don&amp;#39;t like that closed process of accessing a file called specifically generic.xaml, specifically in the a folder called Themes and adding resources that you can´t access... too blury for my taste.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Never the less... later on I&amp;#39;ll provide the sample.&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/141781.aspx</link><pubDate>Wed, 03 Dec 2008 19:07:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:141781</guid><dc:creator>michael_weed</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/141781.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=141781</wfw:commentRss><description>&lt;p&gt;Hi Bigsby,&lt;/p&gt;
&lt;p&gt;Exactly.&amp;nbsp; But how did you do it?&amp;nbsp; When I mark the desired control classes &amp;quot;internal&amp;quot; I get design-time errors when I go to use one of the publicly-scoped controls in a project.&amp;nbsp; Besides marking the control classes as internal, is there something else I need to do to the style markup in generic.xaml to &amp;quot;hide&amp;quot; these internal controls?&lt;/p&gt;</description></item><item><title>Re: Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/141746.aspx</link><pubDate>Wed, 03 Dec 2008 18:02:19 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:141746</guid><dc:creator>Bigsby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/141746.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=141746</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;&lt;p&gt;I use that a lot with custom Panels. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Making Custom Controls Internal to a Custom Control Assembly</title><link>http://forums.silverlight.net/forums/thread/141639.aspx</link><pubDate>Wed, 03 Dec 2008 14:55:47 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:141639</guid><dc:creator>michael_weed</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/141639.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=141639</wfw:commentRss><description>&lt;p&gt;Is it possible to make certain custom controls in an assembly internal to that assembly -- where the publicly-scoped controls could use the internally-scoped controls but external users of the assembly could not?&lt;/p&gt;</description></item></channel></rss>