<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-61023199121463803</id><updated>2025-11-14T07:59:26.036-08:00</updated><category term="wpf"/><category term="xaml"/><category term="c#"/><category term="resources"/><category term="silverlight"/><category term="Windows 8"/><category term="animations"/><category term="expression blend"/><category term="Windows Store App"/><category term="bug"/><category term="cursor"/><category term="datagrid"/><category term="datatemplate"/><category term="graphics"/><category term="image"/><category term="visual studio"/><category term="Basics"/><category term="ContentControl"/><category term="Silverlight ComboBox Controls"/><category term="Wii"/><category term="Windows Phone 7"/><category term="azure"/><category term="best practice"/><category term="bitmapImage"/><category term="break point"/><category term="checkbox"/><category term="clearType"/><category term="cloud"/><category term="command line"/><category term="custom"/><category term="date"/><category term="dateTime"/><category term="db"/><category term="debugging"/><category term="design"/><category term="dialog"/><category term="dispatcherTimer"/><category term="dropshadow"/><category term="effects"/><category term="entity"/><category term="error"/><category term="event handler"/><category term="events"/><category term="exception"/><category term="expression design"/><category term="fonts"/><category term="format"/><category term="listbox"/><category term="media"/><category term="messageDialog"/><category term="messagebox"/><category term="mouse"/><category term="music"/><category term="panels"/><category term="remoting"/><category term="string"/><category term="stringFormat"/><category term="tab control"/><category term="timer"/><category term="vista"/><title type='text'>hmaprk&#39;s GUI Blog</title><subtitle type='html'>All about GUI&#39;s, WPF and Silverlight</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>75</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-5105990962889459076</id><published>2014-04-27T20:00:00.000-07:00</published><updated>2014-04-27T20:00:15.182-07:00</updated><title type='text'></title><content type='html'>I recently upgraded to Windows Phone 8.1 Developer Preview.&lt;br /&gt;
&lt;br /&gt;
I love it! This is the best WP release to date. There is one problem I’ve run into that has been driving me nuts for the past few days. I finally found a fix for it, so I thought I would share it.&lt;br /&gt;
A lot of people are experiencing this issue. After upgrading, I was getting an error every time I tried to surf the web on my phone. The strange thing was that I was still connected to the internet. All my apps got their data (email, facebook, etc), but whenever I used the browser, I would get an error.&lt;br /&gt;
&lt;br /&gt;
After a lot of searching, I found the solution here:&lt;br /&gt;
&lt;a href=&quot;http://forums.wpcentral.com/windows-phone-8-1-preview-developers/275515-2.htm&quot; title=&quot;http://forums.wpcentral.com/windows-phone-8-1-preview-developers/275515-2.htm&quot;&gt;http://forums.wpcentral.com/windows-phone-8-1-preview-developers/275515-2.htm&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
The basic steps are:&lt;br /&gt;
1)Go to settings&amp;gt; Access Point&lt;br /&gt;
2)Write down all the settings from your current access point (tap and hold acces point and choose view to see settings)&lt;br /&gt;
3)Go back and create a new access point&lt;br /&gt;
4)Copy all the original access point settings to your new access point, but leave the proxy and port fields blank&lt;br /&gt;
5)Set your new access point as the active access point.&lt;br /&gt;
6)Start surfing the web!&lt;br /&gt;
&lt;br /&gt;
I just got this working on my phone, and so far, so good. Only time will tell if the solution sticks, but from what I’m seeing out there… it works.&lt;br /&gt;
&lt;br /&gt;
I hope this helps!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;wlWriterEditableSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:882b36c6-f54c-40f0-96d1-5274a4e88ddc&quot; style=&quot;display: inline; float: none; margin: 0px; padding: 0px;&quot;&gt;
Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/wp8&quot; rel=&quot;tag&quot;&gt;wp8&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/windows+phone+8.1&quot; rel=&quot;tag&quot;&gt;windows phone 8.1&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/ie&quot; rel=&quot;tag&quot;&gt;ie&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/bug&quot; rel=&quot;tag&quot;&gt;bug&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/dns+error&quot; rel=&quot;tag&quot;&gt;dns error&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/5105990962889459076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2014/04/i-recently-upgraded-to-windows-phone-8.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5105990962889459076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5105990962889459076'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2014/04/i-recently-upgraded-to-windows-phone-8.html' title=''/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-2633858568933326451</id><published>2014-03-11T09:49:00.001-07:00</published><updated>2014-03-11T09:49:50.276-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="media"/><category scheme="http://www.blogger.com/atom/ns#" term="music"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8"/><title type='text'>Windows Phone–Removing Duplicate Songs and/or Albums</title><content type='html'>&lt;p&gt;Time for another post that has nothing to do with development…&lt;/p&gt;  &lt;p&gt;If you own a Windows Phone, you have probably seen duplicate songs or albums in your music library. This can be a very frustrating bug to deal with and it is difficult to fix. It would be nice if you could simple select a track or album and delete it right from your phone. Unfortunately, Microsoft does not allow us to do that. It would even be great if connecting the phone to your computer and deleting it files in the file browser or via the Windows Phone app would take care of it for you. Well… no. That doesn’t always work. After struggling with this for a little while, I found a solution that worked for me. Hopefully it works for you too if you are in the same boat. Here is what I did to remove the duplicate songs.&lt;/p&gt;  &lt;p&gt;-Connect the phone to your computer with the usb cable and open it up in Windows Explorer.&lt;/p&gt;  &lt;p&gt;-Locate the Music folder.&lt;/p&gt;  &lt;p&gt;-Select View &amp;gt; Show Hidden Files (from the toolbar or ribbon control depending on what os you are running)&lt;/p&gt;  &lt;p&gt;-Once you are seeing the hidden files, you should see an Artists folder that contains a file for each artist in your collection. Find the artist that has the duplicate files and erase that file.&lt;/p&gt;  &lt;p&gt;-Navigate to that artist’s corresponding music files directory on your phone and delete those files.&lt;/p&gt;  &lt;p&gt;-Copy the music files from your music library on your pc back onto your phone. This should re-generate that file you previously deleted under the hidden Artists directory. This is the file that tells your phone what files to display.&lt;/p&gt;  &lt;p&gt;That should do it. You can now disconnect your phone and see no more duplicate files (or at least that worked for me).&lt;/p&gt;  &lt;p&gt;Good luck!&lt;/p&gt;  &lt;div id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:ddbf44a3-aaf4-4be1-83e5-4967dcbf3cfa&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/WP8&quot; rel=&quot;tag&quot;&gt;WP8&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Windows+phone&quot; rel=&quot;tag&quot;&gt;Windows phone&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/music&quot; rel=&quot;tag&quot;&gt;music&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/duplicate+files&quot; rel=&quot;tag&quot;&gt;duplicate files&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/windows+music&quot; rel=&quot;tag&quot;&gt;windows music&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/2633858568933326451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2014/03/windows-phoneremoving-duplicate-songs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/2633858568933326451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/2633858568933326451'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2014/03/windows-phoneremoving-duplicate-songs.html' title='Windows Phone–Removing Duplicate Songs and/or Albums'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-3145753371856700571</id><published>2014-03-07T15:01:00.001-08:00</published><updated>2014-03-07T15:01:06.124-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="azure"/><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="db"/><category scheme="http://www.blogger.com/atom/ns#" term="entity"/><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="exception"/><title type='text'>OutOfRangeInput Error in Azure</title><content type='html'>&lt;p&gt;I’m fairly new to Azure programming. Maybe this is obvious to everyone out there, but it wasn’t obvious to me, so I figured I’d record it on my blog for all you newbies out there like me.&lt;/p&gt;  &lt;p&gt;I have been working on a simple application that stores data in a table in Azure. Because I am new to Azure table storage, I followed a few online tutorials to get started. Here is one of the ones I read.&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.windowsazure.com/en-us/documentation/articles/storage-dotnet-how-to-use-table-storage-20/&quot; href=&quot;http://www.windowsazure.com/en-us/documentation/articles/storage-dotnet-how-to-use-table-storage-20/&quot;&gt;http://www.windowsazure.com/en-us/documentation/articles/storage-dotnet-how-to-use-table-storage-20/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I made a few basic changes to my code rather than copying it word for word. When I tried to run my app, I kept getting a &lt;/p&gt;  &lt;p&gt;StorageException - The remote server returned an error: (400) Bad Request. &lt;/p&gt;  &lt;p&gt;every time I tried to insert a new row in the table. The samples were so simple and I thought I followed them closely. I spent a couple of hours trying to figure out what was going on, and I finally stumbled upon the answer. This took WAY TOO MUCH time to figure out, so I hope this helps you out in your development.&lt;/p&gt;  &lt;p&gt;So here is the deal…&lt;/p&gt;  &lt;p&gt;When I created my entity that I was going to insert, I had a DateTime.Now.ToString as part of the row key in the entity. It turns out you can’t use that in partition keys or row keys. When you are running on Azure, the format for the date is “YYYY/MM/DD”. The ‘/’ character is not permitted in row keys or partition keys.&lt;/p&gt;  &lt;p&gt;Once I removed that, everything worked smoothly. &lt;/p&gt;  &lt;p&gt;It was a simple error, but like I said before, it took way too long to figure out.&lt;/p&gt;  &lt;p&gt;Happy Coding Folks!&lt;/p&gt;  &lt;div id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:358ad184-f0c9-40c3-9808-12172dcee852&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/db&quot; rel=&quot;tag&quot;&gt;db&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/azure&quot; rel=&quot;tag&quot;&gt;azure&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/cloud&quot; rel=&quot;tag&quot;&gt;cloud&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/table+storage&quot; rel=&quot;tag&quot;&gt;table storage&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/OutOfRangeInput&quot; rel=&quot;tag&quot;&gt;OutOfRangeInput&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/partition+key&quot; rel=&quot;tag&quot;&gt;partition key&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/row+key&quot; rel=&quot;tag&quot;&gt;row key&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/storageException&quot; rel=&quot;tag&quot;&gt;storageException&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/bad+request&quot; rel=&quot;tag&quot;&gt;bad request&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/entity&quot; rel=&quot;tag&quot;&gt;entity&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/3145753371856700571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2014/03/outofrangeinput-error-in-azure.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3145753371856700571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3145753371856700571'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2014/03/outofrangeinput-error-in-azure.html' title='OutOfRangeInput Error in Azure'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-4045461588292496746</id><published>2013-07-10T10:33:00.001-07:00</published><updated>2013-07-10T10:33:18.605-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bug"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><title type='text'>WPF–SoundPlayer Bug</title><content type='html'>&lt;p&gt;Here is an interesting one. I was using the SoundPlayerAction in WPF to plan a small .wav file when a view was loaded, and I noticed that sometimes I would get a very strange screeching sound while the audio was playing. This did not happen all the time, but it happened enough that it needed to be fixed. The bug was more apparent on certain machines than others. After some digging around, I found out it had to do with the Garbage Collector of all things.&amp;#160; Essentially, the GC automatically decides to start moving the bytes used in the sound file before it’s done playing the file. This causes the annoying screeching sound. So how did I fix this issue? The solution that worked for me was to simply change the build action on my sound files from resource to content. I then had to change all my references to my audio files to use the correct format (from pack://application to pack://siteoforigin) and that took care of the issue. This bug only presents itself when trying to play audio from embedded resources. If playing directly from a file, you should not have the same problem.&lt;/p&gt;  &lt;p&gt;Here are the links I found explaining more about the bug and how to get around it.&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://social.msdn.microsoft.com/Forums/vstudio/en-US/9c8bf569-3469-49d8-9f2a-8246ee40477c/soundplayeraction-plays-crazy-noise&quot; href=&quot;http://social.msdn.microsoft.com/Forums/vstudio/en-US/9c8bf569-3469-49d8-9f2a-8246ee40477c/soundplayeraction-plays-crazy-noise&quot;&gt;http://social.msdn.microsoft.com/Forums/vstudio/en-US/9c8bf569-3469-49d8-9f2a-8246ee40477c/soundplayeraction-plays-crazy-noise&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title=&quot;http://www.codeproject.com/Articles/13909/SoundPlayer-bug-Calling-unmanaged-APIs&quot; href=&quot;http://www.codeproject.com/Articles/13909/SoundPlayer-bug-Calling-unmanaged-APIs&quot;&gt;http://www.codeproject.com/Articles/13909/SoundPlayer-bug-Calling-unmanaged-APIs&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Happy Screech-Free Coding!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:01ea9ab3-cf01-4812-9a9c-46f0f3ac523c&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/soundPlayer&quot; rel=&quot;tag&quot;&gt;soundPlayer&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/bug&quot; rel=&quot;tag&quot;&gt;bug&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/screeching&quot; rel=&quot;tag&quot;&gt;screeching&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/sound&quot; rel=&quot;tag&quot;&gt;sound&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/audio&quot; rel=&quot;tag&quot;&gt;audio&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/embedded+resource&quot; rel=&quot;tag&quot;&gt;embedded resource&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/.wav+bug&quot; rel=&quot;tag&quot;&gt;.wav bug&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/play+sound&quot; rel=&quot;tag&quot;&gt;play sound&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/audio+problem&quot; rel=&quot;tag&quot;&gt;audio problem&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/4045461588292496746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/07/wpfsoundplayer-bug.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4045461588292496746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4045461588292496746'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/07/wpfsoundplayer-bug.html' title='WPF–SoundPlayer Bug'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-3229777157726967115</id><published>2013-06-05T13:37:00.001-07:00</published><updated>2013-06-05T13:37:44.944-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="listbox"/><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>Keeping the Selection Color in a WPF Listbox When it Loses Focus</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;There are a lot of blog posts out there telling you to change the the ControlBrush resource of a listbox in order to maintain the selection color when the listbox item loses focus. This does not work. &lt;/p&gt;  &lt;p&gt;If you want to set the color of the background when an item is selected, you need to change the HighlightBrush. If you want that color to persist even after the item loses focus, you need to change the InactiveSelectionHighlightBrush.&lt;/p&gt;  &lt;p&gt;Hope this helps. Happy Coding!&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;ListBox.Resources&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;SolidColorBrush &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;Static &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;SystemColors&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;.HighlightBrushKey}&amp;quot;&lt;br /&gt;                             &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;Black&amp;quot;/&amp;gt;&lt;br /&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;SolidColorBrush &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;Static &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;SystemColors&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;.InactiveSelectionHighlightBrushKey}&amp;quot;&lt;br /&gt;                             &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Color&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;Black&amp;quot;/&amp;gt;&lt;br /&gt;            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;ListBox.Resources&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:279399d6-b04d-4aee-85d5-f3d809290d52&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/listbox&quot; rel=&quot;tag&quot;&gt;listbox&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/resources&quot; rel=&quot;tag&quot;&gt;resources&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/HighlightBrushKey&quot; rel=&quot;tag&quot;&gt;HighlightBrushKey&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/InactiveSelectionHighlightBrushKey&quot; rel=&quot;tag&quot;&gt;InactiveSelectionHighlightBrushKey&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/Style&quot; rel=&quot;tag&quot;&gt;Style&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/3229777157726967115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/06/keeping-selection-color-in-wpf-listbox.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3229777157726967115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3229777157726967115'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/06/keeping-selection-color-in-wpf-listbox.html' title='Keeping the Selection Color in a WPF Listbox When it Loses Focus'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-3539152439642709750</id><published>2013-05-29T11:50:00.001-07:00</published><updated>2013-05-29T11:50:07.159-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="clearType"/><category scheme="http://www.blogger.com/atom/ns#" term="dropshadow"/><category scheme="http://www.blogger.com/atom/ns#" term="effects"/><category scheme="http://www.blogger.com/atom/ns#" term="fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>WPF Effects and Blurry Fonts</title><content type='html'>&lt;p&gt;I recently ran into a very strange bug that took me a while to figure out. I noticed that several buttons in my UI had blurry text. I thought I may have mistakenly changed the opacity or had some semi-transparent gradient overlaying the font that made it look so blurry. That did not turn out to be the case. After digging around a bit I found out what was causing the problem. It turns out that the problem was in my control template. I defined the button to have a border which contains a label inside it’s content. I applied the drop shadow to the outer border and was surprised to find that applying that effect to the border caused the contents of the border to become blurry. After a little research I found that using an effect causes the elements and all the sub-elements inside the control to be rendered into a Bitmap. When this happens, WPF cannot use ClearType rendering to display the text. This causes it to look blurrier than if there is not effect applied.&lt;/p&gt;  &lt;p&gt;Here is what my buttons looked like with the drop shadow &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-T3jccxEg9u0/UaZN2l45uGI/AAAAAAAAB-U/OJ6F8jKVYXo/s1600-h/image%25255B22%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-WSy_p3DWYpY/UaZN28-u68I/AAAAAAAAB-c/xe5bizyCPUc/image_thumb%25255B10%25255D.png?imgmax=800&quot; width=&quot;114&quot; height=&quot;31&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;And here is the same button without the drop shadow&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-jewIjbMlHAM/UaZN3QQi5BI/AAAAAAAAB-g/jMP5c8QGzUc/s1600-h/image%25255B23%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-jEI_2GdiZJY/UaZN3SNACqI/AAAAAAAAB-s/cml1evh8hKU/image_thumb%25255B11%25255D.png?imgmax=800&quot; width=&quot;91&quot; height=&quot;32&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To get around this bug simply place the text outside of the control that you will be applying the effect to.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;&amp;lt;Border&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Effect&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; …         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Effect&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Text=”Blurry Text”/&amp;gt;         &lt;br /&gt;&amp;lt;/Border&amp;gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color=&quot;#000000&quot;&gt;//Change the code above to this.&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color=&quot;#004000&quot;&gt;&amp;lt;Grid&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Border.Effect&amp;gt;         &lt;br /&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; …         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border.Effect&amp;gt;         &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/Border&amp;gt;         &lt;br /&gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;TextBlock Text=”Clear Text”/&amp;gt;         &lt;br /&gt;&amp;lt;/Grid&amp;gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;If you run into this issue, just change your code like what I did above and you should have clear text on your buttons even if you are using effects.&lt;/p&gt;  &lt;p&gt;Happy Coding.&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b0a51c7c-9760-4886-8a2b-9125b3fec34a&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/effects&quot; rel=&quot;tag&quot;&gt;effects&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/font&quot; rel=&quot;tag&quot;&gt;font&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/wpf+effects&quot; rel=&quot;tag&quot;&gt;wpf effects&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/cleartype&quot; rel=&quot;tag&quot;&gt;cleartype&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/blurr&quot; rel=&quot;tag&quot;&gt;blurr&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/drop+shadow&quot; rel=&quot;tag&quot;&gt;drop shadow&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/wpf+font+bug&quot; rel=&quot;tag&quot;&gt;wpf font bug&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/3539152439642709750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/05/wpf-effects-and-blurry-fonts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3539152439642709750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3539152439642709750'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/05/wpf-effects-and-blurry-fonts.html' title='WPF Effects and Blurry Fonts'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-WSy_p3DWYpY/UaZN28-u68I/AAAAAAAAB-c/xe5bizyCPUc/s72-c/image_thumb%25255B10%25255D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-1645384927464170061</id><published>2013-04-16T12:27:00.001-07:00</published><updated>2013-04-16T12:27:27.922-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="animations"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>Using Animated Gifs with WPF</title><content type='html'>&lt;p&gt;Ever wish you could use an animated gif in your WPF application? Well, here is an easy way to do so. Simply use the WpfAnimatedGif Nuget package available on codeplex. With that library, you can easily display animated GIFs in your application via XAML or code.&lt;/p&gt;  &lt;p&gt;Here is what the markup looks like…&lt;/p&gt;  &lt;p&gt;…&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: red&quot;&gt; xmlns&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&lt;a href=&quot;http://wpfanimatedgif.codeplex.com&quot;&gt;http://wpfanimatedgif.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;…&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;ImageBehavior.AnimatedSource&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;Images/myImage.gif&amp;quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Head over to &lt;a href=&quot;http://wpfanimatedgif.codeplex.com/&quot;&gt;http://wpfanimatedgif.codeplex.com/&lt;/a&gt; for more info.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Happy Coding!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:91547613-51cf-43fe-9120-779250cfdcd5&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/gif&quot; rel=&quot;tag&quot;&gt;gif&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/animated+gif&quot; rel=&quot;tag&quot;&gt;animated gif&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/wpf+animated+gif&quot; rel=&quot;tag&quot;&gt;wpf animated gif&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/nuget&quot; rel=&quot;tag&quot;&gt;nuget&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/image+source&quot; rel=&quot;tag&quot;&gt;image source&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/1645384927464170061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/using-animated-gifs-with-wpf.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1645384927464170061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1645384927464170061'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/using-animated-gifs-with-wpf.html' title='Using Animated Gifs with WPF'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-1173921333229155886</id><published>2013-04-15T08:40:00.001-07:00</published><updated>2013-04-15T08:40:08.800-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><title type='text'>Iterate through Dictionary Entries in Merged Dictionaries</title><content type='html'>&lt;p&gt;Just a quick post to show you how to iterate through resource dictionary entries when using merged resource dictionaries. It is fairly straight forward. I came across someone wondering how to do this, so I thought I’d share. You simply iterate through all your merged dictionaries and then iterate through each dictionary entry in the dictionary. Here is the code below.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;foreach &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ResourceDictionary &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;dict &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;Application&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;.Current.Resources.MergedDictionaries)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;     foreach &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DictionaryEntry &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;entry &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;dict)&lt;br /&gt;     {&lt;br /&gt;          //Process entry     &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;&lt;br /&gt;     }&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2a473ce0-5a1d-4bce-82ea-9e98d1b62897&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/resource+dictionary&quot; rel=&quot;tag&quot;&gt;resource dictionary&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/resources&quot; rel=&quot;tag&quot;&gt;resources&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/merged+resource+dictionaries&quot; rel=&quot;tag&quot;&gt;merged resource dictionaries&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/MergedDictionaries&quot; rel=&quot;tag&quot;&gt;MergedDictionaries&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/DictionaryEntry&quot; rel=&quot;tag&quot;&gt;DictionaryEntry&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/1173921333229155886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/iterate-through-dictionary-entries-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1173921333229155886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1173921333229155886'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/iterate-through-dictionary-entries-in.html' title='Iterate through Dictionary Entries in Merged Dictionaries'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-7579535330155441748</id><published>2013-04-01T11:38:00.001-07:00</published><updated>2013-04-01T11:38:20.165-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dialog"/><category scheme="http://www.blogger.com/atom/ns#" term="messagebox"/><category scheme="http://www.blogger.com/atom/ns#" term="messageDialog"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Store App"/><title type='text'>MessageDialog - Windows Store App MessageBox.Show Equivalent.</title><content type='html'>&lt;p&gt;If you are new to Windows Store app development, you may be wondering how to show a simple dialog. It used to be so easy. You simply called MessageBox.Show() and you had a dialog. Well, in Windows Store Applications in Windows 8, it is a bit different but just as easy.&lt;/p&gt;  &lt;p&gt;Try this code instead of MessageBox.Show to get the following dialog…&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;var &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;messageDialog = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;Windows.UI.Popups.&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;MessageDialog&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;&amp;quot;Message Text.&amp;quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;&amp;quot;Message Header&amp;quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;);&lt;br /&gt;                messageDialog.ShowAsync();&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/-oVeqCMAb-Ts/UVnUGKA1AFI/AAAAAAAAB8I/9MoUGH1lfq4/s1600-h/image%25255B4%25255D.png&quot;&gt;&lt;img title=&quot;image&quot; style=&quot;border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh5.ggpht.com/-OMCVXHyYB-I/UVnUGzdgTfI/AAAAAAAAB8Q/7Dy9MpqqQng/image_thumb%25255B8%25255D.png?imgmax=800&quot; width=&quot;556&quot; height=&quot;105&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Happy Windows Store App Coding!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:60684602-3207-4271-b689-1af602bd393b&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px&quot;&gt;LiveJournal Tags: &lt;a href=&quot;http://www.livejournal.com/interests.bml?int=MessageDialog&quot; rel=&quot;tag&quot;&gt;MessageDialog&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=Dialog&quot; rel=&quot;tag&quot;&gt;Dialog&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=DialogBox&quot; rel=&quot;tag&quot;&gt;DialogBox&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=MessageBox&quot; rel=&quot;tag&quot;&gt;MessageBox&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=Metro+Application&quot; rel=&quot;tag&quot;&gt;Metro Application&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=Windows+Store+App&quot; rel=&quot;tag&quot;&gt;Windows Store App&lt;/a&gt;,&lt;a href=&quot;http://www.livejournal.com/interests.bml?int=Windows+8&quot; rel=&quot;tag&quot;&gt;Windows 8&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/7579535330155441748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/messagedialog-windows-store-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/7579535330155441748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/7579535330155441748'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/04/messagedialog-windows-store-app.html' title='MessageDialog - Windows Store App MessageBox.Show Equivalent.'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/-OMCVXHyYB-I/UVnUGzdgTfI/AAAAAAAAB8Q/7Dy9MpqqQng/s72-c/image_thumb%25255B8%25255D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-6803682282623994806</id><published>2013-03-31T19:28:00.001-07:00</published><updated>2013-03-31T19:28:46.541-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 8"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Store App"/><title type='text'>Windows Store App… How to set focus on a textbox</title><content type='html'>&lt;p&gt;A common task in UI development is setting the focus on a textbox when navigating to a particular screen. When doing this on a Windows 8 application, a lot of developers try to do this inside the OnNavigatedTo event handler. This does not work. To set the focus on a textbox when the page is hit, call the focus method on the particular textbox inside the loaded event handler… That should do it.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;common&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;LayoutAwarePage&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;pageRoot&amp;quot;&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;…&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;Loaded&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;pageRoot_Loaded_1&amp;quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;private void &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;pageRoot_Loaded_1(&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;object &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;sender, &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;RoutedEventArgs &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;e)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;     &lt;/font&gt;this&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;.txtName.Focus(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;FocusState&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;.Programmatic);&lt;br /&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hope this helps. Happy Coding!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6a063b21-0640-4c44-8968-b417db91aa53&quot; class=&quot;wlWriterEditableSmartContent&quot; style=&quot;float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px&quot;&gt;IceRocket Tags: &lt;a href=&quot;http://blogs.icerocket.com/search?q=Windows+8&quot; rel=&quot;tag&quot;&gt;Windows 8&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=Windows+Store+App&quot; rel=&quot;tag&quot;&gt;Windows Store App&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=Metro+Application&quot; rel=&quot;tag&quot;&gt;Metro Application&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=LayoutAwarePage&quot; rel=&quot;tag&quot;&gt;LayoutAwarePage&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=Textbox+focus&quot; rel=&quot;tag&quot;&gt;Textbox focus&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=set+focus&quot; rel=&quot;tag&quot;&gt;set focus&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=FocusState&quot; rel=&quot;tag&quot;&gt;FocusState&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/6803682282623994806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/windows-store-app-how-to-set-focus-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6803682282623994806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6803682282623994806'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/windows-store-app-how-to-set-focus-on.html' title='Windows Store App… How to set focus on a textbox'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-3810461016353186686</id><published>2013-03-29T08:52:00.000-07:00</published><updated>2013-03-29T08:55:02.690-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="ContentControl"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>ChangeAwareContentControl–How to know when the content changes in a ContentControl</title><content type='html'>&lt;p&gt;I am working on an application where I have a ContentControl, and I need to know when the content changes. My initial thought was to add an event handler for the ContentChanged event. I came to find out that the ContentControl does not fire a ContentChanged event. &lt;/p&gt;  &lt;p&gt;My solution was to create a control derived from content control that fires that particular event. It is working quite nicely, so I thought I would share. I hope it helps you out. It’s a small amount of code, but it does the trick.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;    public class &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ChangeAwareContentControl &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ContentControl&lt;br /&gt;    &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;{&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;static &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;ChangeAwareContentControl()&lt;br /&gt;        {&lt;br /&gt;            ContentProperty.OverrideMetadata(&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ChangeAwareContentControl&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;),&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;FrameworkPropertyMetadata&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;br /&gt;                    &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;PropertyChangedCallback&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(OnContentChanged)));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;private static void &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;OnContentChanged(&lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DependencyObject &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;d,&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DependencyPropertyChangedEventArgs &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;e)&lt;br /&gt;        {&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ChangeAwareContentControl &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;mcc = d &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;ChangeAwareContentControl&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;;&lt;br /&gt;            &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;if &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(mcc.ContentChanged != &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;)&lt;br /&gt;            {&lt;br /&gt;                &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DependencyPropertyChangedEventArgs &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;args&lt;br /&gt;                    = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DependencyPropertyChangedEventArgs&lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;(&lt;br /&gt;                        ContentProperty, e.OldValue, e.NewValue);&lt;br /&gt;                mcc.ContentChanged(mcc, args);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;public event &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af&quot;&gt;DependencyPropertyChangedEventHandler &lt;/span&gt;&lt;span style=&quot;background: white; color: black&quot;&gt;ContentChanged;&lt;br /&gt;    }&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here is how you use it in xaml.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;controls&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515&quot;&gt;ChangeAwareContentControl &lt;/span&gt;&lt;span style=&quot;background: white; color: red&quot;&gt;ContentChanged&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;=&amp;quot;ContenChangedHandler&lt;/span&gt;&lt;span style=&quot;background: white; color: blue&quot;&gt;&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:36c00af4-1d51-4de5-bd86-e19e1f929952&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/contentControl&quot; rel=&quot;tag&quot;&gt;contentControl&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/content+control&quot; rel=&quot;tag&quot;&gt;content control&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/contentChanged&quot; rel=&quot;tag&quot;&gt;contentChanged&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/content+changed+event&quot; rel=&quot;tag&quot;&gt;content changed event&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/ChangeAwareContentControl&quot; rel=&quot;tag&quot;&gt;ChangeAwareContentControl&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/3810461016353186686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/contentcontrol-contentchangedevent.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3810461016353186686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/3810461016353186686'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/contentcontrol-contentchangedevent.html' title='ChangeAwareContentControl–How to know when the content changes in a ContentControl'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-7873116501638082168</id><published>2013-03-28T09:23:00.001-07:00</published><updated>2013-03-28T09:23:37.378-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bitmapImage"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="graphics"/><category scheme="http://www.blogger.com/atom/ns#" term="image"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><title type='text'>BitmapImage.BeginInit()</title><content type='html'>&lt;p&gt;A very common error new UI developers make is trying to create new BitmapImages without properly initializing them.&lt;/p&gt;  &lt;p&gt;All property changes made to a BitmapImage must be made between the BeginInit() and EndInit() calls. Every property change made after the EndInit() call is ignored.&lt;/p&gt;  &lt;p&gt;Here is a small code snippet on how to properly create a new bitmap image and set that as the source of an Image object.&lt;/p&gt;  &lt;pre&gt;// Define a BitmapImage.&lt;br /&gt;Image myImage = new Image();&lt;br /&gt;BitmapImage bi = new BitmapImage();&lt;br /&gt;&lt;br /&gt;// Begin initialization.&lt;br /&gt;bi.BeginInit();&lt;br /&gt;&lt;br /&gt;// Set BitmapImage properties. (CacheOption,CreateOptions… etc.)&lt;br /&gt;&lt;br /&gt;// End initialization.&lt;br /&gt;bi.EndInit();&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;myImage.Source = bi;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0ebee649-2a65-4084-9218-ae2274af48b2&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;43 Things Tags: &lt;a href=&quot;http://www.43things.com/tag/image&quot; rel=&quot;tag&quot;&gt;image&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/source&quot; rel=&quot;tag&quot;&gt;source&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/bitmapImage&quot; rel=&quot;tag&quot;&gt;bitmapImage&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/beginInit&quot; rel=&quot;tag&quot;&gt;beginInit&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/endInit&quot; rel=&quot;tag&quot;&gt;endInit&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/initialize&quot; rel=&quot;tag&quot;&gt;initialize&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/7873116501638082168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/bitmapimagebegininit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/7873116501638082168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/7873116501638082168'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/03/bitmapimagebegininit.html' title='BitmapImage.BeginInit()'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-4801047740698361032</id><published>2013-02-13T09:13:00.001-08:00</published><updated>2013-02-13T09:13:24.494-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="datagrid"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><title type='text'>How to Scroll to Selected Datagrid Item</title><content type='html'>&lt;p&gt;If you programmatically select an item on a WPF datagrid, you may need to scroll to make sure that item is visible. One line of code will take care of that for you.&lt;/p&gt;  &lt;p&gt;myGrid.ScrollIntoView(myGrid.SelectedItem);&lt;/p&gt;  &lt;p&gt;That should do it.&lt;/p&gt;  &lt;p&gt;Happy Coding!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9049d84d-4ad5-43a0-9b59-c613be091a5b&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/datagrid&quot; rel=&quot;tag&quot;&gt;datagrid&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/scroll&quot; rel=&quot;tag&quot;&gt;scroll&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/scrollIntoView&quot; rel=&quot;tag&quot;&gt;scrollIntoView&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/selection&quot; rel=&quot;tag&quot;&gt;selection&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/4801047740698361032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/how-to-scroll-to-selected-datagrid-item.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4801047740698361032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4801047740698361032'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/how-to-scroll-to-selected-datagrid-item.html' title='How to Scroll to Selected Datagrid Item'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-4583503702385561671</id><published>2013-02-12T09:01:00.001-08:00</published><updated>2013-02-12T09:01:04.842-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="checkbox"/><category scheme="http://www.blogger.com/atom/ns#" term="datagrid"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>WPF- What’s Going On With My DataGrid Checkbox?</title><content type='html'>&lt;p&gt;This is a very common mistake and I found myself committing it recently. &lt;/p&gt;  &lt;p&gt;Sometimes you will find yourself wanting to create a datagrid column that contains a checkbox. The simplest way of doing this is by defining a DataGridCheckBoxColumn.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridCheckBoxColumn &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsSelected&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;}&amp;quot;/&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;Verdana&quot;&gt;There are some situations when you might want to use a DataGridTemplateColumn instead because you want to tweak some visuals or add other controls inside the cell.&lt;/font&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;Verdana&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;font face=&quot;Verdana&quot;&gt;=&amp;quot;30&amp;quot;&amp;gt;&lt;/font&gt;&lt;br /&gt;     &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn.CellTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;          &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green&quot;&gt;               &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsChecked&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsSelected&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;}&amp;quot;/&amp;gt;&lt;br /&gt;          &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;     &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn.CellTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;When people do this, they sometimes find that the bindings don’t work properly. If they click on the checkbox, they notice that the property they are binding to (in this case IsSelected) does not update until you click somewhere else in the cell. Some people even miss this and just think the binding does not work at all. I ran across a case where a developer had two datagrid columns side by side, one was the DataGridCheckBoxColumn and the other one was a DataGridTemplateColumn like the ones above. The developer was convinced that something was going on because the binding was working for one and not the other.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you run into this, don’t worry. The binding is working. It’s just not updating the bound property at the correct time. To fix this, simply make the following tweak to the binding statement. This should now cause the property to change immediately once the checkbox is checked (once the IsChecked property changes).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;font face=&quot;Verdana&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;Width&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;font face=&quot;Verdana&quot;&gt;=&amp;quot;30&amp;quot;&amp;gt;&lt;/font&gt;&lt;br /&gt;     &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn.CellTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;          &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green&quot;&gt;               &lt;/span&gt;&lt;font style=&quot;background-color: #ffff00&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;CheckBox &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsChecked&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&amp;quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;Binding &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;IsSelected&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;UpdateSourceTrigger&lt;/span&gt;&lt;/font&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;font style=&quot;background-color: #ffff00&quot;&gt;=PropertyChanged}&amp;quot;/&amp;gt;&lt;/font&gt;&lt;br /&gt;          &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;     &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn.CellTemplate&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;DataGridTemplateColumn&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That’s it. Hope this helps.&lt;br /&gt;  &lt;br /&gt;Happy Coding!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:835c5cc8-72d7-4bcf-9557-9f6bac916c92&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/datagrid&quot; rel=&quot;tag&quot;&gt;datagrid&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/DataGridTemplateColumn&quot; rel=&quot;tag&quot;&gt;DataGridTemplateColumn&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/DataGridCheckBoxColumn&quot; rel=&quot;tag&quot;&gt;DataGridCheckBoxColumn&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/checkbox&quot; rel=&quot;tag&quot;&gt;checkbox&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/UpdateSourceTrigger&quot; rel=&quot;tag&quot;&gt;UpdateSourceTrigger&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/Data+Binding&quot; rel=&quot;tag&quot;&gt;Data Binding&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/CellTemplate&quot; rel=&quot;tag&quot;&gt;CellTemplate&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/DataTemplate&quot; rel=&quot;tag&quot;&gt;DataTemplate&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/4583503702385561671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/wpf-whats-going-on-with-my-datagrid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4583503702385561671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/4583503702385561671'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/wpf-whats-going-on-with-my-datagrid.html' title='WPF- What’s Going On With My DataGrid Checkbox?'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-8804573688971943402</id><published>2013-02-07T22:33:00.001-08:00</published><updated>2013-02-07T22:36:19.518-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>WPF Tooltip</title><content type='html'>Adding a tooltip to a control in WPF is pretty simple. Here is the basic syntax.&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Button&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;This is a tooltip&quot;/&amp;gt; &lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://lh6.ggpht.com/-4wovAOX5CeA/URScNotLy4I/AAAAAAAAB4c/GNmx-GY2y8I/s1600-h/image%25255B3%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;152&quot; src=&quot;http://lh3.ggpht.com/-sxIzoARAcQk/URScOC22geI/AAAAAAAAB4k/H4lMfXZSBFs/image_thumb%25255B4%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are various properties that can be adjusted to tweak the behavior of the tooltip. This is done via the TooltipService attached property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Button&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;This is a tooltip&quot;
                &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;ToolTipService.HasDropShadow&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;False&quot;&amp;gt;
            
