<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://consultingblogs.emc.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Merrick Chaffer's Blog</title><subtitle type="html" /><id>http://consultingblogs.emc.com/merrickchaffer/atom.aspx</id><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/default.aspx" /><link rel="self" type="application/atom+xml" href="http://consultingblogs.emc.com/merrickchaffer/atom.aspx" /><generator uri="http://communityserver.org" version="2.1.20423.1">Community Server</generator><updated>2011-02-11T09:33:42Z</updated><entry><title>My blog is moving!!!</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/23/my-blog-is-moving.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/23/my-blog-is-moving.aspx</id><published>2011-03-23T10:05:28Z</published><updated>2011-03-23T10:05:28Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /></entry><entry><title>MSB3247: Found conflicts between different versions of the same dependent assembly.</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/22/msb3247-found-conflicts-between-different-versions-of-the-same-dependent-assembly.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/22/msb3247-found-conflicts-between-different-versions-of-the-same-dependent-assembly.aspx</id><published>2011-03-22T16:13:05Z</published><updated>2011-03-22T16:13:05Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="C#" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx" /><category term="code" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx" /><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /><category term="msbuild" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/msbuild/default.aspx" /><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /></entry><entry><title>How to Reboot Machine While Connected Through Remote Desktop</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/15/how-to-reboot-machine-while-connected-through-remote-desktop.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/15/how-to-reboot-machine-while-connected-through-remote-desktop.aspx</id><published>2011-03-15T13:13:00Z</published><updated>2011-03-15T13:13:00Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /><category term="Windows 7" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Windows+7/default.aspx" /></entry><entry><title>Handbrake settings for video conversion to HTC Touch HD phone</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/10/handbrake-settings-for-video-conversion-to-htc-touch-hd-phone.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/10/handbrake-settings-for-video-conversion-to-htc-touch-hd-phone.aspx</id><published>2011-03-10T10:22:44Z</published><updated>2011-03-10T10:22:44Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /><category term="Media Streaming" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Media+Streaming/default.aspx" /></entry><entry><title>Inbox repair tool</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/04/inbox-repair-tool.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/04/inbox-repair-tool.aspx</id><published>2011-03-04T15:26:01Z</published><updated>2011-03-04T15:26:01Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author></entry><entry><title>Microsoft Tech Days</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/02/microsoft-tech-days.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/03/02/microsoft-tech-days.aspx</id><published>2011-03-02T16:19:56Z</published><updated>2011-03-02T16:19:56Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term=".NET" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx" /><category term="code" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx" /><category term="teched" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/teched/default.aspx" /><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /><category term=".NET4.0" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx" /></entry><entry><title>ElementHost rendering issues with the Windows Aero theme enabled</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/elementhost-rendering-issues-with-the-windows-aero-theme-enabled.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/elementhost-rendering-issues-with-the-windows-aero-theme-enabled.aspx</id><published>2011-02-23T13:42:19Z</published><updated>2011-02-23T13:42:19Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="C#" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx" /><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /><category term=".NET 3.5" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx" /><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /><category term="WPF" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx" /><category term=".NET4.0" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx" /></entry><entry><title>Problems installing Windows 7 Service pack 1</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/problems-installing-windows-7-service-pack-1.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/23/problems-installing-windows-7-service-pack-1.aspx</id><published>2011-02-23T13:37:18Z</published><updated>2011-02-23T13:37:18Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /><category term="Howto" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Howto/default.aspx" /><category term="Windows 7" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Windows+7/default.aspx" /></entry><entry><title>Virtualization in WPF with VirtualizingStackPanel</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/14/virtualization-in-wpf-with-virtualizingstackpanel.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/14/virtualization-in-wpf-with-virtualizingstackpanel.aspx</id><published>2011-02-14T11:13:55Z</published><updated>2011-02-14T11:13:55Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="C#" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx" /><category term=".NET" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET/default.aspx" /><category term="code" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx" /><category term=".NET 3.5" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx" /><category term="WPF" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx" /><category term=".NET4.0" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx" /></entry><entry><title>Not able to bind to Uid or Name property in XAML</title><link rel="alternate" type="text/html" href="http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/11/not-able-to-bind-to-uid-or-name-property-in-xaml.aspx" /><id>http://consultingblogs.emc.com/merrickchaffer/archive/2011/02/11/not-able-to-bind-to-uid-or-name-property-in-xaml.aspx</id><published>2011-02-11T09:33:42Z</published><updated>2011-02-11T09:33:42Z</updated><content type="html">&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;</content><author><name>merrick.chaffer</name><uri>http://consultingblogs.emc.com/members/merrick.chaffer.aspx</uri></author><category term="Microsoft" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Microsoft/default.aspx" /><category term="C#" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/C_2300_/default.aspx" /><category term="code" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/code/default.aspx" /><category term="Gotcha" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/Gotcha/default.aspx" /><category term=".NET 3.5" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET+3.5/default.aspx" /><category term="WPF" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/WPF/default.aspx" /><category term=".NET4.0" scheme="http://consultingblogs.emc.com/merrickchaffer/archive/tags/.NET4.0/default.aspx" /></entry></feed>
