<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Design Time Feature Implementation in Silverlight Toolkit</title>
	<atom:link href="http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/</link>
	<description>About Silverlight, Microsoft technologies, and software development in general.</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:50:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Editing Model &#38; Default Initializer for Silverlight Controls &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-6289</link>
		<dc:creator>Editing Model &#38; Default Initializer for Silverlight Controls &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Mon, 11 May 2009 21:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-6289</guid>
		<description>[...] of Silverlight.Controls.Design.sln. Please read prior post Design Time Feature Implementation in Silverlight Toolkit for more [...]</description>
		<content:encoded><![CDATA[<p>[...] of Silverlight.Controls.Design.sln. Please read prior post Design Time Feature Implementation in Silverlight Toolkit for more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Add Rich Intellisense for Your Silverlight Controls &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-4153</link>
		<dc:creator>Add Rich Intellisense for Your Silverlight Controls &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Thu, 23 Apr 2009 07:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-4153</guid>
		<description>[...] generated .xml files are embedded in design dlls (see Design Time Feature Implementation in Silverlight Toolkit for more [...]</description>
		<content:encoded><![CDATA[<p>[...] generated .xml files are embedded in design dlls (see Design Time Feature Implementation in Silverlight Toolkit for more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-3976</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Tue, 21 Apr 2009 16:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-3976</guid>
		<description>&lt;a href=&quot;#comment-3960&quot; rel=&quot;nofollow&quot;&gt;@Fider&lt;/a&gt; 
For debugging, try this:
* make sure the naming and location of your control and design assemblies are correct, ie, if your control assembly is foo.dll in c:\tmp, then the design assembly is foo.design.dll in c:\tmp or c:\tmp\Design. 
* open your design project, set a breakpoint at your Register function, and set the debug target of your design project property to launch visual studio
* hit F5, a new VS instance is launched; create a new SL project, then go through the Choose Items Dialog, select Silverlight Tab, browse to the folder c:\tmp and select your control dll foo.dll.
* your breakpoint should hit. 

Another common cause of issues: make sure it is the Silverlight type (TreeViewItemAdv in your example) you are specifying metadata for. 

Hope this helps!

Thanks, 

-Ning</description>
		<content:encoded><![CDATA[<p><a href="#comment-3960" rel="nofollow">@Fider</a><br />
For debugging, try this:<br />
* make sure the naming and location of your control and design assemblies are correct, ie, if your control assembly is foo.dll in c:\tmp, then the design assembly is foo.design.dll in c:\tmp or c:\tmp\Design.<br />
* open your design project, set a breakpoint at your Register function, and set the debug target of your design project property to launch visual studio<br />
* hit F5, a new VS instance is launched; create a new SL project, then go through the Choose Items Dialog, select Silverlight Tab, browse to the folder c:\tmp and select your control dll foo.dll.<br />
* your breakpoint should hit. </p>
<p>Another common cause of issues: make sure it is the Silverlight type (TreeViewItemAdv in your example) you are specifying metadata for. </p>
<p>Hope this helps!</p>
<p>Thanks, </p>
<p>-Ning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fider</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-3960</link>
		<dc:creator>Fider</dc:creator>
		<pubDate>Tue, 21 Apr 2009 11:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-3960</guid>
		<description>Hi Ning,

I have created as assemblies and placed in a local folder and GAC. I am trying to open the assemblies from the local folder in the choose items dialog - Silverlight Components tab. Its selects all the classes in the assemblies and are added to toolbox.

So let me know how do I debug these projects

Regards,
Fider</description>
		<content:encoded><![CDATA[<p>Hi Ning,</p>
<p>I have created as assemblies and placed in a local folder and GAC. I am trying to open the assemblies from the local folder in the choose items dialog &#8211; Silverlight Components tab. Its selects all the classes in the assemblies and are added to toolbox.</p>
<p>So let me know how do I debug these projects</p>
<p>Regards,<br />
Fider</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ning Zhang</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-3934</link>
		<dc:creator>Ning Zhang</dc:creator>
		<pubDate>Mon, 20 Apr 2009 22:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-3934</guid>
		<description>Hi Fider, 

Your code looks right. My suggestion is to step through to verify your code is loaded and executed correctly:
* Set a breakpoint at your Register function and see whether it is hit. VS2010 &amp; Blend3 use newer MWD and a different entry point (IProvideAttributeTable.AttributeTable instead of IRegisterMetadata.Register); and if the name or location of your design dll isn&#039;t right relative to the corresponding runtime dll, your design dll won&#039;t be loaded either. This is a common cause of issues.
* If your breakpoint is hit, step through your code, then verify the effect, via AttributeTable.ValidateTable, AttributeTable.GetCustomAttributes, or TypeDescriptor.GetAttributes etc.

Hope this helps. 

Thanks, 

-Ning</description>
		<content:encoded><![CDATA[<p>Hi Fider, </p>
<p>Your code looks right. My suggestion is to step through to verify your code is loaded and executed correctly:<br />
* Set a breakpoint at your Register function and see whether it is hit. VS2010 &amp; Blend3 use newer MWD and a different entry point (IProvideAttributeTable.AttributeTable instead of IRegisterMetadata.Register); and if the name or location of your design dll isn&#8217;t right relative to the corresponding runtime dll, your design dll won&#8217;t be loaded either. This is a common cause of issues.<br />
* If your breakpoint is hit, step through your code, then verify the effect, via AttributeTable.ValidateTable, AttributeTable.GetCustomAttributes, or TypeDescriptor.GetAttributes etc.</p>
<p>Hope this helps. </p>
<p>Thanks, </p>
<p>-Ning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fider</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-3912</link>
		<dc:creator>Fider</dc:creator>
		<pubDate>Mon, 20 Apr 2009 12:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-3912</guid>
		<description>Hi Ning,

Good Article. I have created design and visualstudio.design project for my Silverlight custom control. My objective is only to hide a class from the toolbox. I have a metadata.cs file where in I have set ToolboxBrowsableAttribute to false to the classes that should be hidded. My metadata.cs file looks like the following.


public class Metadata : IRegisterMetadata
    {

        public void Register()
        {
            AttributeTableBuilder builder = new AttributeTableBuilder();
            builder.AddCallback(typeof(TreeViewItemAdv), b =&gt; b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));
            MetadataStore.AddAttributeTable(builder.CreateTable());
}
}

But I could still get the class being displayed.

Any help will be appreciable.

Regards,

Fider.</description>
		<content:encoded><![CDATA[<p>Hi Ning,</p>
<p>Good Article. I have created design and visualstudio.design project for my Silverlight custom control. My objective is only to hide a class from the toolbox. I have a metadata.cs file where in I have set ToolboxBrowsableAttribute to false to the classes that should be hidded. My metadata.cs file looks like the following.</p>
<p>public class Metadata : IRegisterMetadata<br />
    {</p>
<p>        public void Register()<br />
        {<br />
            AttributeTableBuilder builder = new AttributeTableBuilder();<br />
            builder.AddCallback(typeof(TreeViewItemAdv), b =&gt; b.AddCustomAttributes(new ToolboxBrowsableAttribute(false)));<br />
            MetadataStore.AddAttributeTable(builder.CreateTable());<br />
}<br />
}</p>
<p>But I could still get the class being displayed.</p>
<p>Any help will be appreciable.</p>
<p>Regards,</p>
<p>Fider.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Property Value Editors for Silverlight Controls &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-2421</link>
		<dc:creator>Property Value Editors for Silverlight Controls &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Fri, 03 Apr 2009 19:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-2421</guid>
		<description>[...] is associated with Chart.Title in ChartMetadata.cs (see Design Time Feature Implementation in Silverlight Toolkit for more information on *Metadata.cs [...]</description>
		<content:encoded><![CDATA[<p>[...] is associated with Chart.Title in ChartMetadata.cs (see Design Time Feature Implementation in Silverlight Toolkit for more information on *Metadata.cs [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Write Silverlight Design Time for All Designers: Visual Studio 2008, Blend 2; Blend 3, and Visual Studio 2010 &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-2159</link>
		<dc:creator>How to Write Silverlight Design Time for All Designers: Visual Studio 2008, Blend 2; Blend 3, and Visual Studio 2010 &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Tue, 31 Mar 2009 10:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-2159</guid>
		<description>[...] demonstrating how to develop Silverlight 2 design time features for VS9 and Blend 2. My blog post Design Time Feature Implementation in Silverlight Toolkit explains in detail how it is done, and the implementation framework readers can use in their own [...]</description>
		<content:encoded><![CDATA[<p>[...] demonstrating how to develop Silverlight 2 design time features for VS9 and Blend 2. My blog post Design Time Feature Implementation in Silverlight Toolkit explains in detail how it is done, and the implementation framework readers can use in their own [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Silverlight Controls &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-33</link>
		<dc:creator>Silverlight Controls &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Sun, 25 Jan 2009 04:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-33</guid>
		<description>[...] Design Time Feature Implementation in Silverlight Toolkit [...]</description>
		<content:encoded><![CDATA[<p>[...] Design Time Feature Implementation in Silverlight Toolkit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Associate an Toolbox Icon for Your Silverlight Control &#124; Ning Zhang's Blog</title>
		<link>http://www.ningzhang.org/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/comment-page-1/#comment-19</link>
		<dc:creator>How to Associate an Toolbox Icon for Your Silverlight Control &#124; Ning Zhang's Blog</dc:creator>
		<pubDate>Thu, 22 Jan 2009 02:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://nztst.wordpress.com/2008/12/28/design-time-feature-implementation-in-silverlight-toolkit/#comment-19</guid>
		<description>[...] Silverlight.Controls.sln in Visual Studio (see previous post Design Time Feature Implementation in Silverlight Toolkit for more information on how to download the toolkit [...]</description>
		<content:encoded><![CDATA[<p>[...] Silverlight.Controls.sln in Visual Studio (see previous post Design Time Feature Implementation in Silverlight Toolkit for more information on how to download the toolkit [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