&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The properties that can be tweaked on the TooltipService are:&lt;br /&gt;
&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 519px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;BetweenShowDelay&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;This value specifies how much time (in milliseconds) the user has to move from the control that is displaying the tooltip to another one without having to wait for it’s InitialShowDelay. Essentially, if I set this value to X, once I see the tooltip on my control, I have X milliseconds to hover over another control that has a tooltip and that other tooltip will show up immediately.&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;HasDropShadow&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Specifies if the tooltip has a dropshadow.&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;HorizontalOffset&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Offset from the left of the area that is specifies for the tooltip.&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;InitialShowDelay&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;How long it takes for the tooltip to open (in milliseconds).&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;IsEnabled&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Determines whether the tooltip gets displayed.&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;IsOpen&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Gets whether the tooltip is open.&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;Placement&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Sets the orientation of the tooltip when it opens&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;PlacementRectangle&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Gets or sets the rectangle area in which the tooltip is displayed&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;ShowDuration&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Specifies the amount of time the tooltip is displayed&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;ShowOnDisabled&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Specifies if the tooltip is displayed when the parent object is disabled&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;ToolTip&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Gets or sets the content of the tooltip&lt;br /&gt;
&amp;nbsp;&lt;/td&gt;    &lt;/tr&gt;
&lt;tr&gt;      &lt;td valign=&quot;top&quot; width=&quot;200&quot;&gt;&lt;br /&gt;
VerticalOffset&lt;/td&gt;      &lt;td valign=&quot;top&quot; width=&quot;317&quot;&gt;Offset from the top of the area that is specifies for the tooltip.&lt;/td&gt;    &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can any visual element as the content of a tooltip by defining in a nested element rather than an attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Button&quot;&amp;gt;            
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ToolTipService.ToolTip&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Rectangle &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Red&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;20&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;20&quot;/&amp;gt;
            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ToolTipService.ToolTip&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://lh6.ggpht.com/-CZnFM83rpBg/URScOR74ZqI/AAAAAAAAB4s/TKYf3kwN2C8/s1600-h/image%25255B7%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;194&quot; src=&quot;http://lh6.ggpht.com/-oBfvLJkJxAE/URScO54yCmI/AAAAAAAAB40/jHPcIBjLCfA/image_thumb%25255B9%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border: 0px currentColor; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Happy Tooltiping!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;wlWriterEditableSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:a8d6ad0e-bdad-4d5f-b54f-ef70022cee3c&quot; style=&quot;display: inline; float: none; margin: 0px; padding: 0px;&quot;&gt;
