<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title>DongPad</title><link>http://www.dongpad.com</link> <description>Every day is a new beginning!</description><copyright>2.0 beta 03</copyright> <language>zh-cn</language><item><title>x:Name vs. x:Key</title><description><![CDATA[<h4>Question</h4> When should I use x:Key and when should I use x:Name when creating elements?  <br />  <h4>Answer</h4>  <p>It depends on where you create your element.   <br />x:Key is only valid in the scope of a ResourceDictionary element. x:Key is used as the primary identifier for elements in the ResourceDictionary. Specifying x:Name is not considered valid (it will cause an exception when accessing resources).    <br />On the other hand, x:Name is valid in the scope of everything but a ResourceDictionary. x:Key is not valid outside the ResourceDictionary scope.</p>  <p>Btw, lazy for update the blog due to my busy work ,enjoy~~hoho</p>]]></description><author>Jack</author><link>http://www.dongpad.com/CSharp-20090307-163.html</link><pubdate>2009-3-7 0:51:00</pubdate></item></channel></rss>
