<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://consultingblogs.emc.com/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>Merrick Chaffer's Blog</title><link>http://consultingblogs.emc.com/merrickchaffer/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>My blog is moving!!!</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/23/my-blog-is-moving.aspx</link><pubDate>Wed, 23 Mar 2011 10:05:28 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18301</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>1</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18301.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18301</wfw:commentRss><description>&lt;p&gt;Hi guys. Thanks for following my posts for the past decade or so. I shall shortly be moving my blogging to a new site, &lt;a href="http://merrickchaffer.blogspot.com"&gt;http://merrickchaffer.blogspot.com&lt;/a&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18301" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category></item><item><title>MSB3247: Found conflicts between different versions of the same dependent assembly.</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/22/msb3247-found-conflicts-between-different-versions-of-the-same-dependent-assembly.aspx</link><pubDate>Tue, 22 Mar 2011 16:13:05 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18299</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18299.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18299</wfw:commentRss><description>&lt;p&gt;Had been getting this recently in our builds, and have finally tracked it down to conflicting versions of the Microsoft.ReportViewer.Common.dll in our project references. This came about as one of our developers was using VS 2010, but the rest were still back on VS 2008. &lt;/p&gt;  &lt;p&gt;Anyway, I thought I’d blog around how we traced this issue down in the end, as it has been perplexing us for quite some time now.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 1: Determine which project is causing the reference conflicts     &lt;br /&gt;&lt;/strong&gt;Check your standard build output and make a note of the project file that was in the process of being built when the ResolveAssemblyReferences target failed.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 2: Turn on Detailed msbuild output for your build.     &lt;br /&gt;&lt;/strong&gt;You can do this from within Visual Studio, under Tools, Options, Project and Solutions, Build and Run, &lt;strong&gt;MSBuild verbosity &lt;/strong&gt;= &lt;strong&gt;Detailed&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/image_585EE3CA.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://consultingblogs.emc.com/blogs/merrickchaffer/image_thumb_1E6FA0DE.png" width="244" height="142" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 3: Determine which reference is at fault     &lt;br /&gt;&lt;/strong&gt;Do a build of the project file(s) that is/are causing these reference failures, and note the lines in the diagnostic build output, where you will see assembly references attempting to be resolved, but unable to find matching references. This should put you on the right track for resolving what has gone wrong with your solution.&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18299" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx">code</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/msbuild/default.aspx">msbuild</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category></item><item><title>How to Reboot Machine While Connected Through Remote Desktop</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/15/how-to-reboot-machine-while-connected-through-remote-desktop.aspx</link><pubDate>Tue, 15 Mar 2011 13:13:00 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18279</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18279.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18279</wfw:commentRss><description>&lt;P&gt;Came across a bit of an issue today whilst installing multiple machines over remote desktop from windows 7. If you’re on a windows 7 machine then the restart option is removed from the start menu shutdown list. But never fear, Sean’s stuff is here…&lt;/P&gt;
&lt;P&gt;&lt;A title=http://stuff.seans.com/2009/01/17/how-to-reboot-machine-while-connected-through-remote-desktop/ href="http://stuff.seans.com/2009/01/17/how-to-reboot-machine-while-connected-through-remote-desktop/"&gt;http://stuff.seans.com/2009/01/17/how-to-reboot-machine-while-connected-through-remote-desktop/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here’s the magic command (Windows 7, Vista or Windows XP): &lt;BR&gt;&amp;nbsp; &lt;BR&gt;shutdown -t 0 -r -f &lt;BR&gt;&amp;nbsp; &lt;BR&gt;That’s a “zero” after the -t option, indicating shutdown in zero seconds.&amp;nbsp; The -r option indicates a restart, rather than shutdown.&amp;nbsp; (Don’t forget this one)!&amp;nbsp; The -f option forces all applications to terminate. &lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;Ronald has kindly just pointed out that you can also hit the keyboard shortcut of Ctrl+Alt+End and then shutdown / hibernate from there too&lt;/P&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18279" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Handbrake settings for video conversion to HTC Touch HD phone</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/10/handbrake-settings-for-video-conversion-to-htc-touch-hd-phone.aspx</link><pubDate>Thu, 10 Mar 2011 10:22:44 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18270</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18270.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18270</wfw:commentRss><description>&lt;p&gt;I find that these settings work best for &lt;a href="http://handbrake.fr/downloads.php"&gt;http://handbrake.fr/downloads.php&lt;/a&gt; for my HTC Touch HD phone.&lt;/p&gt;  &lt;p&gt;Set picture size to Width &lt;strong&gt;480 &lt;/strong&gt;and Height &lt;strong&gt;288&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/image_59CC65A0.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://consultingblogs.emc.com/blogs/merrickchaffer/image_thumb_790F0C73.png" width="244" height="149" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Set Video to &lt;strong&gt;MPEG-4(FFmpeg),&lt;/strong&gt; and Target size (MB) to &lt;strong&gt;800&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/image_6AD09383.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://consultingblogs.emc.com/blogs/merrickchaffer/image_thumb_036030D4.png" width="244" height="149" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18270" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Media+Streaming/default.aspx">Media Streaming</category></item><item><title>Inbox repair tool</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/04/inbox-repair-tool.aspx</link><pubDate>Fri, 04 Mar 2011 15:26:01 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18262</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18262.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18262</wfw:commentRss><description>&lt;p&gt;Had great success repairing my inbox the other day. Found an article on the web that pointed me in the direction of this nifty little tool for MS Office 2010 inboxes.&lt;/p&gt;  &lt;p&gt;C:\Program Files (x86)\Microsoft Office\Office14\&lt;strong&gt;SCANPST.EXE&lt;/strong&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/image_673CDA68.png"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://consultingblogs.emc.com/blogs/merrickchaffer/image_thumb_46B59AB6.png" width="244" height="204" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18262" width="1" height="1"&gt;</description></item><item><title>Microsoft Tech Days</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/02/microsoft-tech-days.aspx</link><pubDate>Wed, 02 Mar 2011 16:19:56 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18259</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18259.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18259</wfw:commentRss><description>&lt;p&gt;Online events and recordings of previous events can be found here…&lt;/p&gt;  &lt;p&gt;&lt;a title="http://uktechdays.cloudapp.net/home.aspx" href="http://uktechdays.cloudapp.net/home.aspx"&gt;http://uktechdays.cloudapp.net/home.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18259" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx">code</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/teched/default.aspx">teched</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx">.NET4.0</category></item><item><title>ElementHost rendering issues with the Windows Aero theme enabled</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/elementhost-rendering-issues-with-the-windows-aero-theme-enabled.aspx</link><pubDate>Wed, 23 Feb 2011 13:42:19 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18245</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18245.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18245</wfw:commentRss><description>&lt;p&gt;Came across this issue on the project I’ve been working on. When resizing a form that contained the System.Windows.Forms.Integration.&lt;strong&gt;ElementHost&lt;/strong&gt; control to host WPF content inside a Windows Forms control, we noticed that the new screen real estate inside the ElementHost was not redrawn at all. Rather it just left a black border around the original sized control. Turns out the fix listed in this post resolves the issue for Windows 7 users.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a8a5eebc-3d9e-44bb-abe3-8ce0d4e48263/?ffpr=0"&gt;http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a8a5eebc-3d9e-44bb-abe3-8ce0d4e48263/?ffpr=0&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I noticed it wasn’t affecting the windows XP end users, only the developers that had upgraded to Windows 7 with the Aero features enabled…&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18245" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx">.NET 3.5</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx">WPF</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx">.NET4.0</category></item><item><title>Problems installing Windows 7 Service pack 1</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/problems-installing-windows-7-service-pack-1.aspx</link><pubDate>Wed, 23 Feb 2011 13:37:18 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18244</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18244.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18244</wfw:commentRss><description>&lt;p&gt;Thought I'd let you know how I managed to get the Windows 7 SP1 to finally install (it takes a while).&lt;/p&gt;  &lt;p&gt;At first I had little luck, as it kept saying it was unable to install, and I was receiving this message &lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image0024_6D77054C.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image002[4]" border="0" alt="clip_image002[4]" src="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image0024_thumb_13D8E898.jpg" width="244" height="188" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;So then went online to find out how to fix this, and it told me to rund the following troubleshooter to fix problems with windows update here… (&lt;strong&gt;Start&lt;/strong&gt;, &lt;strong&gt;Troubleshooting, Fix problems with windows update&lt;/strong&gt;)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image001_019021D6.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image001" border="0" alt="clip_image001" src="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image001_thumb_3A3ACBE3.jpg" width="244" height="169" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Which fixed two problems that it found with windows update…&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image002_130082AE.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image002" border="0" alt="clip_image002" src="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image002_thumb_609CAF2E.jpg" width="244" height="191" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;And then after a couple of restarts and about 45 mins waiting around, finally it installed successfully…&lt;/p&gt;  &lt;p&gt;&lt;a href="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image003_396265F9.jpg"&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="clip_image003" border="0" alt="clip_image003" src="http://consultingblogs.emc.com/blogs/merrickchaffer/clip_image003_thumb_40156F7C.jpg" width="244" height="193" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18244" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx">Howto</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Windows+7/default.aspx">Windows 7</category></item><item><title>Virtualization in WPF with VirtualizingStackPanel</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/14/virtualization-in-wpf-with-virtualizingstackpanel.aspx</link><pubDate>Mon, 14 Feb 2011 11:13:55 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18222</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18222.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18222</wfw:commentRss><description>&lt;p&gt;Finally managed to figure out how to get virtualization to actually behave itself in a listbox wpf control.&lt;/p&gt;  &lt;p&gt;Turns out that in order for Virtualization to work, you need three things satisfied.&amp;#160; &lt;/p&gt;  &lt;p&gt;1) Use a control that supports virtualization (e.g. list box or list view). (see Controls That Implement Performance Features section at bottom of this page for more info &lt;a href="http://msdn.microsoft.com/en-us/library/cc716879.aspx#Controls"&gt;http://msdn.microsoft.com/en-us/library/cc716879.aspx#Controls&lt;/a&gt; )&lt;/p&gt;  &lt;p&gt;2) Ensure that the ScrollViewer.CanContentScroll attached property is set to True on the containing list box / list view control.&lt;/p&gt;  &lt;p&gt;3) Ensure that either the list box has a height set, or that it is contained within a parent Grid row, where that row definition has a height set (Height=&amp;quot;*&amp;quot; will do if you want it to occupy the Client window height). Note: Do not use height=”Auto” as this will not work, as this instructs WPF to simply size the row to the height needed to fit all the items of the list box in, hence you do not get the vertical scroll bar appearing.&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18222" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx">.NET</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx">code</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx">.NET 3.5</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx">WPF</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx">.NET4.0</category></item><item><title>Not able to bind to Uid or Name property in XAML</title><link>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/11/not-able-to-bind-to-uid-or-name-property-in-xaml.aspx</link><pubDate>Fri, 11 Feb 2011 09:33:42 GMT</pubDate><guid isPermaLink="false">e847c0e7-38d9-45c0-b593-56747303e088:18218</guid><dc:creator>merrick.chaffer</dc:creator><slash:comments>0</slash:comments><comments>http://consultingblogs.emc.com/merrickchaffer/comments/18218.aspx</comments><wfw:commentRss>http://consultingblogs.emc.com/merrickchaffer/commentrss.aspx?PostID=18218</wfw:commentRss><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;Even though x:Name is a dependency property for a WPF framework element, you cannot the name of the control to a static resource in the code behind file&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Window&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;x:Class&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;WpfApplication2.Window1&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;xmlns&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&gt;&lt;font color="#0000ff"&gt;&lt;u&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;xmlns:x&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;a href="http://schemas.microsoft.com/winfx/2006/xaml"&gt;&lt;font color="#0000ff"&gt;&lt;u&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;xmlns:local&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;clr-namespace:WpfApplication2&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Title&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;Window1&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Height&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;300&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Width&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;300&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Grid&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Grid.CommandBindings&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;CommandBinding&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Command&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;local:AppCommands.Find&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;CanExecute&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;CanFind&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Executed&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;CommandBinding_OnExecuted&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Grid.CommandBindings&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;StackPanel&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;TextBox&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Name&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;textBox1&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Button&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Command&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;local:AppCommands.Find&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#ff0000"&gt;Name&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;mso-highlight:yellow;"&gt;&lt;font style="background-color:#ffff00;" color="#0000ff"&gt;=&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;font-size:;mso-highlight:yellow;"&gt;&lt;font style="background-color:#ffff00;"&gt;&lt;font style="font-size:10pt;"&gt;&amp;quot;&lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;{x:Static local:Window1.MyControlName}&lt;/font&gt;&lt;/span&gt;&amp;quot;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;/&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;StackPanel&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;tab-stops:140.25pt;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Grid&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;mso-themecolor:dark2;"&gt;&lt;span style="mso-tab-count:1;"&gt;&lt;font style="font-size:10pt;" color="#1f497d"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font style="font-size:10pt;"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#a31515"&gt;Window&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:10pt;" color="#0000ff"&gt;&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;…&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font color="#0000ff"&gt;&lt;font style="font-size:10pt;"&gt;namespace&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:10pt;"&gt; WpfApplication2&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color:;"&gt;&lt;font color="#808080"&gt;///&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#008000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#808080"&gt;&amp;lt;summary&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color:;"&gt;&lt;font color="#808080"&gt;///&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#008000"&gt; Interaction logic for Window1.xaml&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color:;"&gt;&lt;font color="#808080"&gt;///&lt;/font&gt;&lt;/span&gt;&lt;span style="color:;"&gt;&lt;font color="#008000"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#808080"&gt;&amp;lt;/summary&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;partial&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;class&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#2b91af"&gt;Window1&lt;/font&gt;&lt;/span&gt; : &lt;/font&gt;&lt;span style="color:;"&gt;&lt;font style="font-size:10pt;" color="#2b91af"&gt;Window&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160; {&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;text-autospace:;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font face="Courier New"&gt;&lt;font style="font-size:10pt;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;static&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;readonly&lt;/font&gt;&lt;/span&gt; &lt;span style="color:;"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;/span&gt; &lt;span style="mso-highlight:yellow;"&gt;&lt;font style="background-color:#ffff00;"&gt;MyControlName&lt;/font&gt;&lt;/span&gt; = &lt;span style="color:;"&gt;&lt;font color="#a31515"&gt;&amp;quot;name&amp;quot;&lt;/font&gt;&lt;/span&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;Gives this compilation error&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Courier New"&gt;&lt;span style="font-family:;font-size:;"&gt;&lt;font style="font-size:8pt;"&gt;c:\Dev\.NET\WpfApplication2\WpfApplication2\Window1.xaml(17,21): &lt;/font&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:;color:;font-size:;"&gt;&lt;font style="font-size:14pt;" color="#ff0000"&gt;error MC3079: MarkupExtensions are not allowed for Uid or Name property values, so '{x:Static local:Window1.MyControlName}' is not valid. Line 17 Position 21.&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-align:;line-height:normal;list-style-type:disc;margin-top:0cm;margin-left:0cm;margin-right:0cm;" class="MsoNormal" align="left"&gt;&lt;font face="Calibri"&gt;&lt;font style="font-size:11pt;"&gt;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://consultingblogs.emc.com/aggbug.aspx?PostID=18218" width="1" height="1"&gt;</description><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx">code</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx">Gotcha</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx">.NET 3.5</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx">WPF</category><category domain="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx">.NET4.0</category></item></channel></rss>