IceRocket Tags: &lt;a href=&quot;http://blogs.icerocket.com/search?q=wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=tooltip&quot; rel=&quot;tag&quot;&gt;tooltip&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=ToolTipService&quot; rel=&quot;tag&quot;&gt;ToolTipService&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=tooltip+service&quot; rel=&quot;tag&quot;&gt;tooltip service&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=betweenshowdelay&quot; rel=&quot;tag&quot;&gt;betweenshowdelay&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=verticalOffset&quot; rel=&quot;tag&quot;&gt;verticalOffset&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=attached+property&quot; rel=&quot;tag&quot;&gt;attached property&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=InitialShowDelay&quot; rel=&quot;tag&quot;&gt;InitialShowDelay&lt;/a&gt;,&lt;a href=&quot;http://blogs.icerocket.com/search?q=ShowDuration&quot; rel=&quot;tag&quot;&gt;ShowDuration&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/8804573688971943402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/wpf-tooltip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/8804573688971943402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/8804573688971943402'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/wpf-tooltip.html' title='WPF Tooltip'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-sxIzoARAcQk/URScOC22geI/AAAAAAAAB4k/H4lMfXZSBFs/s72-c/image_thumb%25255B4%25255D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-5063801667870461239</id><published>2013-02-05T18:15:00.001-08:00</published><updated>2013-02-05T18:22:04.812-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="datatemplate"/><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>The Basics: Intro to Windows Presentation Foundation</title><content type='html'>I have spoken to several developers this week who have heard of WPF, but have no experience with it. I have been working with this technology for so long, that I take it for granted. I decided to write a few blog posts specifically for those developers that are just starting out with WPF.&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;The Links        &lt;/u&gt;&lt;/strong&gt;&lt;em&gt;First, here are a few useful links to get you started      &lt;/em&gt;    &lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/expression/&quot; title=&quot;http://www.microsoft.com/expression/&quot;&gt;&lt;em&gt;http://www.microsoft.com/expression/&lt;/em&gt;&lt;/a&gt;     &lt;br /&gt;
download Microsoft Expression Blend&lt;br /&gt;
&lt;a href=&quot;http://www.microsoft.com/visualstudio/eng/products/visual-studio-overview&quot; title=&quot;http://www.microsoft.com/visualstudio/eng/products/visual-studio-overview&quot;&gt;http://www.microsoft.com/visualstudio/eng/products/visual-studio-overview&lt;/a&gt;&amp;nbsp; &lt;br /&gt;
go to express products to download the free version of Visual Studio&lt;br /&gt;
This is by far the &lt;strong&gt;Best &lt;/strong&gt;book for learning WPF. I highly recommend it     &lt;br /&gt;
&lt;iframe frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?lt1=_blank&amp;amp;bc1=FFFFFF&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=geegab0b-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=as1&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=qf_sp_asin_til&amp;amp;asins=0672328917&quot; style=&quot;height: 240px; width: 120px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Introduction        &lt;/u&gt;&lt;/strong&gt;Now that I&#39;ve used the term WPF several times, I should probably give a formal definition for it. As seen in the title of this blog post, WPF stands for Windows Presentation Foundation. So why use WPF when there are other options like Windows Forms out there? While there are many opinions out there, I believe the biggest benefit to using WPF is that it provides a clear separation between the application behavior and the user interface. Rather than defining the user interface in code like VB or C#, WPF introduces xaml (eXtensible Application Markup Language). This xml markup is used to define the user interface. When an application is built, the compiler reads the xaml (pronounced zammel) markup and generates the appropriate objects to construct the user interface.&lt;br /&gt;
Everything you can do in xaml you can do in code. You can create a WPF application without writing a single line of xaml, but that is not common. Declaring your user interface in xaml provides a cleaner separation between the look of the application and the behavior of the application. It also allows you to use the design tools (like Expression Blend) available for creating complex user interfaces. Also, xaml is much easier to read and a lot shorter than code.&lt;br /&gt;
&lt;strong&gt;C# / Xaml Comparison&lt;/strong&gt;&lt;br /&gt;
The following xaml and c# code both produce the same result – the following interface.&lt;br /&gt;
&lt;a href=&quot;http://lh4.ggpht.com/-v6WX78L5B8Y/URG8mGXaPxI/AAAAAAAAB2w/kq51b7xvA8s/s1600-h/image%25255B3%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;50&quot; src=&quot;http://lh4.ggpht.com/--y-r7cOJk_A/URG8msZcRdI/AAAAAAAAB24/lqD-9hZvvdQ/image_thumb%25255B9%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;xaml&lt;/strong&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;        
        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;My First WPF App&quot;/&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Hello World&quot;/&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;TextBox&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;            
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;C#&lt;/strong&gt;&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;            Grid &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;g = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;();
            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;s = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;();

            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;l = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;();
            l.Content = &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;&quot;My First WPF App&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;;

            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;b = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;();
            b.Content = &lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;&quot;Hello World&quot;&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;;

            &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;t = &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;background: white; color: #2b91af;&quot;&gt;TextBox&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;();

            &lt;/span&gt;&lt;span style=&quot;background: white; color: green;&quot;&gt;//populate stack panel
            &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;s.Children.Add(l);
            s.Children.Add(b);
            s.Children.Add(t);            

            &lt;/span&gt;&lt;span style=&quot;background: white; color: green;&quot;&gt;//add stackpanel to grid
            &lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;g.Children.Add(s);

            &lt;/span&gt;&lt;span style=&quot;background: white; color: green;&quot;&gt;//set application content
            &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt;.Content = g;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
