<?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-7218623523256427975</id><updated>2025-08-21T19:54:16.774+03:00</updated><category term="Programming"/><category term="Scripting"/><category term="TCL"/><category term="examples"/><category term="Tips"/><category term="Guides"/><category term="WPF"/><category term="General"/><category term="Code"/><category term="Eclipse"/><category term="XAML"/><category term="Best practices"/><category term="Problems"/><category term="Tutorial"/><category term="LUA"/><category term="Python"/><category term="TDD"/><category term="Tweaks"/><category term="C#"/><category term="CS"/><category term="Measure and Compare"/><category term="NOB"/><category term="Project Euler"/><category term="Utils"/><category term="math"/><category term="opensource"/><category term="Book review"/><category term="Books"/><category term="Controls"/><category term="Debugging"/><category term="Documentation"/><category term="Magento"/><category term="Samples"/><category term="UI"/><category term="Visual Studio"/><category term="batch"/><category term="tclunit"/><category term="DLTK"/><category term="GUI"/><category term="Graph"/><category term="IronPython"/><category term="PayPal"/><category term="Server"/><category term="Wireshark"/><category term="plugin"/><category term="ActiveState"/><category term="Apache"/><category term="Beyond Compare"/><category term="BeyondCVS"/><category term="Chart"/><category term="CodePlex"/><category term="Converter"/><category term="Design Patterns"/><category term="Editors"/><category term="FIFO"/><category term="GraphViz"/><category term="IEExpress"/><category term="IMDb"/><category term="Ideas"/><category term="MSI"/><category term="MVVM"/><category term="Movie"/><category term="PCAP"/><category term="PHP"/><category term="Productivity"/><category term="ROBODoc"/><category term="SVN"/><category term="Snippets"/><category term="Templates"/><category term="VB-Script"/><category term="Visual Studio - IDE"/><category term="WCF"/><category term="Windows"/><category term="Windows Installer"/><category term="dissector"/><category term="dotNetInstaller"/><category term="protocol"/><category term="sniffer"/><title type='text'>Automate your world</title><subtitle type='html'>Computers, SW crafting and automation.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>70</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-8369225689090738770</id><published>2012-05-05T09:55:00.002+03:00</published><updated>2012-05-05T09:55:57.620+03:00</updated><title type='text'>My Blog Has Moved!</title><content type='html'>You can now find my blog at &lt;a href=&quot;http://www.shloemi.com/&quot;&gt;ShloEmi.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After almost 7 years at Blogger it&#39;s time to grow.&lt;br /&gt;
&lt;br /&gt;
Hope to see you there,&lt;br /&gt;
Shlomi.O&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/8369225689090738770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2012/05/my-blog-has-moved.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8369225689090738770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8369225689090738770'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2012/05/my-blog-has-moved.html' title='My Blog Has Moved!'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-6800641250936321900</id><published>2012-01-20T11:25:00.000+02:00</published><updated>2012-01-20T11:25:13.406+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Samples"/><category scheme="http://www.blogger.com/atom/ns#" term="Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'>WCF-4 Client/Host quick start/tutorial</title><content type='html'>For those of you who already know WCF basics and need to start quickly here are guidelines to start a working client-server/service project:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;My Quickest Start&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms733070.aspx&quot;&gt;Designing Service Contracts&lt;/a&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;Start simple, grow in time.&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms733764.aspx&quot;&gt;Implement the contract&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Host the service - Console (starting simple).&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms731758.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms731758.aspx&lt;/a&gt; &lt;/li&gt;
&lt;ol&gt;&lt;li&gt;New &#39;Console Application&#39;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;See &#39;Example Host Code&#39; below...&lt;/b&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;Add Reference.... Select System.ServiceModel&lt;/li&gt;
&lt;li&gt;Reference &#39;&lt;span style=&quot;font-family: Consolas, Courier, monospace; font-size: 20px; text-align: left;&quot;&gt;ServiceModel&lt;/span&gt;&#39;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Start the service code&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Using&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Open&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Close&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc668754.aspx&quot;&gt;Disable WcfSvcHost&lt;/a&gt; (if needed)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Consolas, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;&quot;Right-click the WCF Service Project in&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;Solution Explorer&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;, choose&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;Properties&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;, and click&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;WCF Options&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;&amp;nbsp;tab. The&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;Start WCF Service Host when debugging another project in the same solution&lt;/strong&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; text-align: left;&quot;&gt;&amp;nbsp;check box is enabled by default.&quot;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;CLIENT SIDE - Obtain the Service Contract, Bindings, and Addresses&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Enable the service&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Set the Host as the default startup program and run in without debugger (usually &amp;lt;CTRL&amp;gt;+F5).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&#39;Add Service Reference...&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Past the service address in the &#39;Address&#39; field and &#39;Go&#39;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Point the service and &#39;OK&#39; =results=&amp;gt; a new client proxy code will be generated in your client.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;SET YOUR CLIENT APPLICATION AS THE STARTUP PROGRAM :)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Add service usage code to your client (see &#39;Example Client Code&#39; below...).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;Run and relax :-).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial;&quot;&gt;&lt;span style=&quot;font-size: 20px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Example Host Code&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;div style=&quot;border: #000080 1px solid; color: black; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background: #ffffff; margin: 0; padding: 0 0 0 5px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Linq;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Text;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.ServiceModel;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.ServiceModel.Description;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt;&amp;nbsp;MyWcfLib;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt; MyServer&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&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;color: #2b91af;&quot;&gt;Uri&lt;/span&gt; baseAddress = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Uri&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;http://localhost:9090/hello&quot;&lt;/span&gt;);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&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;color: blue;&quot;&gt;using&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;ServiceHost&lt;/span&gt; host = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ServiceHost&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: #2b91af;&quot;&gt;MyService&lt;/span&gt;), baseAddress))&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// Enable metadata publishing.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;ServiceMetadataBehavior&lt;/span&gt; smb = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ServiceMetadataBehavior&lt;/span&gt;();&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;smb.HttpGetEnabled = &lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;smb.MetadataExporter.PolicyVersion = &lt;span style=&quot;color: #2b91af;&quot;&gt;PolicyVersion&lt;/span&gt;.Policy15;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;host.Description.Behaviors.Add(smb);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// Open the ServiceHost to start listening for messages. Since&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// no endpoints are explicitly configured, the runtime will create&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// one endpoint per base address for each service contract implemented&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// by the service.&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;host.Open();&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;The service is ready at {0}&quot;&lt;/span&gt;, baseAddress);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Press &amp;lt;Enter&amp;gt; to stop the service.&quot;&lt;/span&gt;);&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// Close the ServiceHost.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;host.Close();&lt;/li&gt;
&lt;li&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;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;}&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Example Client Code&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;border: #000080 1px solid; color: black; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background: #ffffff; margin: 0; padding: 0 0 0 5px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Linq;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Text;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt; ConsoleApplication1&lt;/li&gt;
&lt;li&gt;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: blue;&quot;&gt;var&lt;/span&gt; client = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; ServiceReference1.&lt;span style=&quot;color: #2b91af;&quot;&gt;MyServiceClient&lt;/span&gt;();&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(client.GenerateGuid().ToString());&lt;/li&gt;
&lt;li&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;client.Close();&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&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;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;}&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;MSDN&#39;s &#39;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms731067.aspx&quot;&gt;Basic Programming Lifecycle&lt;/a&gt;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms733070.aspx&quot;&gt;Designing Service Contracts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms733764.aspx&quot;&gt;Implement the contract&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms733830.aspx&quot;&gt;Configure the service endpoints&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms730158.aspx&quot;&gt;Host the service&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms730825.aspx&quot;&gt;Build a client application&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;br /&gt;
Please, post comments if you find errors.&lt;br /&gt;
I&#39;ll fix them ASAP and others can enjoy a cleaner clode.&lt;br /&gt;
&lt;br /&gt;
Hope it helps...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/6800641250936321900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2012/01/wcf-4-clienthost-quick-starttutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6800641250936321900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6800641250936321900'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2012/01/wcf-4-clienthost-quick-starttutorial.html' title='WCF-4 Client/Host quick start/tutorial'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-1406852550894892325</id><published>2012-01-07T16:17:00.005+02:00</published><updated>2012-01-08T11:39:27.520+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="GUI"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Samples"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="UI"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF, XAML: TreeView HierarchicalDataTemplate databinding to unknown XML/DataSource</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;Problem description&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;I wish to bind my TreeView to a datasource.&lt;/li&gt;
&lt;li&gt;The TreeView should build its child nodes dynamically (unknows childs in datasource).&lt;/li&gt;
&lt;li&gt;Each node should display its data or (if no data) its element name.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Solution&lt;/span&gt;&lt;br /&gt;
You need to use and understand these parts:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #a31515; font-family: inherit; white-space: nowrap;&quot;&gt;HierarchicalDataTemplate&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;color: maroon; line-height: 27px; text-align: left; white-space: nowrap;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;HierarchicalDataTemplate.Triggers&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;background-color: #f3f3f3; color: #a31515; font-family: inherit; white-space: nowrap;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;XPath&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 13px; white-space: nowrap;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Usage Example&lt;/span&gt;&lt;br /&gt;
Just copy paste and start playing / reading each part&#39;s help. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;XAML&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;border: #000080 1px solid; color: black; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background: #ffffff; margin: 0; padding: 0 0 0 5px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;TreeViewDataBinding.Window1&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Window1&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;300&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;300&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Window.Resources&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;HierarchicalDataTemplate&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;NodeTemplate&quot; &amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;tbName&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;?&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #a31515;&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;HierarchicalDataTemplate.ItemsSource&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; XPath&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;child::node()&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #a31515;&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;HierarchicalDataTemplate.ItemsSource&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #a31515;&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;HierarchicalDataTemplate.Triggers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;DataTrigger&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Binding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=NodeType}&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Text&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Setter&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; TargetName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;tbName&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Property&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Text&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=Value}&quot;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;DataTrigger&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;DataTrigger&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Binding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=NodeType}&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Element&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Setter&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; TargetName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;tbName&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Property&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Text&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Path&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=Name}&quot;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;DataTrigger&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&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;color: #a31515;&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;HierarchicalDataTemplate.Triggers&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;HierarchicalDataTemplate&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;XmlDataProvider&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Key&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;xmlDataProvider&quot;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Window.Resources&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Button&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Click&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Button_Click&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Reload&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Button&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TreeView&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&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;color: red;&quot;&gt; ItemsSource&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Source&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;={&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; xmlDataProvider}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; XPath&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=*}&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&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;color: red;&quot;&gt; ItemTemplate&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;StaticResource&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; NodeTemplate}&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Window&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Code behind&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;border: #000080 1px solid; color: black; font-family: &#39;Courier New&#39;, Courier, Monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background: #ffffff; margin: 0; padding: 0 0 0 5px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Windows;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Windows.Data;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt; TreeViewDataBinding&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Window1&lt;/span&gt; : &lt;span style=&quot;color: #2b91af;&quot;&gt;Window&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; Window1()&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&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;InitializeComponent();&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Button_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;RoutedEventArgs&lt;/span&gt; e)&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: blue;&quot;&gt;var&lt;/span&gt; provider = (&lt;span style=&quot;color: #2b91af;&quot;&gt;XmlDataProvider&lt;/span&gt;)&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.Resources[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;xmlDataProvider&quot;&lt;/span&gt;];&lt;/li&gt;
&lt;li&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;provider.Source = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Uri&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;@&quot;Data\standard.xml&quot;&lt;/span&gt;, &lt;span style=&quot;color: #2b91af;&quot;&gt;UriKind&lt;/span&gt;.Relative);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;}&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Additional files&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;background-color: white; color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; white-space: nowrap;&quot;&gt;standard.xml testbenach XML file (100MB !!).&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;background-color: white; color: #a31515; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; white-space: nowrap;&quot;&gt;&lt;a href=&quot;http://www.xml-benchmark.org/downloads.html&quot;&gt;http://www.xml-benchmark.org/downloads.html&lt;/a&gt; &lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&quot; &lt;span style=&quot;background-color: white;&quot;&gt;For your convenience, we provide a&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.ins.cwi.nl/projects/xmark/Assets/standard.gz&quot; style=&quot;background-color: white;&quot;&gt;ready-made document&lt;/a&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;for a 100 MB experiment.&lt;/span&gt;&quot;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Performance&lt;/b&gt;&lt;br /&gt;
I was able to load 100MB of xml data in around ~6 seconds first time, ~4 seconds from the second time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Testbench station&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;i7 (8 cores) @ 2.80GHz&lt;/li&gt;
&lt;li&gt;4.00GB RAM&lt;/li&gt;
&lt;li&gt;64-Bit OS, Win7 Pro.&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;b&gt;CPU &amp;amp; memory usage&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFoGDkRDuf1iEIQcV-XYW_a6G595o_UQgOz8AIxthj0AhUBAb5enc86a41apD7vfjvbzhN5iIQI3o49bfHTntepWsQZFi6DRhcmC0AnPW_UCm301W7GOfh82br_KOOQQliN2Zw0GJJ2V2n/s1600/CPU-Usage.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;284&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFoGDkRDuf1iEIQcV-XYW_a6G595o_UQgOz8AIxthj0AhUBAb5enc86a41apD7vfjvbzhN5iIQI3o49bfHTntepWsQZFi6DRhcmC0AnPW_UCm301W7GOfh82br_KOOQQliN2Zw0GJJ2V2n/s400/CPU-Usage.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;The CPU was at idle when i started, the RAM was at the base line.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Results&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQAAFDX-1vatnlC-Pas_B1yUz0AMeFTfoPevx1ORCBiirSVwWI2Ekt0GNftrR3Iue2VnxwkX8VipqBeFsj-bznUaaakt0sCv2hCqKOnAozlLsVeAxfbLc68PnRk3z3dNI5NYAoQcLiO4K-/s1600/TreeView.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQAAFDX-1vatnlC-Pas_B1yUz0AMeFTfoPevx1ORCBiirSVwWI2Ekt0GNftrR3Iue2VnxwkX8VipqBeFsj-bznUaaakt0sCv2hCqKOnAozlLsVeAxfbLc68PnRk3z3dNI5NYAoQcLiO4K-/s320/TreeView.png&quot; width=&quot;266&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Resources&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.w3schools.com/xpath/xpath_syntax.asp&quot;&gt;http://www.w3schools.com/xpath/xpath_syntax.asp&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.w3schools.com/xpath/xpath_axes.asp&quot;&gt;http://www.w3schools.com/xpath/xpath_axes.asp&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/1605062/treeview-bound-to-xmldataprovider-shows-data-in-editor-but-empty-when-run&quot;&gt;http://stackoverflow.com/questions/1605062/treeview-bound-to-xmldataprovider-shows-data-in-editor-but-empty-when-run&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
Hope it helps.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/1406852550894892325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2012/01/wpf-xaml-treeview-hierarchicaldatatempl.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1406852550894892325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1406852550894892325'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2012/01/wpf-xaml-treeview-hierarchicaldatatempl.html' title='WPF, XAML: TreeView HierarchicalDataTemplate databinding to unknown XML/DataSource'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFoGDkRDuf1iEIQcV-XYW_a6G595o_UQgOz8AIxthj0AhUBAb5enc86a41apD7vfjvbzhN5iIQI3o49bfHTntepWsQZFi6DRhcmC0AnPW_UCm301W7GOfh82br_KOOQQliN2Zw0GJJ2V2n/s72-c/CPU-Usage.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-7290920104493857297</id><published>2011-12-28T11:27:00.000+02:00</published><updated>2011-12-28T11:27:55.498+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PayPal"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>How to change paypal button image in magento...</title><content type='html'>Don&#39;t even bother finding the solution at Magento Admin Panel or at PayPal :), spent quit a time looking for the solution over there.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Steps&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;You need to access the file (using ftp...) located here:&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;/app/design/frontend/base/default/template/paypal/express/shortcut.phtml&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;Edit it:&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;find the line that contains &quot;img src=&quot;.&lt;/li&gt;
&lt;li&gt;replace the source with your wanted &#39;Pay with PayPal&#39; image path.&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Results&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I&#39;ve managed to change it from this one:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout_old.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_xpressCheckout_old.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To this one:&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://jeansim.co.il/skin/frontend/default/theme240/images/paypal_he.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://jeansim.co.il/skin/frontend/default/theme240/images/paypal_he.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Resources&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;(*1) -&amp;nbsp;&lt;a href=&quot;http://www.magentocommerce.com/boards/viewthread/228452/#t322079&quot;&gt;http://www.magentocommerce.com/boards/viewthread/228452/#t322079&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/7290920104493857297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/how-to-change-paypal-button-image-in.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7290920104493857297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7290920104493857297'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/how-to-change-paypal-button-image-in.html' title='How to change paypal button image in magento...'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-3326851772169798239</id><published>2011-12-28T10:28:00.000+02:00</published><updated>2011-12-28T10:28:51.745+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="PayPal"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>Using PayPal express with magento.</title><content type='html'>&lt;span style=&quot;font-size: x-large;&quot;&gt;The story&lt;/span&gt;&lt;br /&gt;
I was asked to give the user the ability to pay using PayPal services.&lt;br /&gt;
The site is magento store.&lt;br /&gt;
The user will have two option at PayPal:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;He have an acount and will pay after he logged into his PayPal account.&lt;/li&gt;
&lt;li&gt;He have no account - he is NOT requiered to open a PayPal account to pay, he&#39;ll enter his credit credentiols and pay.&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;Simple, right? :-)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I got into some problems, the community help on this matter is not so obvious, after a day of research and experements, which hopefuly you will avoid, &amp;nbsp;here are the final steps did to satisfy these requierments:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;The solution&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;On Magento Admin Panel&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Magento admin panel =&amp;gt; Menu =&amp;gt; System =&amp;gt; Configuration, click.&lt;/li&gt;
&lt;li&gt;In the left configuration panel =&amp;gt; Sales =&amp;gt; PayPal, click.&lt;/li&gt;
&lt;li&gt;&quot;&lt;i&gt;Email Associated with PayPal Merchant Account&lt;/i&gt;&quot; =&amp;gt; enter your PayPal account email.&lt;/li&gt;
&lt;li&gt;&quot;Select a PayPal Solution&quot; =&amp;gt; &quot;Express Checkout&quot;, &lt;b&gt;checked&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;At &quot;Express Checkout Settings&quot; (*2):&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&quot;Payment Action&quot; : &lt;u&gt;Usually&lt;/u&gt; Sale .&lt;/li&gt;
&lt;li&gt;&quot;Enable PayPal Guest Checkout&quot; =&amp;gt; Yes&lt;/li&gt;
&lt;li&gt;&lt;b&gt;SAVE CONIFG!&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;At &quot;API/Integration Settings&quot;:&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;API Authentication Methods =&amp;gt; API Signiture.&lt;/li&gt;
&lt;li&gt;Get Credentials from PayPal, click:&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;Entering PayPay...&amp;nbsp;Enter your PayPal credential...&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 21px; line-height: 27px; text-align: left;&quot;&gt;Just get your API credentials through Profile &amp;gt; My selling tools &amp;gt; API Access &amp;gt; Update &amp;gt; Request API credentials &amp;gt; Request API Signature (*1)&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 21px; line-height: 27px;&quot;&gt;Enter the API credentioal, appropriattly, to:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 21px; line-height: 27px;&quot;&gt;API Username,&amp;nbsp;Password &amp;amp;&amp;nbsp;Signature.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 21px; line-height: 27px;&quot;&gt;&lt;b style=&quot;font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal;&quot;&gt;SAVE CONIFG!&lt;/b&gt; &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;div&gt;These steps created a fast &amp;amp; secure checout point for my users to buy products without PayPay account.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Hope it helped.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Resources&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;(*1) -&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/7120058/customer-cannot-pay-by-card-without-sign-in-using-paypal-website-payments-standa&quot;&gt;http://stackoverflow.com/questions/7120058/customer-cannot-pay-by-card-without-sign-in-using-paypal-website-payments-standa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;(*2) -&amp;nbsp;&lt;a href=&quot;http://www.magentocommerce.com/knowledge-base/entry/setting-up-paypal-for-your-magento-store&quot;&gt;http://www.magentocommerce.com/knowledge-base/entry/setting-up-paypal-for-your-magento-store&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/3326851772169798239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/using-paypal-express-with-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/3326851772169798239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/3326851772169798239'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/using-paypal-express-with-magento.html' title='Using PayPal express with magento.'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-2363142008157001084</id><published>2011-12-24T20:39:00.001+02:00</published><updated>2011-12-24T20:40:14.479+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Magento"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>MAGENTO: can&#39;t &quot;Log in to Admin Panel&quot;</title><content type='html'>Just solved this problem.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Problem description&lt;/span&gt;&lt;br /&gt;
I&#39;ve instaled magento in my local computer and I can&#39;t login to the admin panel.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Understanding the problem&lt;/span&gt;&lt;br /&gt;
Magento doesn&#39;t work well with &#39;localhost&#39; and &#39;127.0.0.1&#39;. After some readings on the net I understood that these addresses won&#39;t allow cookies, resolting in admin panel login failure.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Solution&lt;/span&gt;&lt;br /&gt;
Edit &#39;host&#39; file located at &#39;C:\Windows\System32\drivers\etc&#39;.&lt;br /&gt;
Add a new line,&amp;nbsp;for example:&lt;br /&gt;
127.0.0.1       shloemi.com   # Localhost virtual development site.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Usage&lt;/span&gt;&lt;br /&gt;
You can now acces magento admin pannel using the site shloemi.com.&lt;br /&gt;
Example:&amp;nbsp;http://shloemi.com/Magento/index.php/</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/2363142008157001084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/magento-cant-log-in-to-admin-panel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2363142008157001084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2363142008157001084'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/magento-cant-log-in-to-admin-panel.html' title='MAGENTO: can&#39;t &quot;Log in to Admin Panel&quot;'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-821754166137333070</id><published>2011-12-24T20:35:00.000+02:00</published><updated>2011-12-24T20:35:06.357+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="NOB"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: layouts &amp; layout attributes explained.</title><content type='html'>&lt;div&gt;Found some very good articles that explains layouts &amp;amp; layout attributes...&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Alignment, Margins, and Padding Overview&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms751709.aspx&quot;&gt;Alignment, Margins, and Padding Overview&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;WPF controls layout explained&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.aspfree.com/c/a/Windows-Scripting/WPF-Control-Layout/&quot;&gt;http://www.aspfree.com/c/a/Windows-Scripting/WPF-Control-Layout/&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Using the WPF DockPanel &lt;/span&gt;&lt;a href=&quot;http://blogs.objectsharp.com/blogs/dave/archive/2009/03/13/using-the-wpf-dockpanel.aspx&quot;&gt;http://blogs.objectsharp.com/blogs/dave/archive/2009/03/13/using-the-wpf-dockpanel.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/821754166137333070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-layouts-layout-attributes-explained.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/821754166137333070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/821754166137333070'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-layouts-layout-attributes-explained.html' title='WPF: layouts &amp; layout attributes explained.'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-5066113715771934516</id><published>2011-12-24T20:27:00.000+02:00</published><updated>2011-12-24T20:27:52.551+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Samples"/><category scheme="http://www.blogger.com/atom/ns#" term="Templates"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Visual Studio Developer Center &gt; Samples</title><content type='html'>&lt;div&gt;FYI - samles for VSxxx (2010, 2008...).&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://code.msdn.microsoft.com/vstudio&quot;&gt;http://code.msdn.microsoft.com/vstudio&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/5066113715771934516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/visual-studio-developer-center-samples.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5066113715771934516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5066113715771934516'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/visual-studio-developer-center-samples.html' title='Visual Studio Developer Center &gt; Samples'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-1028046390871930833</id><published>2011-12-24T19:47:00.000+02:00</published><updated>2011-12-24T19:47:49.289+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best practices"/><category scheme="http://www.blogger.com/atom/ns#" term="Design Patterns"/><category scheme="http://www.blogger.com/atom/ns#" term="Guides"/><category scheme="http://www.blogger.com/atom/ns#" term="MVVM"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="UI"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: MVVM, Quickstart</title><content type='html'>&lt;div&gt;Read and follow this GREAT article instructions...&lt;br /&gt;
&lt;a href=&quot;http://www.codeproject.com/KB/WPF/WpfMvvmQuickStart.aspx&quot;&gt;http://www.codeproject.com/KB/WPF/WpfMvvmQuickStart.aspx&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;Background reading that helps&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Data binding refresh - &lt;a href=&quot;http://msdn.microsoft.com/en-us/magazine/cc163299.aspx&quot;&gt;http://msdn.microsoft.com/en-us/magazine/cc163299.aspx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;/div&gt;&lt;div&gt;Useful resources&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;WPF at CodePlex - &lt;a href=&quot;http://wpf.codeplex.com/&quot;&gt;http://wpf.codeplex.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/1028046390871930833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-mvvm-quickstart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1028046390871930833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1028046390871930833'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-mvvm-quickstart.html' title='WPF: MVVM, Quickstart'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-4388975664075742826</id><published>2011-12-11T08:02:00.000+02:00</published><updated>2011-12-11T08:02:07.109+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chart"/><category scheme="http://www.blogger.com/atom/ns#" term="CodePlex"/><category scheme="http://www.blogger.com/atom/ns#" term="Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="Graph"/><category scheme="http://www.blogger.com/atom/ns#" term="opensource"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF CodePlex toolkit, charting made easy...</title><content type='html'>&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px;&quot;&gt;Charting made easy: graph, pie, bars, points...&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px;&quot;&gt;Free, opensource, maintained.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://blogs.msdn.com/blogfiles//delay/WpfCharting-Jun09-LetterFrequency.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://blogs.msdn.com/blogfiles//delay/WpfCharting-Jun09-LetterFrequency.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px;&quot;&gt;&quot;The &lt;/span&gt;&lt;b style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px; text-align: -webkit-auto;&quot;&gt;&lt;a class=&quot;externalLink&quot; href=&quot;http://www.codeplex.com/wpf/Release/ProjectReleases.aspx&quot; style=&quot;color: #3e62a6; text-decoration: none;&quot;&gt;WPF Toolkit&lt;span class=&quot;externalLinkIcon&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: 19px; text-align: -webkit-auto;&quot;&gt; is a collection of WPF features and components that are being made available outside of the normal .NET Framework ship cycle.&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 19px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #30332d; font-family: &#39;Segoe UI&#39;, &#39;Microsoft Sans Serif&#39;, Arial, Geneva, sans-serif; font-size: large;&quot;&gt;Sources&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://wpf.codeplex.com/&quot;&gt;Windows Presentation Foundation (WPF)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/4388975664075742826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-codeplex-toolkit-charting-made-easy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/4388975664075742826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/4388975664075742826'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-codeplex-toolkit-charting-made-easy.html' title='WPF CodePlex toolkit, charting made easy...'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-2613257712802065712</id><published>2011-12-10T16:35:00.000+02:00</published><updated>2011-12-10T16:35:01.083+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="Problems"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Tweaks"/><category scheme="http://www.blogger.com/atom/ns#" term="Utils"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>MSConfig - System Configuration UI</title><content type='html'>&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 19px; line-height: 28px;&quot;&gt;Very helpfull tool.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 19px; line-height: 28px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 19px; line-height: 28px;&quot;&gt;(*1)&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; font-family: sans-serif; font-size: 19px; line-height: 28px;&quot;&gt;Some of its functionality varies by Windows versions:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;background-color: white; font-family: sans-serif; font-size: 19px; line-height: 28px; list-style-image: url(data:image/png; list-style-type: square; margin-bottom: 0px; margin-left: 1.5em; margin-right: 0px; margin-top: 0.3em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows 98 and Windows Me, it can configure advanced troubleshooting settings pertaining to these operating systems. It can also launch common system tools.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows 98, it can back up and restore startup files.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows Me, it has also been updated with three new tabs called &quot;Static VxDs&quot;, &quot;Environment&quot; and &quot;International&quot;. The Static VxDs tab allows users to enable or disable static&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/VxD&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;&quot; title=&quot;VxD&quot;&gt;virtual device drivers&lt;/a&gt;&amp;nbsp;to be loaded at startup, the&amp;nbsp;&lt;i&gt;Environment&lt;/i&gt;&amp;nbsp;tab allows users to enable or disable&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Environment_variable&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;&quot; title=&quot;Environment variable&quot;&gt;environment variables&lt;/a&gt;, and the&amp;nbsp;&lt;i&gt;International&lt;/i&gt;&amp;nbsp;tab allows users to set international language keyboard layout settings that were formerly set via the real-mode MS-DOS configuration files. A &quot;Cleanup&quot; button on the &quot;Startup&quot; tab allows cleaning up invalid or deleted startup entries.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows Me and Windows XP versions, it can restore an individual file from the original Windows installation set.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;On Windows NT-based operating systems prior to Windows Vista, it can set various BOOT.INI switches.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows XP and Windows Vista, it can hide all operating system services for troubleshooting.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;In Windows Vista and later, the tool gained additional support for launching a variety of tools, such as system information, other configuration areas, such as Internet options, and the ability to enable/disable&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/User_Account_Control&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;&quot; title=&quot;User Account Control&quot;&gt;UAC&lt;/a&gt;. An update is available for Windows XP and Windows Server 2003 that adds the&amp;nbsp;&lt;i&gt;Tools&lt;/i&gt;&amp;nbsp;tab.&lt;sup class=&quot;reference&quot; id=&quot;cite_ref-0&quot; style=&quot;line-height: 1em;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/MSConfig#cite_note-0&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none; white-space: nowrap;&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt;&amp;nbsp;It also allows configuring various switches for&amp;nbsp;&lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Windows_Boot_Manager&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: initial; background-image: none; background-origin: initial; color: #0645ad; text-decoration: none;&quot; title=&quot;Windows Boot Manager&quot;&gt;Windows Boot Manager&lt;/a&gt;&amp;nbsp;and Boot Configuration Data.&quot;&lt;/li&gt;
&lt;/ul&gt;&lt;h2 style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: sans-serif; font-size: 28px; font-weight: normal; line-height: 28px; margin-bottom: 0.6em; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: hidden; overflow-y: hidden; padding-bottom: 0.17em; padding-top: 0.5em; width: auto;&quot;&gt;&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Read more about it here -&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/MSConfig&quot;&gt;http://en.wikipedia.org/wiki/MSConfig&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;To activate it, WIN&lt;win&gt;+R (or Start--&amp;gt;Run), then run &#39;msconfig&#39;.&lt;/win&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Result&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/en/8/82/MSConfig_screenshot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;http://upload.wikimedia.org/wikipedia/en/8/82/MSConfig_screenshot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Resources&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;(*1)&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/MSConfig&quot;&gt;MSConfig - Wikipedia, the free encyclopedia&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/2613257712802065712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/msconfig-system-configuration-ui.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2613257712802065712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2613257712802065712'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/msconfig-system-configuration-ui.html' title='MSConfig - System Configuration UI'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-6656965663572649949</id><published>2011-12-09T15:00:00.000+02:00</published><updated>2011-12-09T15:00:08.354+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: FlowDocument control</title><content type='html'>Please be aware FlowDocument control in WPF, this can easy your life when needed.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Pictures that say it all&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;a href=&quot;http://i.msdn.microsoft.com/dynimg/IC57483.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://i.msdn.microsoft.com/dynimg/IC57483.png&quot; width=&quot;270&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;a href=&quot;http://i.msdn.microsoft.com/dynimg/IC57483.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://i.msdn.microsoft.com/dynimg/IC132505.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://i.msdn.microsoft.com/dynimg/IC132505.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px;&quot;&gt;The diagram shows the objects most typically used with flow content.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Sources&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/37368/WPF-Flow-Document-For-Beginners&quot;&gt;WPF Flow Document For Beginners - CodeProject&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa970909.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/aa970909.aspx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/6656965663572649949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-flowdocument-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6656965663572649949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6656965663572649949'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-flowdocument-control.html' title='WPF: FlowDocument control'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-5060186702628190051</id><published>2011-12-09T11:45:00.000+02:00</published><updated>2011-12-09T11:45:51.288+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF XAML example: Binding FontSize to a Slider</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Code snippet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: navy; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 10pt; font-weight: bold; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; max-height: 300px; overflow-x: auto; overflow-y: auto;&quot;&gt; &lt;ol start=&quot;9&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: 10pt;&quot;&gt;TextBlock&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt; Text&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;=&quot;Hi there.&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;FontSize&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; ElementName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=mySlider,&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Path&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;=Value}&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 10pt;&quot;&gt;&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background-attachment: initial; background-clip: initial; background-color: #f3f3f3; background-image: initial; background-origin: initial;&quot;&gt;&lt;span style=&quot;color: #a31515; font-size: 10pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: 10pt;&quot;&gt;Slider&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt; Minimum&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;=&quot;8&quot;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt; Maximum&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;=&quot;32&quot;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 10pt;&quot;&gt;=&quot;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;mySlider&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 10pt;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: 10pt;&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;=&quot;12&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Result&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgga6RgWNdzuLYBjqU3Buy1KxSA8IM7kohfpie-VYL9vdzU0pqnY58xKNQ0dYgdzz4I0PYfURFQ0ChsOH9EE3iR81v9T5_GJsZQJ4cv74wi0fZZqBgj72EoEhgA2AP6SfA1RMCEs3xWKi2E/s1600/Binding.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgga6RgWNdzuLYBjqU3Buy1KxSA8IM7kohfpie-VYL9vdzU0pqnY58xKNQ0dYgdzz4I0PYfURFQ0ChsOH9EE3iR81v9T5_GJsZQJ4cv74wi0fZZqBgj72EoEhgA2AP6SfA1RMCEs3xWKi2E/s1600/Binding.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/5060186702628190051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-example-binding-fontsize-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5060186702628190051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5060186702628190051'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-example-binding-fontsize-to.html' title='WPF XAML example: Binding FontSize to a Slider'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgga6RgWNdzuLYBjqU3Buy1KxSA8IM7kohfpie-VYL9vdzU0pqnY58xKNQ0dYgdzz4I0PYfURFQ0ChsOH9EE3iR81v9T5_GJsZQJ4cv74wi0fZZqBgj72EoEhgA2AP6SfA1RMCEs3xWKi2E/s72-c/Binding.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-5255525491163679325</id><published>2011-12-09T11:21:00.000+02:00</published><updated>2011-12-09T11:21:59.345+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF XAML example: Rich texted ToolTip with italic, color and more...</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Example&lt;/span&gt;&lt;br /&gt;
In this example I&#39;ll demonstrate how to add a ToolTip to a TextBox.&lt;br /&gt;
The ToolTip should be colored and italic.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Code snippet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt; &lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt; &lt;ol start=&quot;9&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;TextBox&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;SampleText&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; TextWrapping&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Wrap&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBox.ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: #a31515;&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;Italic&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Foreground&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Red&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Instructions: &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Italic&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt; Type here to change the preview text.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBox.ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&quot;&gt;The quick brown fox jumps over the lazy dog.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;TextBox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Result&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBw9HyGFG741JA1HVEK7gw6gVfkajm-X1ZE-OWit2-lfcV2oWtksiSyDrpyr9JPQLlYV1Mqp-bCKdqiZcb2TnD-lW5m0eWH_ZC5ke_VzZkzp4msD80UW2PdjDFc_9fIiR9lNltzLZXhV_N/s1600/RichToolTip.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBw9HyGFG741JA1HVEK7gw6gVfkajm-X1ZE-OWit2-lfcV2oWtksiSyDrpyr9JPQLlYV1Mqp-bCKdqiZcb2TnD-lW5m0eWH_ZC5ke_VzZkzp4msD80UW2PdjDFc_9fIiR9lNltzLZXhV_N/s1600/RichToolTip.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Sources&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/Sams-Teach-Yourself-WPF-Hours/dp/0672329859&quot; style=&quot;background-color: white; color: #3243ff; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 11px;&quot;&gt;&lt;b&gt;http://www.amazon.com/Sams-Teach-Yourself-WPF-Hours/dp/0672329859&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/5255525491163679325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-example-rich-texted-tooltip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5255525491163679325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/5255525491163679325'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-example-rich-texted-tooltip.html' title='WPF XAML example: Rich texted ToolTip with italic, color and more...'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBw9HyGFG741JA1HVEK7gw6gVfkajm-X1ZE-OWit2-lfcV2oWtksiSyDrpyr9JPQLlYV1Mqp-bCKdqiZcb2TnD-lW5m0eWH_ZC5ke_VzZkzp4msD80UW2PdjDFc_9fIiR9lNltzLZXhV_N/s72-c/RichToolTip.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-6061051212557162174</id><published>2011-12-09T10:28:00.000+02:00</published><updated>2011-12-09T10:28:31.972+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF XAML TIP: Label with Target + Control composition == Hotkey control</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Code snippet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt; &lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt; &lt;ol start=&quot;6&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;Border&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; DockPanel.Dock&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Top&quot;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Label&lt;/span&gt; &lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&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;color: red;&quot;&gt; Content&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;_Last Name:&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&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;color: red;&quot;&gt; Target&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Binding&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; ElementName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=lastName}&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBox&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; x&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;lastName&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;100&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; HorizontalAlignment&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Left&quot;/&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;StackPanel&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: #a31515;&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;Border&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Usage&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
Press ALT+L to focus the TextBox control &#39;lastName&#39;.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Result&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr0HUlRUk29slLlwPWSuJ35kpUY6f1GdsRLanjQW3tO_DesnT9TdrjBeffOd-_iVFa_ibNs_S2H_kCWKbhJyQj4Y9q0cCG-OGu226Hk-7ar3vaOzjNhmwDlzS6ccQw0hYcbb9dCnpfrnKX/s1600/Label_TextBox.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr0HUlRUk29slLlwPWSuJ35kpUY6f1GdsRLanjQW3tO_DesnT9TdrjBeffOd-_iVFa_ibNs_S2H_kCWKbhJyQj4Y9q0cCG-OGu226Hk-7ar3vaOzjNhmwDlzS6ccQw0hYcbb9dCnpfrnKX/s1600/Label_TextBox.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/6061051212557162174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-tip-label-with-target-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6061051212557162174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6061051212557162174'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-xaml-tip-label-with-target-control.html' title='WPF XAML TIP: Label with Target + Control composition == Hotkey control'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr0HUlRUk29slLlwPWSuJ35kpUY6f1GdsRLanjQW3tO_DesnT9TdrjBeffOd-_iVFa_ibNs_S2H_kCWKbhJyQj4Y9q0cCG-OGu226Hk-7ar3vaOzjNhmwDlzS6ccQw0hYcbb9dCnpfrnKX/s72-c/Label_TextBox.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-8459501413047322633</id><published>2011-12-09T10:13:00.000+02:00</published><updated>2011-12-09T10:13:28.584+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF: TextBox with SpellCheck and ToolTip XAML example</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Code snippet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt; &lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt; &lt;ol start=&quot;6&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;TextBox&lt;/span&gt; &lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;200&quot;&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; SpellCheck.IsEnabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;True&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Tips for this input-box here...&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Results&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeem0xL1BK5R2fVsAfYnO-_Wxp8mH43nE6R0Mw9x4Quqr-BFljo9J4-LJZdVIOTzTbOwSEMDAGq8T_9tfkQelsqjX8-KXECLZ5nypOFcMIHUweqrSMy_HEbl7gvkEEyMa8miyc-kkjrGO/s1600/TextBox_SpellCheck.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: black;&quot;&gt;&amp;nbsp;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeem0xL1BK5R2fVsAfYnO-_Wxp8mH43nE6R0Mw9x4Quqr-BFljo9J4-LJZdVIOTzTbOwSEMDAGq8T_9tfkQelsqjX8-KXECLZ5nypOFcMIHUweqrSMy_HEbl7gvkEEyMa8miyc-kkjrGO/s1600/TextBox_SpellCheck.png&quot; /&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/8459501413047322633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-textbox-with-spellcheck-and-tooltip.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8459501413047322633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8459501413047322633'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-textbox-with-spellcheck-and-tooltip.html' title='WPF: TextBox with SpellCheck and ToolTip XAML example'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyeem0xL1BK5R2fVsAfYnO-_Wxp8mH43nE6R0Mw9x4Quqr-BFljo9J4-LJZdVIOTzTbOwSEMDAGq8T_9tfkQelsqjX8-KXECLZ5nypOFcMIHUweqrSMy_HEbl7gvkEEyMa8miyc-kkjrGO/s72-c/TextBox_SpellCheck.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-7932314313304804475</id><published>2011-12-09T10:01:00.000+02:00</published><updated>2011-12-09T10:01:01.933+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF: Rich TextBlock XAML example</title><content type='html'>&lt;b&gt;&quot;&lt;/b&gt;The &lt;b&gt;TextBlock&lt;/b&gt; was designed specifically for the purpose of showing small amounts&amp;nbsp;of flowing rich text to the user.&lt;br /&gt;
It is the perfect element for displaying instructions or&amp;nbsp;summary information.&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Quoted from &#39;&#39;&lt;a href=&quot;http://www.amazon.com/Sams-Teach-Yourself-WPF-Hours/dp/0672329859&quot;&gt;Sams Teach Yourself WPF in 24 Hours&lt;/a&gt;&quot;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Usage example&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I have a program that users can communicate with each other. I wish to add the feature of bold, colored, line-breaking and icons to that chat.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Here is an example I&#39;ve found to illustrate it:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.webresourcesdepot.com/wp-content/uploads/image/free-ajax-chat-software.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;http://www.webresourcesdepot.com/wp-content/uploads/image/free-ajax-chat-software.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Source -&amp;nbsp;&lt;a href=&quot;http://www.webresourcesdepot.com/wp-content/uploads/image/free-ajax-chat-software.jpg&quot;&gt;http://www.webresourcesdepot.com/wp-content/uploads/image/free-ajax-chat-software.jpg&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Example&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt; &lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt; &lt;ol start=&quot;7&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px; white-space: nowrap;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; FontSize&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;10&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; TextWrapping&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Wrap&quot; &amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Image&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Stretch&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;UniformToFill&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;32&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;32&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt; Source&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://upload.wikimedia.org/wikipedia/en/b/b0/Avatar-Teaser-Poster.jpg&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Margin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;2 2 2 2&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Italic&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; FontSize&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;12&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Foreground&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;DarkGreen&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ShloEmi:&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Italic&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;LineBreak&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Italic&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; FontSize&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;14&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Foreground&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;BlueViolet&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;H&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Italic&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ave&amp;nbsp;&amp;nbsp;fun with &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;TextBlock&#39;s&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Bold&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&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;LineBreak&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;AccessText&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Foreground&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Blue&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;It&#39;s easy when you have an example &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;AccessText&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&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;Image&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Source&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Smiley.svg/50px-Smiley.svg.png&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;16&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;16&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Image&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Result&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiVYgsaxDZKYDcJPGX8WRjzK26qGIbCW3j9PUetaO_JAtO8X8bwp2SuIfgqFJV1TKSglvvldPQ4ckpwbU_mmaJMjbbOTaI6ogywPUfJ7qGjPM9oLodRRV8QsQfPXeaLKlNtODNMJUoSilh/s1600/TextBlock.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiVYgsaxDZKYDcJPGX8WRjzK26qGIbCW3j9PUetaO_JAtO8X8bwp2SuIfgqFJV1TKSglvvldPQ4ckpwbU_mmaJMjbbOTaI6ogywPUfJ7qGjPM9oLodRRV8QsQfPXeaLKlNtODNMJUoSilh/s1600/TextBlock.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
Have fun...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/7932314313304804475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-rich-textblock-xaml-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7932314313304804475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7932314313304804475'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-rich-textblock-xaml-example.html' title='WPF: Rich TextBlock XAML example'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiVYgsaxDZKYDcJPGX8WRjzK26qGIbCW3j9PUetaO_JAtO8X8bwp2SuIfgqFJV1TKSglvvldPQ4ckpwbU_mmaJMjbbOTaI6ogywPUfJ7qGjPM9oLodRRV8QsQfPXeaLKlNtODNMJUoSilh/s72-c/TextBlock.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-2274719719509826062</id><published>2011-12-08T23:51:00.007+02:00</published><updated>2011-12-09T11:30:00.629+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="GUI"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="UI"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>About WPF</title><content type='html'>Here is my experiance with learning and programming WPF in the last year:&lt;br /&gt;
&lt;br /&gt;
First let me tell you that - &lt;b&gt;WPF IS GREAT!&lt;/b&gt;&lt;br /&gt;
Simple put - WPF let you do layers of controls and decorators.&lt;br /&gt;
This means you can composite anything in easy.&lt;br /&gt;
The things I did with WPF were not easy at all in Win32-API and not even in .Net using GDI+.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;Let&#39;s start with a complext WPF sample I&#39;ve found:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://10rem.net/media/69080/Windows-Live-Writer_ThePresentandFutureofWPF_CD94_THX%20Complete%20(Report)_2.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;http://10rem.net/media/69080/Windows-Live-Writer_ThePresentandFutureofWPF_CD94_THX%20Complete%20(Report)_2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href=&quot;http://10rem.net/blog/2010/10/28/the-present-and-future-of-wpf&quot;&gt;http://10rem.net/blog/2010/10/28/the-present-and-future-of-wpf&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Usage example&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I wish to have a character drawn, later on I wish to add that character a life status, later on - an icon on the top-right to reperesent which guild is he in... and more...&lt;br /&gt;
&lt;br /&gt;
Of course It&#39;s solvable using the Decorator-Pattern using the draw to add more pictures, but - you need to &lt;a href=&quot;http://en.wikipedia.org/wiki/Bit_blit&quot;&gt;BitBlt &lt;/a&gt;... and more complex stuff.&lt;br /&gt;
&lt;br /&gt;
With WPF, however, you layer it all with opacity, or transparency, which is the same solution as before with one exception - you write it declarativly and in 10 min :-).&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;The learning curve&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I already had a very rich epreriance with WinForms/MFC/Win32 GUI + I know &lt;a href=&quot;http://www.dofactory.com/Patterns/Patterns.aspx&quot;&gt;Design-Patterns&lt;/a&gt; pretty good, so I had a good head-start ==&amp;gt; It was easier to learn, the elements were already in my mind.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
First I started with tutorials to feel WPF, and books.&lt;br /&gt;
The most used were&amp;nbsp;(recomendation ordered):&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Tutorials&lt;/b&gt;:&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.wpftutorial.net/&quot;&gt;&lt;b&gt;WPF Tutorial&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&#39;Hello WPF&#39; ...&amp;nbsp;&lt;a href=&quot;http://www.wpftutorial.net/HelloWPF.html&quot;&gt;http://www.wpftutorial.net/HelloWPF.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;&lt;b&gt;Books&lt;/b&gt;:&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/Sams-Teach-Yourself-WPF-Hours/dp/0672329859&quot;&gt;&lt;b&gt;http://www.amazon.com/Sams-Teach-Yourself-WPF-Hours/dp/0672329859&lt;/b&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/2010-NET-Platform-Andrew-Troelsen/dp/1430225491&quot;&gt;http://www.amazon.com/2010-NET-Platform-Andrew-Troelsen/dp/1430225491&lt;/a&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;The chapters about WPF (Chapter 27).&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;In between, I started using it in my solutions, strted with simple solutions (traditional GUI programming), used the known and common parts (buttons, labels, textboxes...), practiced and learned the basics.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Bottom line&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
After touching WPF there is no going back, I&#39;ll always prefer WPF over other solutions, unless I have no choice, like - &quot;the OS doesn&#39;t support DirectX 9&quot; :-(.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Have a good and productive learning - WPF worth it!&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Resources&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.wpftutorial.net/Home.html&quot;&gt;http://www.wpftutorial.net/Home.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Amazon&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms754130.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms754130.aspx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://windowsclient.net/&quot;&gt;http://windowsclient.net/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/2274719719509826062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/tutorial-wpf-part-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2274719719509826062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2274719719509826062'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/tutorial-wpf-part-i.html' title='About WPF'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-2884326725831368568</id><published>2011-12-08T23:27:00.001+02:00</published><updated>2011-12-09T12:04:15.371+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><title type='text'>WPF: Radial Panel, custom panel</title><content type='html'>Here is a cool &#39;custom panel&#39; I&#39;ve found that might be very handy...&lt;br /&gt;
&lt;a href=&quot;http://jobijoy.blogspot.com/2008/04/simple-radial-panel-for-wpf-and.html&quot;&gt;The Joy Of Programming: A Simple Radial Panel for WPF and SilverLight&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Usage examples&lt;/span&gt;&lt;br /&gt;
Nicer selection menu, Clock digits, dynamic elements in radial presentation rather than list...&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Example outputs&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.codeproject.com/KB/WPF/SpiderControl/SpiderControl.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://www.codeproject.com/KB/WPF/SpiderControl/SpiderControl.png&quot; width=&quot;385&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
source -&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/KB/WPF/SpiderControl.aspx&quot;&gt;http://www.codeproject.com/KB/WPF/SpiderControl.aspx&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTcy5urf5v08rqDZF9cApNo6tBq4BXq9jiVNbHyf51uGFBszFkjWB3UkAKMYkGljPOaZbMmbFFOVOCRBnAZ4q8-h58O6-LGrGkJ9Bfapdm2ef9c10W6id6ABk9qEjr8O9O0gcPdUdlGCyl/s400/VSTS_RadialPanel.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTcy5urf5v08rqDZF9cApNo6tBq4BXq9jiVNbHyf51uGFBszFkjWB3UkAKMYkGljPOaZbMmbFFOVOCRBnAZ4q8-h58O6-LGrGkJ9Bfapdm2ef9c10W6id6ABk9qEjr8O9O0gcPdUdlGCyl/s400/VSTS_RadialPanel.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTcy5urf5v08rqDZF9cApNo6tBq4BXq9jiVNbHyf51uGFBszFkjWB3UkAKMYkGljPOaZbMmbFFOVOCRBnAZ4q8-h58O6-LGrGkJ9Bfapdm2ef9c10W6id6ABk9qEjr8O9O0gcPdUdlGCyl/s400/VSTS_RadialPanel.jpg&quot; width=&quot;331&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/2884326725831368568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-radial-panel-custom-panel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2884326725831368568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/2884326725831368568'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-radial-panel-custom-panel.html' title='WPF: Radial Panel, custom panel'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTcy5urf5v08rqDZF9cApNo6tBq4BXq9jiVNbHyf51uGFBszFkjWB3UkAKMYkGljPOaZbMmbFFOVOCRBnAZ4q8-h58O6-LGrGkJ9Bfapdm2ef9c10W6id6ABk9qEjr8O9O0gcPdUdlGCyl/s72-c/VSTS_RadialPanel.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-7807350380060963058</id><published>2011-12-08T23:16:00.001+02:00</published><updated>2011-12-09T09:30:28.077+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="WPF"/><category scheme="http://www.blogger.com/atom/ns#" term="XAML"/><title type='text'>WPF: Bulletdecorator XAML example</title><content type='html'>&lt;b&gt;BulletDecorator&lt;/b&gt; is basically like any editor bullet (like MS word&#39;s bullet). You can specify how to draw the bullet itself and decorate what ever you need.&lt;br /&gt;
&lt;br /&gt;
Suppose we want to do the following effect in WPF:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;This is a bullet&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;Here is the source for it:&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;6&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: #a31515;&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;BulletDecorator&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;BulletDecorator.Bullet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;Polygon&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Margin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot; 2, 0, 0, 0&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Points&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0, 5 5, 0 10, 5 5, 10&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Fill&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot; Blue&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;BulletDecorator.Bullet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #a31515;&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;TextBlock&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Margin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;10, 0, 0, 0&quot;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt; Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;This is a bullet&quot; /&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: #a31515;&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;BulletDecorator&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
And here is the results:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPh7gVCwEdKuUJzsyVhIsXIB9LhymVhJWsaFOGrUF5luhpg5pSm_NPM8AsJHUM0dRoqfJYsomrbKw-vFuEksG3DmUGKXgS0KIAZ3iVBQwjgDftmJfl3VcmFgn3e2WDnFs1v1LiEDpNNhBQ/s1600/BulletDecorator.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPh7gVCwEdKuUJzsyVhIsXIB9LhymVhJWsaFOGrUF5luhpg5pSm_NPM8AsJHUM0dRoqfJYsomrbKw-vFuEksG3DmUGKXgS0KIAZ3iVBQwjgDftmJfl3VcmFgn3e2WDnFs1v1LiEDpNNhBQ/s1600/BulletDecorator.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source -&amp;nbsp;&lt;a href=&quot;http://w3mentor.com/learn/asp-dot-net-c-sharp/wpf-net/controls/bulletdecorator-in-wpf/&quot;&gt;Bulletdecorator in WPF | Controls | w3mentor&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/7807350380060963058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-bulletdecorator-xaml-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7807350380060963058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/7807350380060963058'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/wpf-bulletdecorator-xaml-example.html' title='WPF: Bulletdecorator XAML example'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPh7gVCwEdKuUJzsyVhIsXIB9LhymVhJWsaFOGrUF5luhpg5pSm_NPM8AsJHUM0dRoqfJYsomrbKw-vFuEksG3DmUGKXgS0KIAZ3iVBQwjgDftmJfl3VcmFgn3e2WDnFs1v1LiEDpNNhBQ/s72-c/BulletDecorator.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-6740285088293911717</id><published>2011-12-07T10:22:00.002+02:00</published><updated>2011-12-07T18:26:43.313+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Best practices"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="Productivity"/><category scheme="http://www.blogger.com/atom/ns#" term="Snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Tweaks"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio - IDE"/><title type='text'>TUTORIAL: VS - Creating Code Snippets - CodeProject</title><content type='html'>&lt;div&gt;I was in the middle of creating my experiance/article about the &lt;b&gt;snippets&lt;/b&gt; subject when I got an email from &lt;a href=&quot;http://www.codeproject.com/&quot;&gt;http://www.codeproject.com/&lt;/a&gt; with this wonderful article.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a href=&quot;http://www.codeproject.com/KB/dotnet/extendingvisualstudio1.aspx&quot;&gt;Extending Visual Studio Part 1 - Creating Code Snippets - CodeProject&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I&#39;ve already created some snippets, feel free to use them:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;&#39;Decorator-Pattern&#39; snippet&lt;/b&gt; (activation: dp_decorator + TAB&lt;tab&gt;):&lt;/tab&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;utf-8&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; ?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;  &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Format&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Decorator DP&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;dp_decorator&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Code snippet for decorator design pattern&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;S.O&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Expansion&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Component&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Component name&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Component&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Decorator&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Decorator name&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Decorator&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;                &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;csharp&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;// Decorator patern:&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: grey;&quot;&gt;// http://en.wikipedia.org/wiki/Decorator_pattern#Structure&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;// http://www.dofactory.com/Patterns/PatternDecorator.aspx&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: grey;&quot;&gt;abstract class $Component$&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;public abstract void Operation();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt; &lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;abstract class $Decorator$ : $Component$&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;protected $Component$ _$Component$;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt; &lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;public void SetComponent($Component$ component)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: grey;&quot;&gt;this._$Component$ = component;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt; &lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;public override void Operation()&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: grey;&quot;&gt;if (_$Component$ != null)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: grey;&quot;&gt;_$Component$.Operation();&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: grey;&quot;&gt;// + [your operation here]&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: grey;&quot;&gt;$end$&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;The &lt;b&gt;&#39;Event changed property&#39; snippet&lt;/b&gt; (eprop +&amp;nbsp;TAB):&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;utf-8&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; ?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;  &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Format&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;event changed property&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;eprop&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Code snippet for eprop...&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;SO&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Expansion&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Editable&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;prop_name&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;property name&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Function&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;PropName()&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Function&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;PropName&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Editable&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;prop_type&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;property type&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;ToolTip&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Function&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;PropType()&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Function&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Object&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Default&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Literal&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;csharp&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;#region $prop_name$&lt;/span&gt;&lt;/li&gt;
&lt;li&gt; &lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// Occurs when $prop_name$ changes.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;public event EventHandler $prop_name$Changed;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt; &lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// Raises the &lt;see cref=&quot;E:$prop_name$Changed&quot;&gt; event.&lt;/see&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;param name=&quot;e&quot; /&gt;The &lt;see cref=&quot;System.EventArgs&quot;&gt; instance containing the event data.&lt;/see&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;protected virtual void On$prop_name$Changed(EventArgs e)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: grey;&quot;&gt;if ($prop_name$Changed != null)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: grey;&quot;&gt;$prop_name$Changed(this, e);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt; &lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;private $prop_type$ _$prop_name$ = null;$end$&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;summary&gt;&lt;/summary&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// Gets or sets the type of the region.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;value&gt;&lt;/value&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// The type of the region.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;/// &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;public $prop_type$ $prop_name$&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: grey;&quot;&gt;get { return _$prop_name$; }&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: grey;&quot;&gt;set&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                &lt;span style=&quot;color: grey;&quot;&gt;if (_$prop_name$ != value)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: grey;&quot;&gt;{&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: grey;&quot;&gt;_$prop_name$ = value;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt; &lt;/li&gt;
&lt;li&gt;                    &lt;span style=&quot;color: grey;&quot;&gt;On$prop_name$Changed(new EventArgs());&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: grey;&quot;&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: grey;&quot;&gt;} &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: grey;&quot;&gt;#endregion            &lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;And the &lt;b&gt;&#39;TODO&#39; snippet&lt;/b&gt; (TD + TAB&lt;tab&gt;), need some polish like auto date/time stamp, priority...:&lt;/tab&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;xml&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;version&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;encoding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;utf-8&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; ?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;  &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Format&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1.0.0&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;TODO&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;TD&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Shortcut&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Code snippet for TODO...&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;SO&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Author&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Expansion&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetType&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;SnippetTypes&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Header&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Declarations&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;csharp&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;span style=&quot;color: grey;&quot;&gt;// TODO:P, TimeStamp, S.O: $end$&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;]]&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Code&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;Snippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippet&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;CodeSnippets&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;My advice&lt;/b&gt;&lt;/i&gt;: if you already created a code pattern twice (meaning - you copied and pasted a code and renamed some variables and function/property names), add it to your snippets, you&#39;ll need it and it will save time.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;REMARK&lt;/b&gt;: Please follow the codeproject artical if you wish to install/use them...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/6740285088293911717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/tutorial-vs-creating-code-snippets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6740285088293911717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6740285088293911717'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/tutorial-vs-creating-code-snippets.html' title='TUTORIAL: VS - Creating Code Snippets - CodeProject'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-8297511834113622132</id><published>2011-12-06T22:59:00.000+02:00</published><updated>2011-12-06T22:59:59.224+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="batch"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Scripting"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>TIP: Creating a file, fast, with incremental values (using FOR /L).</title><content type='html'>I needed to create a file (called urls.txt) that contains lots of image urls, here is the solution:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Create a batch file (I&#39;ll call it gget.bat).&lt;/li&gt;
&lt;li&gt;copy and paste the following to gget.bat file.&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
REM ~~~~~ gget.bat file content&amp;nbsp;~~~~~~~~~~~~~~~&lt;br /&gt;
&lt;br /&gt;
@echo off&lt;br /&gt;
for /L %%a in (0,1,1984) do (&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;echo http://domain.com/images/%%a.jpg &amp;gt;&amp;gt;c:\urls.txt&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
ECHO DONE!&lt;br /&gt;
pause&lt;br /&gt;
&lt;div&gt;REM ~~~~~ gget.bat file content&amp;nbsp;~~~~~~~~~~~~~~~&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;change the numbers in &quot;(0,1,1984)&quot; to the desired ones (please&amp;nbsp;&lt;a href=&quot;http://www.robvanderwoude.com/ntfor.php&quot;&gt;read more about &#39;FOR /L&#39; here&lt;/a&gt;.).&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;the result is a file &#39;c:\urls.txt&#39; that contains this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;http://domain.com/images//0.jpg&amp;nbsp;&lt;/div&gt;&lt;div&gt;http://domain.com/images//1.jpg&amp;nbsp;&lt;/div&gt;&lt;div&gt;http://domain.com/images//2.jpg&amp;nbsp;&lt;/div&gt;&lt;div&gt;http://domain.com/images//3.jpg&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;div&gt;http://domain.com/images//1983.jpg&amp;nbsp;&lt;/div&gt;&lt;div&gt;http://domain.com/images//1984.jpg&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Hope it helps...&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/8297511834113622132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/tip-creating-file-fast-with-incremental.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8297511834113622132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/8297511834113622132'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/tip-creating-file-fast-with-incremental.html' title='TIP: Creating a file, fast, with incremental values (using FOR /L).'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-1960483072984701025</id><published>2011-12-05T22:13:00.000+02:00</published><updated>2011-12-05T22:13:32.777+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="batch"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>TIP - How to check an errorlevel of a program...</title><content type='html'>First understand a little about error levels...&amp;nbsp;&lt;a dir=&quot;rtl&quot; href=&quot;http://www.robvanderwoude.com/errorlevel.php&quot;&gt;Batch files - Errorlevels&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
Next... Write this code the a batch file and run it (change the&amp;nbsp;&lt;i style=&quot;font-size: small;&quot;&gt;runme.exe&lt;/i&gt;&amp;nbsp;to the program that you wish to check the error-level).&lt;br /&gt;
#~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;runme.exe&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;ECHO.%ERRORLEVEL%&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;PAUSE&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;#~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;
&lt;br /&gt;
Hope it helps...&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/1960483072984701025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/12/tip-how-to-check-errorlevel-of-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1960483072984701025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/1960483072984701025'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/12/tip-how-to-check-errorlevel-of-program.html' title='TIP - How to check an errorlevel of a program...'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-6100039409913658016</id><published>2011-11-15T00:22:00.000+02:00</published><updated>2011-11-15T00:22:56.607+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Tweaks"/><title type='text'>Example: C# dynamic &#39;Enum&#39; like solution.</title><content type='html'>Example usage:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt; &lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt; &lt;ol start=&quot;1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;namespace&lt;/span&gt; GuiLib.TeraRegion&lt;/li&gt;
&lt;li&gt;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;TeraRegionModel&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Dynamic enum of RegionTypes.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;remarks&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;* This is a [Flags] and normal mixed enum!&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; * 0 is reserved! it&#39;s not used!&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; * 1 is reserved! it&#39;s void.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Find it&#39;s max and assigne it&#39;s next value like this:&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var next_enum_val = RegionTypes.Values.Max&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;ulong&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;();&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RegionTypes.Add(&quot;new_item&quot;, next_enum_val*2);&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/remarks&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt;&amp;gt; RegionTypes = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt;&amp;gt;()&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&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;color: #a31515;&quot;&gt;&quot;void&quot;&lt;/span&gt;, 1}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;#region&lt;/span&gt; RegionType&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Occurs when RegionType changes.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;event&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;EventHandler&lt;/span&gt; RegionTypeChanged;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Raises the &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;see cref=&quot;E:RegionTypeChanged&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; event.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;param name=&quot;e&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;The &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;see cref=&quot;System.EventArgs&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; instance containing the event data.&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/param&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;virtual&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; OnRegionTypeChanged(&lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: blue;&quot;&gt;if&lt;/span&gt; (RegionTypeChanged != &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RegionTypeChanged(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;, e);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt; _RegionType = 1;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Gets or sets the type of the region.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;value&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; The type of the region.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/value&amp;gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt; RegionType&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li&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;color: blue;&quot;&gt;get&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt; _RegionType;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;color: blue;&quot;&gt;set&lt;/span&gt;&lt;/li&gt;
&lt;li&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;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_RegionType != &lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;)&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;_RegionType = &lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;OnRegionTypeChanged(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;());&lt;/li&gt;
&lt;li&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&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;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;#endregion&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/li&gt;
&lt;li&gt;}&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/6100039409913658016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/11/example-c-dynamic-enum-like-solution.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6100039409913658016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/6100039409913658016'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/11/example-c-dynamic-enum-like-solution.html' title='Example: C# dynamic &#39;Enum&#39; like solution.'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7218623523256427975.post-3193694840638893717</id><published>2011-11-14T23:16:00.002+02:00</published><updated>2011-11-22T19:50:55.132+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Code"/><category scheme="http://www.blogger.com/atom/ns#" term="examples"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="Tweaks"/><title type='text'>Tip: C# dynamic &#39;Enum&#39; like solution.</title><content type='html'>Hi,&lt;br /&gt;
This is very usefull if you wish to be able to create dynamic enums.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Motivation&lt;/span&gt;&lt;br /&gt;
* You need to enumerate something but wish to add items to it in runtime (e.g. your server should support v1 protocol and v2 protocol where v2 protocol extends v1.enum).&lt;br /&gt;
&lt;br /&gt;
* You wish to extand this enum dynamically by an outside addin.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;Solution and prof&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-bottom-color: rgb(0, 0, 128); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(0, 0, 128); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(0, 0, 128); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(0, 0, 128); border-top-style: solid; border-top-width: 1px; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 10pt;&quot;&gt;&lt;div style=&quot;background: #000080; color: white; font-family: Verdana, Tahoma, Arial, sans-serif; font-weight: bold; padding: 2px 5px;&quot;&gt;Code Snippet&lt;/div&gt;&lt;div style=&quot;background: #fff; max-height: 300px; overflow: auto;&quot;&gt;&lt;ol start=&quot;12&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 5px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;enum&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;MyEnum&lt;/span&gt; : &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// NOTICE: string_name = ulong_value,&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;first = 2&amp;lt;&amp;lt;0,&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;second = 2&amp;lt;&amp;lt;1,&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;last = 2&amp;lt;&amp;lt;2,&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;max = 2 &amp;lt;&amp;lt; 63&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// dynamic string name = dynamic ulong value!&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;}&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt;&amp;gt; DynamicEnum1 = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;ulong&lt;/span&gt;&amp;gt;()&lt;/li&gt;
&lt;li&gt;{&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;first&quot;&lt;/span&gt;, 2 &amp;lt;&amp;lt; 0},&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;second&quot;&lt;/span&gt;, 2 &amp;lt;&amp;lt; 1},&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;last&quot;&lt;/span&gt;, 2 &amp;lt;&amp;lt; 2},&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;max&quot;&lt;/span&gt;, 2 &amp;lt;&amp;lt; 63}&lt;/li&gt;
&lt;li&gt;};&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; usage()&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;{&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;MyEnum&lt;/span&gt; qwe = &lt;span style=&quot;color: #2b91af;&quot;&gt;MyEnum&lt;/span&gt;.first;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DynamicEnum1.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;another_one&quot;&lt;/span&gt;, 2 &amp;lt;&amp;lt; 3);&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;UInt64&lt;/span&gt; qwe2 = DynamicEnum1[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;first&quot;&lt;/span&gt;];&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;background: #f3f3f3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;// (UInt64)qwe == qwe2!!&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;}&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Hope it helps.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shloemi.blogspot.com/feeds/3193694840638893717/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shloemi.blogspot.com/2011/11/tip-c-dynamic-enum-like-solution.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/3193694840638893717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7218623523256427975/posts/default/3193694840638893717'/><link rel='alternate' type='text/html' href='http://shloemi.blogspot.com/2011/11/tip-c-dynamic-enum-like-solution.html' title='Tip: C# dynamic &#39;Enum&#39; like solution.'/><author><name>Shlomi O.</name><uri>http://www.blogger.com/profile/09905484986732700707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPxNJ9jH6D39voTcCBjNj_aH5GhAC1S66hpjvkoPiXwkQk2eSJjFE8ZyYAPXy4ricdZM3f1cq3LImGLsOa9ATmTnxCCdOpcg-YOcrbwdYcDE0VIqacuV6ve_HQZ22POA/s220/080822+-+Me.JPG'/></author><thr:total>5</thr:total></entry></feed>