<?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 for Michael Shim</title>
	<atom:link href="http://michaelshim.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelshim.com/blog</link>
	<description>XAML, WPF &#38; Silverlight</description>
	<lastBuildDate>Fri, 07 May 2010 16:52:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Running FxCop rules against Silverlight or WPF XAML by Michael Shim</title>
		<link>http://michaelshim.com/blog/2009/11/23/running-fxcop-rules-against-silverlight-xaml/comment-page-1/#comment-187</link>
		<dc:creator>Michael Shim</dc:creator>
		<pubDate>Fri, 07 May 2010 16:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=29#comment-187</guid>
		<description>It&#039;s in Microsxoft.Xaml.Tools.XamlDom.   Here&#039;s a simple sample where we check to see if a property is set more than once:

&lt;code&gt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xaml.Tools.XamlDom;
using System.Xaml;
using Microsoft.FxCop.Sdk;

namespace Microsoft.Xaml.Tools.FxCop.Rules
{
    public class PropertiesCanOnlyBeSetOnce : BaseXamlRule
    {
        public PropertiesCanOnlyBeSetOnce() : base(&quot;PropertiesCanOnlyBeSetOnce&quot;) { }

        public override void CheckXaml(XamlDomObject rootObjectNode, System.Xaml.XamlSchemaContext schemaContext, string resourceName)
        {
            foreach (XamlDomObject objectNode in rootObjectNode.DescendantsAndSelf())
            {
                List&lt;XamlMember&gt; membersSet = new List&lt;XamlMember&gt;();
                foreach (XamlDomMember memberNode in objectNode.MemberNodes)
                {
                    if (!membersSet.Contains(memberNode.Member))
                    {
                        membersSet.Add(memberNode.Member);
                    }
                    else
                    {
                        Problems.Add(CreateProblem(GetResolution(memberNode.Member.Name), memberNode.Member.Name, memberNode, resourceName));
                    }
                }
            }
        }
    }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s in Microsxoft.Xaml.Tools.XamlDom.   Here&#8217;s a simple sample where we check to see if a property is set more than once:</p>
<p><code><br />
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using Microsoft.Xaml.Tools.XamlDom;<br />
using System.Xaml;<br />
using Microsoft.FxCop.Sdk;</p>
<p>namespace Microsoft.Xaml.Tools.FxCop.Rules<br />
{<br />
    public class PropertiesCanOnlyBeSetOnce : BaseXamlRule<br />
    {<br />
        public PropertiesCanOnlyBeSetOnce() : base("PropertiesCanOnlyBeSetOnce") { }</p>
<p>        public override void CheckXaml(XamlDomObject rootObjectNode, System.Xaml.XamlSchemaContext schemaContext, string resourceName)<br />
        {<br />
            foreach (XamlDomObject objectNode in rootObjectNode.DescendantsAndSelf())<br />
            {<br />
                List<xamlmember> membersSet = new List</xamlmember><xamlmember>();<br />
                foreach (XamlDomMember memberNode in objectNode.MemberNodes)<br />
                {<br />
                    if (!membersSet.Contains(memberNode.Member))<br />
                    {<br />
                        membersSet.Add(memberNode.Member);<br />
                    }<br />
                    else<br />
                    {<br />
                        Problems.Add(CreateProblem(GetResolution(memberNode.Member.Name), memberNode.Member.Name, memberNode, resourceName));<br />
                    }<br />
                }<br />
            }<br />
        }<br />
    }<br />
}<br />
</xamlmember></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running FxCop rules against Silverlight or WPF XAML by Parixit Pandey</title>
		<link>http://michaelshim.com/blog/2009/11/23/running-fxcop-rules-against-silverlight-xaml/comment-page-1/#comment-181</link>
		<dc:creator>Parixit Pandey</dc:creator>
		<pubDate>Thu, 06 May 2010 08:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=29#comment-181</guid>
		<description>Hi Michael,

Now I am able to add XAML Toolkit Rules in FxCop 1.36 and even able to run the silverlight Application against it. But After running the application Not getting any error.

In case I want to write my own custom rules for XMAL what steps I have to follow. Could I get any sample code snippets. 
Already I had added following code 
 public abstract class BaseXamlRule : BaseIntrospectionRule
    {
        public abstract void CheckXaml(XamlDomObject rootObjectNode,
                      XamlSchemaContext schemaContext,
                      string resourceName)
        {

        }
    }

for XamlSchemaContext added System.XMAL Namespace but still I am not able to get XamlDomObject Class. What namespace  I have to add for it ?

Please Provide sample code snippets writing XMAL rules.

Thanks, 
Parixit Pandey</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Now I am able to add XAML Toolkit Rules in FxCop 1.36 and even able to run the silverlight Application against it. But After running the application Not getting any error.</p>
<p>In case I want to write my own custom rules for XMAL what steps I have to follow. Could I get any sample code snippets.<br />
Already I had added following code<br />
 public abstract class BaseXamlRule : BaseIntrospectionRule<br />
    {<br />
        public abstract void CheckXaml(XamlDomObject rootObjectNode,<br />
                      XamlSchemaContext schemaContext,<br />
                      string resourceName)<br />
        {</p>
<p>        }<br />
    }</p>
<p>for XamlSchemaContext added System.XMAL Namespace but still I am not able to get XamlDomObject Class. What namespace  I have to add for it ?</p>
<p>Please Provide sample code snippets writing XMAL rules.</p>
<p>Thanks,<br />
Parixit Pandey</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use XamlReader.Load for WPF XAML (not XamlServices.Load) by Michael Shim</title>
		<link>http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/comment-page-1/#comment-170</link>
		<dc:creator>Michael Shim</dc:creator>
		<pubDate>Tue, 04 May 2010 04:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/#comment-170</guid>
		<description>Could you give me a little more detail on what you&#039;re trying to accomplish?  Email me at mishim at microsoft dot com.

Thanks!</description>
		<content:encoded><![CDATA[<p>Could you give me a little more detail on what you&#8217;re trying to accomplish?  Email me at mishim at microsoft dot com.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running FxCop rules against Silverlight or WPF XAML by Michael Shim</title>
		<link>http://michaelshim.com/blog/2009/11/23/running-fxcop-rules-against-silverlight-xaml/comment-page-1/#comment-169</link>
		<dc:creator>Michael Shim</dc:creator>
		<pubDate>Tue, 04 May 2010 04:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=29#comment-169</guid>
		<description>We&#039;re currently working on getting a build of the Xaml Toolkit that works well against VS2010 RTM &amp; FxCop 10.  We&#039;ll update you when we fix this.</description>
		<content:encoded><![CDATA[<p>We&#8217;re currently working on getting a build of the Xaml Toolkit that works well against VS2010 RTM &#038; FxCop 10.  We&#8217;ll update you when we fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use XamlReader.Load for WPF XAML (not XamlServices.Load) by akjoshi</title>
		<link>http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/comment-page-1/#comment-162</link>
		<dc:creator>akjoshi</dc:creator>
		<pubDate>Fri, 30 Apr 2010 13:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/#comment-162</guid>
		<description>Can you please look at this thread and give some solution for problems in XAMALReader -

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/ef97f8a1-2773-46a3-8133-d895c4486b12</description>
		<content:encoded><![CDATA[<p>Can you please look at this thread and give some solution for problems in XAMALReader -</p>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/ef97f8a1-2773-46a3-8133-d895c4486b12" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/ef97f8a1-2773-46a3-8133-d895c4486b12</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running FxCop rules against Silverlight or WPF XAML by Parixit Pandey</title>
		<link>http://michaelshim.com/blog/2009/11/23/running-fxcop-rules-against-silverlight-xaml/comment-page-1/#comment-136</link>
		<dc:creator>Parixit Pandey</dc:creator>
		<pubDate>Fri, 23 Apr 2010 10:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=29#comment-136</guid>
		<description>Hi Michael,

In my Machine I had Installed VS2010 Ultimate edition. even I had Installed FxCop 1.36 and Downloaded XAML Toolkit Rules. in Fxcop FxCop.exe.config file changed VS2010 Version But when I am trying to add rules in Fxcorp it giving error rules are not valid.</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>In my Machine I had Installed VS2010 Ultimate edition. even I had Installed FxCop 1.36 and Downloaded XAML Toolkit Rules. in Fxcop FxCop.exe.config file changed VS2010 Version But when I am trying to add rules in Fxcorp it giving error rules are not valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Use XamlReader.Load for WPF XAML (not XamlServices.Load) by George</title>
		<link>http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/comment-page-1/#comment-117</link>
		<dc:creator>George</dc:creator>
		<pubDate>Wed, 14 Apr 2010 21:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/2009/12/10/use-xamlreader-load-for-wpf-xaml-not-xamlservices-load/#comment-117</guid>
		<description>How does it compare with using XamlXmlReader with WPF Schema context?
I have a configuration XAML that contains a wpf datatemplate xaml in it. I am hoping that I can parse through it using XamlXmlReader and use WPF schema context to get the Data template and a custom schema context for the rest of the xaml. 
Is that the right approach? Guidance will be very much appreciated. 
Thanks, 
-George</description>
		<content:encoded><![CDATA[<p>How does it compare with using XamlXmlReader with WPF Schema context?<br />
I have a configuration XAML that contains a wpf datatemplate xaml in it. I am hoping that I can parse through it using XamlXmlReader and use WPF schema context to get the Data template and a custom schema context for the rest of the xaml.<br />
Is that the right approach? Guidance will be very much appreciated.<br />
Thanks,<br />
-George</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GetObject vs StartObject in System.Xaml by Markus Tamm &#187; Blog Archive &#187; Links 23.03.2010</title>
		<link>http://michaelshim.com/blog/2010/03/18/getobject-vs-startobject/comment-page-1/#comment-75</link>
		<dc:creator>Markus Tamm &#187; Blog Archive &#187; Links 23.03.2010</dc:creator>
		<pubDate>Tue, 23 Mar 2010 08:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=46#comment-75</guid>
		<description>[...] GetObject vs StartObject in System.Xaml (Michael Shim) [...]</description>
		<content:encoded><![CDATA[<p>[...] GetObject vs StartObject in System.Xaml (Michael Shim) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on GetObject vs StartObject in System.Xaml by Dew Drop &#8211; March 19, 2010 &#124; Alvin Ashcraft&#39;s Morning Dew</title>
		<link>http://michaelshim.com/blog/2010/03/18/getobject-vs-startobject/comment-page-1/#comment-68</link>
		<dc:creator>Dew Drop &#8211; March 19, 2010 &#124; Alvin Ashcraft&#39;s Morning Dew</dc:creator>
		<pubDate>Fri, 19 Mar 2010 12:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=46#comment-68</guid>
		<description>[...] GetObject vs StartObject in System.Xaml (Michael Shim) [...]</description>
		<content:encoded><![CDATA[<p>[...] GetObject vs StartObject in System.Xaml (Michael Shim) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XAML Toolkit CTP by WP Themes</title>
		<link>http://michaelshim.com/blog/2009/11/19/xaml-toolkit-ctp/comment-page-1/#comment-63</link>
		<dc:creator>WP Themes</dc:creator>
		<pubDate>Sat, 13 Mar 2010 19:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://michaelshim.com/blog/?p=11#comment-63</guid>
		<description>Nice brief and this enter helped me alot in my college assignement. Thank you on your information.</description>
		<content:encoded><![CDATA[<p>Nice brief and this enter helped me alot in my college assignement. Thank you on your information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