From this small example you can clearly see that the C# code is much longer and more difficult to read than the equivalent xaml markup.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Xaml Basics&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
To initialize an object simply create a new xml element. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;TextBlock&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;TextBox&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ListBox&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . . .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;There are two ways of adding properties to elements: &lt;br /&gt;
&lt;br /&gt;
1)Inline &lt;br /&gt;
&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Horizontal&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Margin&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;2&quot;/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Click Me&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;50&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Width&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;100&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Hi&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;TextBox &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Text&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Enter text here&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ListBox &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;300&quot;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
2) As nested elements. This allows building more complex elements. &lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;50&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;100&quot;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Orientation&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Horizontal&quot;&amp;gt;
                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Click&quot;/&amp;gt;
                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Image &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Source&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;click_here.png&quot;/&amp;gt;
            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;The Visual Tree &lt;br /&gt;      &lt;/u&gt;&lt;/strong&gt;WPF introduces the notion of a visual tree and a logical tree. It is important to understand the difference between the two.&lt;br /&gt;
&lt;br /&gt;
When building a user interface, one can talk about the different elements that make up the interface. That is what is referred to as the logical tree.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;/&amp;gt;
    &lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;font-family: Verdana;&quot;&gt;The logical tree for this code is represented as&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;
&lt;a href=&quot;http://lh6.ggpht.com/-ZcgNVU8ETIc/URG8nFAYD5I/AAAAAAAAB3A/mergZ0yoIrA/s1600-h/image%25255B7%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;139&quot; src=&quot;http://lh5.ggpht.com/-UmHTJ4qfh5M/URG8ng7d4fI/AAAAAAAAB3I/LIpaAV5qP5w/image_thumb%25255B11%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;146&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&lt;span style=&quot;color: black; font-family: Verdana;&quot;&gt;The visual tree refers to the various visual elements that make up a logical element. The logical tree just for the button above is represented as:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;a href=&quot;http://lh3.ggpht.com/-C9oJKMh3wps/URG8n9wqx8I/AAAAAAAAB3Q/WuI8koPZgH0/s1600-h/image%25255B10%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;244&quot; src=&quot;http://lh5.ggpht.com/-TtLouwOrGz4/URG8pIoXkjI/AAAAAAAAB3Y/PbaL0EXzJPw/image_thumb%25255B12%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;131&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;
&lt;br /&gt;
This specifies, in great detail, how the button control is visually constructed. WPF gives developers the flexibility to completely redefine visual tree of any given control. This is done via Styles and Templates.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;Styles and Templates &lt;br /&gt;      &lt;/strong&gt;&lt;/u&gt;Here is where WPF development, in my opinion, really shines. Styles can be used to make reusable chunks of code that define visual properties of specific UI elements or a certain type of element. They are very similar to Cascading Style Sheets in web development. With styles, you can easily define the look for all the buttons within a given application as a single style and apply it globally.style&lt;br /&gt;
&lt;br /&gt;
Below I define 4 styles for Label controls. The first is the default style for all labels within scope. If a label is created within the scope of this style and no style is defined, it will pick up the properties defined by this style. Default styles are created in WPF by simply creating a style without giving it a Key (style identifier).&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;TargetType&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Type &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;}&quot;&amp;gt;
                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Foreground&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Red&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontWeight&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Bold&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontSize&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;40&quot;/&amp;gt;
                    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;

                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;TargetType&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Type &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;}&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;BigBlueStyle&quot;&amp;gt;
                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Foreground&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Blue&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontWeight&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Bold&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontSize&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;40&quot;/&amp;gt;
                    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;

                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;TargetType&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Type &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;}&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;LittleGreenStyle&quot;&amp;gt;
                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Foreground&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Green&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontWeight&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Bold&quot;/&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Setter &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Property&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;FontSize&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Value&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;10&quot;/&amp;gt;
                    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style.Setters&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
The second and third styles both have Keys. In order to use this style, the label must set the Style attribute using the following syntax.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;First Label&quot;/&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Second Label&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;DynamicResource &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;BigBlueStyle&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;}&quot;/&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Third Label&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Style&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;DynamicResource &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;LittleGreenStyle&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;}&quot;/&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Label &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Fourth Label&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Foreground&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Purple&quot;/&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
The product of this code looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://lh3.ggpht.com/-ppLkczF2lDI/URG8pZ-wGzI/AAAAAAAAB3g/3mClPpcWlMg/s1600-h/image%25255B15%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;232&quot; src=&quot;http://lh3.ggpht.com/-xky7W-3j4_I/URG8p2BqWpI/AAAAAAAAB3o/qk1rib3Isgs/image_thumb%25255B22%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;341&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Notice how the fourth label overrides the foreground color to purple.&lt;br /&gt;
&lt;br /&gt;
Templates are a bit different from styles. While styles allow you to set properties, templates allow you to redefine the visual tree of an element. There are two different kinds of templates used in WPF&lt;br /&gt;
&lt;br /&gt;
1)&lt;strong&gt;Datatemplate&lt;/strong&gt; – Used for describing how data should be displayed. This type of template is commonly used in list-based controls like listboxes or comboboxes. &lt;br /&gt;
&lt;br /&gt;
2)&lt;strong&gt;ControlTemplate&lt;/strong&gt; – Used for describing the appearance of a control.&lt;br /&gt;
&lt;br /&gt;
Simple example: &lt;br /&gt;
&lt;br /&gt;
In this example I change the visual tree of the button. This defines the button to be made up of a green grid with an inner stackpanel that has a textblock, a rectangle and a combobox. Note, the user can still interact with any of the elements inside the button like the combobox. This, in my opinion, is the single most powerful feature in WPF. Developers are completely free to redefine visual elements in inumerable ways to meet their needs.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;       &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;100&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;200&quot;&amp;gt;
            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button.Template&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Background&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Green&quot;&amp;gt;
                        &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel  &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;VerticalAlignment&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Center&quot;&amp;gt; 
                            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;TextBlock &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Click Me&quot;/&amp;gt;
                            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Rectangle &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Fill&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Black&quot; &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;30&quot; /&amp;gt;
                            &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                                &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBox.Items&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBoxItem &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Item One&quot;/&amp;gt;
                                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBoxItem &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Item Two&quot;/&amp;gt;
                                    &amp;lt;&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBoxItem &lt;/span&gt;&lt;span style=&quot;background: white; color: red;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;=&quot;Item Three&quot;/&amp;gt;
                                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBox.Items&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ComboBox&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;StackPanel&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;                        
                    &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Grid&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
                &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;ControlTemplate&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
            &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button.Template&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;
        &amp;lt;/&lt;/span&gt;&lt;span style=&quot;background: white; color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;background: white; color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;a href=&quot;http://lh3.ggpht.com/-SMieI2PvTtk/URG8qdAMwjI/AAAAAAAAB3w/nV8PWP2TtM4/s1600-h/image%25255B19%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;136&quot; src=&quot;http://lh6.ggpht.com/--5m47HOCIRM/URG8q-HdKtI/AAAAAAAAB34/xX2mOgkYWK0/image_thumb%25255B27%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://lh5.ggpht.com/-pwDUoKQCI5U/URG8rfV6nsI/AAAAAAAAB4A/mjpkfo1g-Pg/s1600-h/image%25255B26%25255D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;153&quot; src=&quot;http://lh3.ggpht.com/-ecaOKWo5Few/URG8r4Iib8I/AAAAAAAAB4I/JOZ-nw2FV4U/image_thumb%25255B35%25255D.png?imgmax=800&quot; style=&quot;background-image: none; border-width: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;image&quot; width=&quot;246&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This has only been a quick intro to WPF. I hope it’s been helpful to understand the basics of this technology. Please take a look around this blog to find other articles related to wpf development.&lt;br /&gt;
&lt;br /&gt;
Happy Coding!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;wlWriterEditableSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d6634ccf-577f-4fb0-9c52-a3039d1ad23b&quot; style=&quot;display: inline; float: none; margin: 0px; padding: 0px;&quot;&gt;
Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/C%23&quot; rel=&quot;tag&quot;&gt;C#&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Windows+Presentation+Foundation&quot; rel=&quot;tag&quot;&gt;Windows Presentation Foundation&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/templates&quot; rel=&quot;tag&quot;&gt;templates&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/controltemplate&quot; rel=&quot;tag&quot;&gt;controltemplate&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/datatemplate&quot; rel=&quot;tag&quot;&gt;datatemplate&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/visualtree&quot; rel=&quot;tag&quot;&gt;visualtree&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/logicaltree&quot; rel=&quot;tag&quot;&gt;logicaltree&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/visual+tree&quot; rel=&quot;tag&quot;&gt;visual tree&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/logical+tree&quot; rel=&quot;tag&quot;&gt;logical tree&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/5063801667870461239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/the-basics-intro-to-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5063801667870461239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5063801667870461239'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/the-basics-intro-to-windows.html' title='The Basics: Intro to Windows Presentation Foundation'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/--y-r7cOJk_A/URG8msZcRdI/AAAAAAAAB24/lqD-9hZvvdQ/s72-c/image_thumb%25255B9%25255D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-1707000957199602734</id><published>2013-02-01T11:35:00.001-08:00</published><updated>2013-02-01T11:39:35.288-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Basics"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><title type='text'>C# Basics: Switch Statement</title><content type='html'>The switch statement is a form of selection statement that executes some logic based on the value of a given parameter. Its purpose is to replace multiple conditional statements with a single switch statement.&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong&gt;Basic Syntax&lt;/strong&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;switch&lt;/span&gt; (&lt;em&gt;expression&lt;/em&gt;)
{
       &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; constant1:
             &lt;em&gt;statement1&lt;/em&gt;;
             &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
       &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; constant2:
             &lt;em&gt;statement2&lt;/em&gt;;
             &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
       &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; constant3:
             &lt;em&gt;statement3&lt;/em&gt;;
             &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
       &lt;span class=&quot;kwrd&quot;&gt;default&lt;/span&gt;:
             &lt;em&gt;default statement&lt;/em&gt;;
             &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
 }&lt;/pre&gt;
&lt;/blockquote&gt;
If the expression’s value does not match any of the constant values in the switch statement, the control flow is transferred to the statement following the default keyword.&lt;br /&gt;
&lt;br /&gt;
The switch statement above can also be written with multiple if statements as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (&lt;em&gt;expression1&lt;/em&gt;)
{
     &lt;em&gt;statement1&lt;/em&gt;;
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (&lt;em&gt;expression2&lt;/em&gt;)
{
      &lt;em&gt;statement2&lt;/em&gt;;
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (&lt;em&gt;expression3&lt;/em&gt;)
{
     &lt;em&gt;statement3&lt;/em&gt;;
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt;
{
     &lt;em&gt;default statement&lt;/em&gt;;
}&lt;/pre&gt;
&lt;br /&gt;
&lt;strong&gt;Case fall-through&lt;/strong&gt;&lt;br /&gt;
all case statements within a switch statement must have a reachable endpoint. This is typically the break statement. However, any statement that will jump the execution out of the switch statement will also work. These are statements like return and throw. The only exception to this reachable endpoint rule is when there are no statements between case statements. &lt;br /&gt;
&lt;br /&gt;
In the following example, &lt;em&gt;statement 1&lt;/em&gt; is executed if &lt;em&gt;expression&lt;/em&gt; is equal to &lt;em&gt;constant1&lt;/em&gt; or &lt;em&gt;constant2&lt;/em&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;switch&lt;/span&gt; (&lt;em&gt;expression&lt;/em&gt;)
{
     &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; &lt;em&gt;constant1&lt;/em&gt;:                    
     &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; &lt;em&gt;constant2&lt;/em&gt;:
            &lt;em&gt;statement1&lt;/em&gt;;
            &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
     &lt;span class=&quot;kwrd&quot;&gt;case&lt;/span&gt; &lt;em&gt;constant3&lt;/em&gt;:
            &lt;em&gt;statement3&lt;/em&gt;;
            &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;  
     &lt;span class=&quot;kwrd&quot;&gt;default&lt;/span&gt;:
            &lt;em&gt;default statement&lt;/em&gt;;
            &lt;span class=&quot;kwrd&quot;&gt;break&lt;/span&gt;;
}&lt;/pre&gt;
&lt;br /&gt;
&lt;div class=&quot;wlWriterEditableSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:27010e73-09ae-40c3-bf2c-60b9a2d93d52&quot; style=&quot;display: inline; float: none; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/switch&quot; rel=&quot;tag&quot;&gt;switch&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/programming+basics&quot; rel=&quot;tag&quot;&gt;programming basics&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/learn+c%23&quot; rel=&quot;tag&quot;&gt;learn c#&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/1707000957199602734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/c-basics-switch-statement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1707000957199602734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/1707000957199602734'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/02/c-basics-switch-statement.html' title='C# Basics: Switch Statement'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-6376672846034893467</id><published>2013-01-03T08:07:00.001-08:00</published><updated>2013-01-03T08:07:02.294-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="cursor"/><title type='text'>How to Detect a Touch Screen (C#)</title><content type='html'>&lt;p&gt;Just a quick note to show you how to detect a touch screen. This code could be used to hide the application cursor if the application is running on a touch screen device. &lt;/p&gt;  &lt;p&gt;I hope it helps.&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;private bool &lt;/span&gt;HasTouchInput()&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;Tablet&lt;/span&gt;.TabletDevices.OfType&amp;lt;&lt;span style=&quot;color: #2b91af&quot;&gt;TabletDevice&lt;/span&gt;&amp;gt;().Any(t =&amp;gt; t.Type == &lt;span style=&quot;color: #2b91af&quot;&gt;TabletDeviceType&lt;/span&gt;.Touch);&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cadf5b0a-9728-4ade-9cc8-af614011fad8&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/c%23&quot; rel=&quot;tag&quot;&gt;c#&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/touch+screen&quot; rel=&quot;tag&quot;&gt;touch screen&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/touchscreen&quot; rel=&quot;tag&quot;&gt;touchscreen&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/tablet&quot; rel=&quot;tag&quot;&gt;tablet&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/TabletDevice&quot; rel=&quot;tag&quot;&gt;TabletDevice&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/6376672846034893467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2013/01/how-to-detect-touch-screen-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6376672846034893467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6376672846034893467'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2013/01/how-to-detect-touch-screen-c.html' title='How to Detect a Touch Screen (C#)'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-6220546784850258538</id><published>2012-08-24T09:54:00.001-07:00</published><updated>2012-08-24T09:57:24.142-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>How to Change Application FontFamily at Runtime</title><content type='html'>This one stumped me for a while. There are a lot of blog posts out there on how to change the font family of a particular style if you know the key, or how to do it for all textblocks in the application. The problem I was facing was that I used a lot of Labels and other controls that did not pick up these changes. Not only that, but I found no way of editing my default styles at runtime. After trying several approaches, I came up with this solution. I don’t know if it will work for everyone, but in my case, it is working beautifully. I hope it helps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;csharpcode&quot;&gt;
&lt;pre class=&quot;alt&quot;&gt;        &lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; applyFontFamilySettings()&lt;/pre&gt;
&lt;pre&gt;        {&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;            &lt;span class=&quot;kwrd&quot;&gt;foreach&lt;/span&gt; (DictionaryEntry entry &lt;span class=&quot;kwrd&quot;&gt;in&lt;/span&gt; Application.Current.Resources)&lt;/pre&gt;
&lt;pre&gt;            {&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;                &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (entry.Value &lt;span class=&quot;kwrd&quot;&gt;is&lt;/span&gt; Style)&lt;/pre&gt;
&lt;pre&gt;                {&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;                    Style originalStyle = (Style)entry.Value;&lt;/pre&gt;
&lt;pre&gt;                    swapStyles(originalStyle, entry.Key, originalStyle.TargetType);&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;                }&lt;/pre&gt;
&lt;pre&gt;            }&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;        }&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt&quot;&gt;        &lt;span class=&quot;kwrd&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; swapStyles(Style s, &lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; styleKey, Type t)&lt;/pre&gt;
&lt;pre&gt;        {&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;            Style newStyle = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; System.Windows.Style()&lt;/pre&gt;
&lt;pre&gt;            {&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;                TargetType = t&lt;/pre&gt;
&lt;pre&gt;            };&lt;/pre&gt;
&lt;br /&gt;
&lt;pre&gt;            &lt;span class=&quot;kwrd&quot;&gt;foreach&lt;/span&gt; (Setter st &lt;span class=&quot;kwrd&quot;&gt;in&lt;/span&gt; s.Setters)&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;            {&lt;/pre&gt;
&lt;pre&gt;                newStyle.Setters.Add(st);&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;            }&lt;/pre&gt;
&lt;br /&gt;
&lt;pre class=&quot;alt&quot;&gt;            newStyle.Setters.Add(&lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; Setter(FontFamilyProperty, UiSettings.FontFamily));&lt;/pre&gt;
&lt;pre&gt;            Application.Current.Resources[styleKey] = newStyle;&lt;/pre&gt;
&lt;pre class=&quot;alt&quot;&gt;        }&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;wlWriterEditableSmartContent&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4c6de0ec-045a-4ef4-9dca-95357e7886bf&quot; style=&quot;display: inline; float: none; margin: 0px; padding: 0px;&quot;&gt;
43 Things Tags: &lt;a href=&quot;http://www.43things.com/tag/style&quot; rel=&quot;tag&quot;&gt;style&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/fontfamily&quot; rel=&quot;tag&quot;&gt;fontfamily&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/resources&quot; rel=&quot;tag&quot;&gt;resources&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/resourcedictionary&quot; rel=&quot;tag&quot;&gt;resourcedictionary&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/6220546784850258538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2012/08/how-to-change-application-fontfamily-at.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6220546784850258538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/6220546784850258538'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2012/08/how-to-change-application-fontfamily-at.html' title='How to Change Application FontFamily at Runtime'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-5630888611469305432</id><published>2012-07-05T12:52:00.001-07:00</published><updated>2012-07-05T12:55:01.069-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="design"/><category scheme="http://www.blogger.com/atom/ns#" term="expression design"/><category scheme="http://www.blogger.com/atom/ns#" term="graphics"/><title type='text'>How to Create a Custom Stroke in Expression Design</title><content type='html'>&lt;div class=&quot;wlWriterHeaderFooter&quot; style=&quot;float:right; margin:0px; padding:0px 0px 4px 8px;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = &quot;http://dotnetgui.blogspot.com/2012/07/how-to-create-custom-stroke-in.html&quot;;digg_title = &quot;How to Create a Custom Stroke in Expression Design&quot;;digg_bgcolor = &quot;#FFFFFF&quot;;digg_skin = &quot;normal&quot;;&lt;/script&gt;&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;&lt;/script&gt;&lt;/div&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;1) First, draw whatever you want to be used as a stroke. In this case, I will drew an ant.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/-1rZRkQt4Kxs/T_XwUkfP9LI/AAAAAAAAB0w/HL9eynOM5dI/s1600-h/image%25255B2%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-j_s9vR3zUo0/T_XwU1furXI/AAAAAAAAB04/0fiqIJlhz7Y/image_thumb.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;215&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;2) Select the paths with the selection tool and go to Object &amp;gt; Stroke &amp;gt; New Stroke Definition&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/-Pz8RYKRZZ-U/T_XwVaZeUjI/AAAAAAAAB1A/nvF_WDwTa9c/s1600-h/image%25255B6%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh5.ggpht.com/-3SZmI6FjBBg/T_XwVighH1I/AAAAAAAAB1I/WnK3EBjl8bE/image_thumb%25255B2%25255D.png?imgmax=800&quot; width=&quot;462&quot; height=&quot;428&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This will open up a new tab that look something like this&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/-00ulnmFkEA8/T_XwVzVDZdI/AAAAAAAAB1Q/oFD8qGqXQ3c/s1600-h/image%25255B9%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-li23S6dCTTI/T_XwWdMM-GI/AAAAAAAAB1Y/JOoGuBeqSDQ/image_thumb%25255B3%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;210&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;3) Select everything with the selection tool and right click. You should see this:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh5.ggpht.com/-E-jMVKH-fOg/T_XwWgPVeFI/AAAAAAAAB1g/xyWUXr2JH5E/s1600-h/image%25255B12%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-9NKRL7yXFtU/T_XwW3_aauI/AAAAAAAAB1o/Wp34qQZc4j0/image_thumb%25255B4%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;208&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This gives you the option to anchor the image and make repeating. In my case, I want the ants to repeat, so I select that.&lt;/p&gt;  &lt;p&gt;4) File &amp;gt;&amp;#160; Save&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/-Dvdfp0S3DcM/T_XwXLs6y8I/AAAAAAAAB1w/b2KzYvQLKdw/s1600-h/image%25255B15%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-VziaOJAAwbI/T_XwXRn8FDI/AAAAAAAAB14/GLbJxZzDrHQ/image_thumb%25255B5%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;155&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Give your stroke an appropriate name. &lt;/p&gt;  &lt;p&gt;That’s it. Now you should be able to use your stroke in your designs.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-tloARimiFW0/T_XwXh2am0I/AAAAAAAAB2A/pqVV9IcKBfA/s1600-h/image%25255B18%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-oQv_7rBlKXs/T_XwX7uvBkI/AAAAAAAAB2I/X9rLdZ_dIb0/image_thumb%25255B6%25255D.png?imgmax=800&quot; width=&quot;184&quot; height=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;With this new stroke, I can now make a line of ants following whatever path I want.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh4.ggpht.com/-MWhNgmlvdaQ/T_XwYN8yUkI/AAAAAAAAB2Q/dZPGksb-N24/s1600-h/image%25255B22%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-sAEAD3cm87s/T_XwYSnBqnI/AAAAAAAAB2Y/gng7uavAqWo/image_thumb%25255B8%25255D.png?imgmax=800&quot; width=&quot;493&quot; height=&quot;183&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I hope this helps! Have fun!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c7c5ffa7-fcdb-4540-8326-35b0025f372f&quot; class=&quot;wlWriterSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/design&quot; rel=&quot;tag&quot;&gt;design&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/expression+design&quot; rel=&quot;tag&quot;&gt;expression design&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/microsoft+expression+design&quot; rel=&quot;tag&quot;&gt;microsoft expression design&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/graphics&quot; rel=&quot;tag&quot;&gt;graphics&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/custom+stroke&quot; rel=&quot;tag&quot;&gt;custom stroke&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/stroke+definition&quot; rel=&quot;tag&quot;&gt;stroke definition&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/5630888611469305432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2012/07/how-to-create-custom-stroke-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5630888611469305432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5630888611469305432'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2012/07/how-to-create-custom-stroke-in.html' title='How to Create a Custom Stroke in Expression Design'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-j_s9vR3zUo0/T_XwU1furXI/AAAAAAAAB04/0fiqIJlhz7Y/s72-c/image_thumb.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-2600196224989724565</id><published>2012-02-02T10:15:00.001-08:00</published><updated>2012-02-02T10:15:35.237-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="expression blend"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>Expression Blend Bug–Can’t Open UserControl</title><content type='html'>&lt;div class=&quot;wlWriterHeaderFooter&quot; style=&quot;float:right; margin:0px; padding:0px 0px 4px 8px;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = &quot;http://dotnetgui.blogspot.com/2012/02/expression-blend-bugcant-open.html&quot;;digg_title = &quot;Expression Blend Bug–Can’t Open UserControl&quot;;digg_bgcolor = &quot;#FFFFFF&quot;;digg_skin = &quot;normal&quot;;&lt;/script&gt;&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;&lt;/script&gt;&lt;/div&gt;&lt;p&gt;Ever seen this when trying to work in Blend?&lt;/p&gt;  &lt;h3&gt;(Element Name) is not supported in a windows presentation foundation (WPF) project.&lt;/h3&gt;  &lt;p&gt;or this?&lt;/p&gt;  &lt;h3&gt;(UserControl) is not supported in a windows presentation foundation (WPF) project.&lt;/h3&gt;  &lt;p&gt;Well, I ran into this and had a tough time figuring out what was going on. There are a lot of forum posts out there talking about the topic, but no real solution that I have found. I kept on trying different things and was able to overcome it. Here is what I did to fix it.&lt;/p&gt;  &lt;p&gt;I went to the solution explorer in visual studio and right clicked on the project file for the project that was having the problems. I selected ‘Edit Project File’. This unloads the project from the current solution and opens the project file in the xml editor.&lt;/p&gt;  &lt;p&gt;Towards the top of the file you should see something like this&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-4mpGFeup-LY/TyrSxF5zMgI/AAAAAAAABuk/5lWnDKLt9KU/s1600-h/image%25255B6%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-gZAABgxrY_c/TyrSxc4LDfI/AAAAAAAABus/V1FIvbYN9Ng/image_thumb%25255B4%25255D.png?imgmax=800&quot; width=&quot;678&quot; height=&quot;157&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After my offending project file with other functioning project files, I noticed that my platform was set to x86 rather than AnyCPU like my other projects. I changed it to AnyCPU, saved, reloaded the project, built the solution and then tried to open the UserControl in Blend. This fixed the problem! &lt;/p&gt;  &lt;p&gt;If you are having this same issue, I’d give that a shot. Good luck!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8b8afac1-481a-4240-931a-85fd78d0f746&quot; class=&quot;wlWriterSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/userControl&quot; rel=&quot;tag&quot;&gt;userControl&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/bug&quot; rel=&quot;tag&quot;&gt;bug&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/blend&quot; rel=&quot;tag&quot;&gt;blend&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/expression&quot; rel=&quot;tag&quot;&gt;expression&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/windows+presentation+foundation&quot; rel=&quot;tag&quot;&gt;windows presentation foundation&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/blend+bug&quot; rel=&quot;tag&quot;&gt;blend bug&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/userControl+is+not+supported&quot; rel=&quot;tag&quot;&gt;userControl is not supported&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/element+name+is+not+supported&quot; rel=&quot;tag&quot;&gt;element name is not supported&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/microsoft+expression+blend&quot; rel=&quot;tag&quot;&gt;microsoft expression blend&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/ms+blend&quot; rel=&quot;tag&quot;&gt;ms blend&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/configuration&quot; rel=&quot;tag&quot;&gt;configuration&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/platform&quot; rel=&quot;tag&quot;&gt;platform&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/2600196224989724565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2012/02/expression-blend-bugcant-open.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/2600196224989724565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/2600196224989724565'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2012/02/expression-blend-bugcant-open.html' title='Expression Blend Bug–Can’t Open UserControl'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-gZAABgxrY_c/TyrSxc4LDfI/AAAAAAAABus/V1FIvbYN9Ng/s72-c/image_thumb%25255B4%25255D.png?imgmax=800" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-5062058833703917031</id><published>2012-01-18T12:46:00.001-08:00</published><updated>2012-01-18T12:46:27.848-08:00</updated><title type='text'>How to be a Computer Expert!</title><content type='html'>&lt;div class=&quot;wlWriterHeaderFooter&quot; style=&quot;float:right; margin:0px; padding:0px 0px 4px 8px;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = &quot;http://dotnetgui.blogspot.com/2012/01/how-to-be-computer-expert.html&quot;;digg_title = &quot;How to be a Computer Expert!&quot;;digg_bgcolor = &quot;#FFFFFF&quot;;digg_skin = &quot;normal&quot;;&lt;/script&gt;&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;&lt;/script&gt;&lt;/div&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This one is all over the web. Just thought I’d post it here in case you haven’t see it. It sums it up pretty well.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-iXiGCV4Ecvw/TxcvoXrhuoI/AAAAAAAABtI/0h9nmUT1y1o/s1600-h/computer%252520flow%252520chart%25255B4%25255D.jpg&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;computer flow chart&quot; border=&quot;0&quot; alt=&quot;computer flow chart&quot; src=&quot;http://lh3.ggpht.com/-8EEnqx5sGnc/TxcvoWFCZeI/AAAAAAAABtQ/dQZ9szf1RXw/computer%252520flow%252520chart_thumb%25255B2%25255D.jpg?imgmax=800&quot; width=&quot;374&quot; height=&quot;431&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:982f44ff-f264-405d-bd4a-2fa5c480f09e&quot; class=&quot;wlWriterSmartContent&quot;&gt;BuzzNet Tags: &lt;a href=&quot;http://www.buzznet.com/tags/computer+expert&quot; rel=&quot;tag&quot;&gt;computer expert&lt;/a&gt;,&lt;a href=&quot;http://www.buzznet.com/tags/flow+chart&quot; rel=&quot;tag&quot;&gt;flow chart&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/5062058833703917031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2012/01/how-to-be-computer-expert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5062058833703917031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5062058833703917031'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2012/01/how-to-be-computer-expert.html' title='How to be a Computer Expert!'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-8EEnqx5sGnc/TxcvoWFCZeI/AAAAAAAABtQ/dQZ9szf1RXw/s72-c/computer%252520flow%252520chart_thumb%25255B2%25255D.jpg?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-581768119486045129</id><published>2012-01-11T12:13:00.001-08:00</published><updated>2012-01-11T12:13:27.372-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="datatemplate"/><category scheme="http://www.blogger.com/atom/ns#" term="tab control"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><title type='text'>How to Change the Font Size of a WPF Tab Control’s Header</title><content type='html'>&lt;p&gt;To change the font size of the tab header of a wpf tab control you have to redefine the ItemTemplate property of the Tab Control.&lt;/p&gt;  &lt;p&gt;This is a question I have heard a lot, so I decided to blog about it for those of you needing to do the same thing. Here is a code sample.&lt;/p&gt;  &lt;p&gt;&amp;lt;DataTemplate x:Key=”temp”&amp;gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;lt;TextBlock Text=”{Binding}” FontSize=”20”/&amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;lt;/DataTemplate&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;lt;TabControl …. ItemTemplate=”{DynamicResource temp}”/&amp;gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;That’s all there is to it.&lt;/p&gt;  &lt;p&gt;Happy Coding!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3821c63e-e386-4cb2-a54d-d589af083be0&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;43 Things Tags: &lt;a href=&quot;http://www.43things.com/tag/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/tabControl&quot; rel=&quot;tag&quot;&gt;tabControl&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/tab&quot; rel=&quot;tag&quot;&gt;tab&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/tab+header&quot; rel=&quot;tag&quot;&gt;tab header&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/datatemplate&quot; rel=&quot;tag&quot;&gt;datatemplate&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/tabControl+itemtemplate&quot; rel=&quot;tag&quot;&gt;tabControl itemtemplate&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/wpf+tab+header&quot; rel=&quot;tag&quot;&gt;wpf tab header&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/tab+control+header&quot; rel=&quot;tag&quot;&gt;tab control header&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/581768119486045129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2012/01/how-to-change-font-size-of-wpf-tab.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/581768119486045129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/581768119486045129'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2012/01/how-to-change-font-size-of-wpf-tab.html' title='How to Change the Font Size of a WPF Tab Control’s Header'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-5988658003994594209</id><published>2011-12-14T09:27:00.001-08:00</published><updated>2011-12-14T09:27:57.258-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command line"/><category scheme="http://www.blogger.com/atom/ns#" term="remoting"/><title type='text'>Reboot from the Command Line</title><content type='html'>&lt;p&gt;I often use a remote desktop connection to work on my desktop from my laptop. This is very handy, but there are some limitations. One such limitation is the lack of ability to reboot the machine you are remoting into. The option is not available within the start menu when you are remoting. There are some instances, though, when you really need to reboot. If you find yourself in this situation, you can reboot via the command line. Here is the command to do it.&lt;/p&gt;  &lt;p&gt;shutdown /r /t 01&lt;/p&gt;  &lt;p&gt;Happy Remoting!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:89a54b7d-e5fa-42fc-b49c-4a9a4936fa7c&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;43 Things Tags: &lt;a href=&quot;http://www.43things.com/tag/command+line&quot; rel=&quot;tag&quot;&gt;command line&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/msdos&quot; rel=&quot;tag&quot;&gt;msdos&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/cmd&quot; rel=&quot;tag&quot;&gt;cmd&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/remote&quot; rel=&quot;tag&quot;&gt;remote&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/remoting&quot; rel=&quot;tag&quot;&gt;remoting&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/remote+desktop+connection&quot; rel=&quot;tag&quot;&gt;remote desktop connection&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/desktop+sharing&quot; rel=&quot;tag&quot;&gt;desktop sharing&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/shutdown&quot; rel=&quot;tag&quot;&gt;shutdown&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/reboot&quot; rel=&quot;tag&quot;&gt;reboot&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/MSDOS&quot; rel=&quot;tag&quot;&gt;MSDOS&lt;/a&gt;,&lt;a href=&quot;http://www.43things.com/tag/DOS&quot; rel=&quot;tag&quot;&gt;DOS&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/5988658003994594209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2011/12/reboot-from-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5988658003994594209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/5988658003994594209'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2011/12/reboot-from-command-line.html' title='Reboot from the Command Line'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-61023199121463803.post-8188636355993036852</id><published>2011-11-28T13:48:00.001-08:00</published><updated>2011-11-28T13:48:35.778-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="resources"/><category scheme="http://www.blogger.com/atom/ns#" term="wpf"/><category scheme="http://www.blogger.com/atom/ns#" term="xaml"/><title type='text'>How to Create a Simple Splash Screen in WPF</title><content type='html'>&lt;div class=&quot;wlWriterHeaderFooter&quot; style=&quot;float:right; margin:0px; padding:0px 0px 4px 8px;&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = &quot;http://dotnetgui.blogspot.com/2011/11/how-to-create-simple-splash-screen-in.html&quot;;digg_title = &quot;How to Create a Simple Splash Screen in WPF&quot;;digg_bgcolor = &quot;#FFFFFF&quot;;digg_skin = &quot;normal&quot;;&lt;/script&gt;&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;&lt;/script&gt;&lt;/div&gt;&lt;p&gt;I have posted on this topic before, but I thought I would re-post with a step by step tutorial for those who are very new to wpf. Sorry to those of you who are more veterans. I will post more advanced topics soon, but this one’s for the newbies.&lt;/p&gt;  &lt;p&gt;Here goes…&lt;/p&gt;  &lt;p&gt;WPF makes creating a splash screen fairly simple. All you need to do is embed an image file into your project and change the Build Action on it.&lt;/p&gt;  &lt;p&gt;Here is a step-by-step tutorial on how to do this.&lt;/p&gt;  &lt;p&gt;Step 1) Create your application.   &lt;br /&gt;Here is the xaml for my very complicated application:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-Z-pOeOvfcU8/TtQBotUPDII/AAAAAAAABmM/sgcInolfrLU/s1600-h/image%25255B12%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-43d7Y1XVSbc/TtQBpHkDR2I/AAAAAAAABmU/sEuvuyvnxa4/image_thumb%25255B4%25255D.png?imgmax=800&quot; width=&quot;317&quot; height=&quot;145&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 2) Add an image file to your application. PNG files with transparent backgrounds are supported and are often a good choice for splash screens. Here is the image I created in Photoshop… nice huh?&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/-5oRup-yDdf4/TtQBpjiUWEI/AAAAAAAABmc/Dd7-KOrGUt0/s1600-h/image%25255B8%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh5.ggpht.com/-9E7uGq6c08g/TtQBpycpQeI/AAAAAAAABmk/SnHj7vfLBwQ/image_thumb%25255B2%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;137&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 3) Right click on the image file in the solution explorer and click on Properties&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-kZEvcXAyV8E/TtQBqbLcjQI/AAAAAAAABms/nl_SBYbAjAk/s1600-h/image%25255B2%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh3.ggpht.com/-NGZPOJxCTW4/TtQBq62LNjI/AAAAAAAABm0/zfgiNdxccfs/image_thumb.png?imgmax=800&quot; width=&quot;216&quot; height=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 4) Set the Build Action to SplashScreen in the Properties panel&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh3.ggpht.com/-IZ_Mr84IE_I/TtQBrKxyApI/AAAAAAAABm8/97RtQU5RjjA/s1600-h/image%25255B5%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh5.ggpht.com/-x-08BQpsvxY/TtQBrVBbsYI/AAAAAAAABnE/yNn7G-0uQgI/image_thumb%25255B1%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;165&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step 5) Build and run the application. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;You should now see your image splash before the application is loaded. I managed to get a screenshot as the splash screen was fading out and my application was starting to fade in.&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/-JgVD9Usn-yU/TtQBr_6yQ3I/AAAAAAAABnM/8su4_TVIQ70/s1600-h/image%25255B15%25255D.png&quot;&gt;&lt;img style=&quot;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&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh4.ggpht.com/-5U5TFCoJQ74/TtQBsUtaM1I/AAAAAAAABnU/0IX_IpbN70k/image_thumb%25255B5%25255D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;182&quot; /&gt;&lt;/a&gt;&lt;/p&gt;          &lt;p&gt;That’s all there is to it. It is very simple. There are other ways to show and hide your splashcreen in code, but I won’t get into that in this post. I just wanted to keep it simple for those of you new to SplashScreens in wpf. Happy Splash Screening!&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f985f0c1-cf79-4623-89e6-717f43d3f384&quot; class=&quot;wlWriterSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/wpf&quot; rel=&quot;tag&quot;&gt;wpf&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/splashscreen&quot; rel=&quot;tag&quot;&gt;splashscreen&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/splash+screen&quot; rel=&quot;tag&quot;&gt;splash screen&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/image&quot; rel=&quot;tag&quot;&gt;image&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/xaml&quot; rel=&quot;tag&quot;&gt;xaml&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/resource&quot; rel=&quot;tag&quot;&gt;resource&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dotnetgui.blogspot.com/feeds/8188636355993036852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetgui.blogspot.com/2011/11/how-to-create-simple-splash-screen-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/8188636355993036852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/61023199121463803/posts/default/8188636355993036852'/><link rel='alternate' type='text/html' href='http://dotnetgui.blogspot.com/2011/11/how-to-create-simple-splash-screen-in.html' title='How to Create a Simple Splash Screen in WPF'/><author><name>hmaprk</name><uri>http://www.blogger.com/profile/17148290247104823437</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-43d7Y1XVSbc/TtQBpHkDR2I/AAAAAAAABmU/sEuvuyvnxa4/s72-c/image_thumb%25255B4%25255D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry></feed>