<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Buy Betnovate Without Prescription</title>
	<atom:link href="http://elegantcode.com/author/blagunas/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/04/25/building-ig-outlook-part-1setting-up-the-prism-application/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-ig-outlook-part-1setting-up-the-prism-application</link>
		<comments>http://elegantcode.com/2012/04/25/building-ig-outlook-part-1setting-up-the-prism-application/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 20:03:18 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Infragistics]]></category>
		<category><![CDATA[prism]]></category>

		<guid isPermaLink="false">http://elegantcode.com/?p=5158</guid>
		<description><![CDATA[Buy Retin-A Without Prescription, This is the first video in a series that will take you step-by-step on building a Prism application that mimics Microsoft Outlook.&#160; This video covers how to setup a multi-platform Prism application that targets WPF and Silverlight.&#160; I show you how to setup your directory structure, as well as the solution/project [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Retin-A Without Prescription</b>, This is the first video in a series that will take you step-by-step on building a Prism application that mimics Microsoft Outlook.&#160; This video covers how to setup a multi-platform Prism application that targets WPF and Silverlight.&#160; I show you how to setup your directory structure, as well as the solution/project structure inside Visual Studio.&#160; We also create a functional Silverlight and WPF shell application and see our first glimpse of code sharing with the bootstrapper.</p>  <p>Watch the video on <a href="http://xaml.tv/2012/04/25/building-ig-outlook-part-1-setting-up-the-prism-application/" target="_blank">Xaml TV</a>.</p>.  Retin-A use.  Order Retin-A from mexican pharmacy.  Online Retin-A without a prescription.  Retin-A brand name.  Fast shipping Retin-A.  Retin-A cost.  Retin-A class.  Retin-A photos.  Retin-A natural.  Purchase Retin-A online.  Where can i order Retin-A without prescription.  Retin-A online cod.  Retin-A pharmacy.  Retin-A from canadian pharmacy.  Where can i find Retin-A online.  Retin-A steet value.  Where can i buy cheapest Retin-A online.  Generic Retin-A.  Retin-A long term.  Retin-A without a prescription.  Retin-A for sale.  Taking Retin-A.  Retin-A trusted pharmacy reviews.  Retin-A from mexico.  Retin-A pics.  Order Retin-A online overnight delivery no prescription.  Buy Retin-A online no prescription.  Retin-A steet value.  Retin-A description.  Order Retin-A from United States pharmacy.  Retin-A duration.  Where can i find Retin-A online.  Where can i cheapest Retin-A online.  No prescription Retin-A online.  Taking Retin-A.  Online buy Retin-A without a prescription.  Order Retin-A no prescription.  Effects of Retin-A.  Retin-A online cod.  Retin-A treatment.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4568'>Buy Acomplia Without Prescription</a>. <a href='http://elegantcode.com/?p=4399'>Periactin For Sale</a>. <a href='http://elegantcode.com/?p=4721'>Buy Flonase Without Prescription</a>. <a href='http://elegantcode.com/?p=4234'>Buy Periactin Without Prescription</a>. <a href='http://elegantcode.com/?p=4203'>Buy Armour Without Prescription</a>. <a href='http://elegantcode.com/?p=4302'>Phenergan wiki</a>. <a href='http://elegantcode.com/?p=4268'>Soma maximum dosage</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax treatment</a>. <a href='http://elegantcode.com/?p=4578'>Cialis price, coupon</a>. <a href='http://elegantcode.com/?p=4189'>Flexeril price</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.themusclecarplace.com/?p=5610'>Buy Retin-A Without Prescription</a>. <a href='http://changecamp.ca/?p=603'>Buy Retin-A Without Prescription</a>. <a href='http://linuxologist.com/?p=2089'>Buy Retin-A Without Prescription</a>. <a href='http://www.rideriseroar.com/?p=133'>Buy Retin-A Without Prescription</a>. <a href='http://blog.farmland.org/?p=4178'>Buy Retin-A Without Prescription</a>. <a href='http://www.leaduganda.org/?p=3533'>Retin-A wiki</a>. <a href='http://4realz.net/?p=2743'>Rx free Retin-A</a>. <a href='http://tvtownhall.com/?p=1918'>Buying Retin-A online over the counter</a>. <a href='http://reversemortgagedaily.com/?p=14847'>Retin-A online cod</a>. <a href='http://home.officesnapshots.com/?p=375'>Retin-A canada, mexico, india</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/04/25/building-ig-outlook-part-1setting-up-the-prism-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/04/23/building-ig-outlook-introduction-to-a-prism-app/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-ig-outlook-introduction-to-a-prism-app</link>
		<comments>http://elegantcode.com/2012/04/23/building-ig-outlook-introduction-to-a-prism-app/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 01:41:57 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Infragistics]]></category>
		<category><![CDATA[NetAdvantage]]></category>
		<category><![CDATA[prism]]></category>

		<guid isPermaLink="false">http://elegantcode.com/?p=5156</guid>
		<description><![CDATA[Amoxicillin For Sale, Often when learning a technology you start by searching the web.&#160; You look for videos, blogs, articles, samples, and examples.&#160; What you start to realize is that everything you find is very simple “demo” code.&#160; That’s code that shows how to implement a simple feature in a non-realistic demo.&#160; Then you start [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Amoxicillin For Sale</b>, Often when learning a technology you start by searching the web.&#160; You look for videos, blogs, articles, samples, and examples.&#160; What you start to realize is that everything you find is very simple “demo” code.&#160; That’s code that shows how to implement a simple feature in a non-realistic demo.&#160; Then you start looking for “production” code examples.&#160; That’s code that represents a more realistic implementation of an application in a production environment.&#160; This type of resource is very difficult to find.&#160; Why?&#160; Mainly, because it is very time consuming to create such examples.</p>  <p>This scenario is no different when trying to learn Prism.&#160; You probably first start by reading though the <a href="http://msdn.microsoft.com/en-us/library/gg406140.aspx" target="_blank">documentation</a>.&#160; Next, you head on over to Pluralsight and watch my <a href="http://www.pluralsight-training.net/microsoft/Courses/TableOfContents?courseName=prism-introduction" target="_blank">Introduction to Prism</a> course.&#160; Now that you know all the basics you start searching the web for examples for specific scenarios.&#160; How do I do “x” and “y”?&#160; How do I apply this sample code to my application?&#160; Hopefully I can help you answer those questions.</p>  <p>I am starting a new video series called Building IG Outlook.&#160; I will take you step-by-step on building a Prism application that mimics Microsoft Outlook.&#160; We will be discussing the following key areas in no specific order:</p>  <ol>   <li>Application architecture/structure </li>    <li>Multi-platform support (WPF and Silverlight) </li>    <li>Commanding </li>    <li>Event aggregation </li>    <li>Custom RegionAdapters </li>    <li>Custom RegionBehaviors </li>    <li>Navigation (OutlookBar, Ribbon, and View interaction) </li>    <li>MVVM (no frameworks needed) </li> </ol>  <p>Like most production applications we will have a dependency on a 3rd party toolset.&#160; I will be using Infragistics NetAdvantage for WPF and Silverlight.&#160; If you don’t own Infragistics you can download the trial or purchase the suite so you can compile and run all the sample code.&#160; Otherwise, you will have to modify the code to work with your vendor of choice.</p>  <p>I hope this series will help you gain a better understanding of how you can use the various aspects of Prism to build your applications.&#160; This will be a long series and I plan to record at least one a week depending on my traveling schedule.&#160; If you have any questions or would like to see something specific be sure to let me know, and I will see if I can squeeze an example in the application.</p>.  Amoxicillin alternatives.  Amoxicillin dangers.  Amoxicillin schedule.  Amoxicillin for sale.  Is Amoxicillin safe.  Australia, uk, us, usa.  Amoxicillin forum.  Amoxicillin overnight.  Cheap Amoxicillin no rx.  Online Amoxicillin without a prescription.  Amoxicillin dosage.  Canada, mexico, india.  About Amoxicillin.  Order Amoxicillin from mexican pharmacy.  Amoxicillin images.  Amoxicillin class.  Amoxicillin long term.  Amoxicillin samples.  Online buying Amoxicillin hcl.  Where can i buy cheapest Amoxicillin online.  Amoxicillin from mexico.  Amoxicillin cost.  Amoxicillin from canada.  Generic Amoxicillin.  Buy cheap Amoxicillin no rx.  Amoxicillin recreational.  Purchase Amoxicillin online.  Amoxicillin maximum dosage.  Buy cheap Amoxicillin.  Where can i order Amoxicillin without prescription.  Buying Amoxicillin online over the counter.  Amoxicillin without prescription.  Amoxicillin used for.  After Amoxicillin.  Buy Amoxicillin without prescription.  Amoxicillin brand name.  Real brand Amoxicillin online.  Amoxicillin australia, uk, us, usa.  Amoxicillin from canadian pharmacy.  Fast shipping Amoxicillin.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4899'>Buy Macrobid Without Prescription</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan For Sale</a>. <a href='http://elegantcode.com/?p=4197'>Buy Diflucan Without Prescription</a>. <a href='http://elegantcode.com/?p=4459'>Buy Avodart Without Prescription</a>. <a href='http://elegantcode.com/?p=4411'>Buy Prednisolone Without Prescription</a>. <a href='http://elegantcode.com/?p=4522'>Order Flonase from United States pharmacy</a>. <a href='http://elegantcode.com/?p=4758'>Purchase Atenolol online</a>. <a href='http://elegantcode.com/?p=4460'>Proscar overnight</a>. <a href='http://elegantcode.com/?p=4423'>Where can i cheapest Antabuse online</a>. <a href='http://elegantcode.com/?p=5060'>Methotrexate forum</a>.<br />
<b>Trackbacks from:</b> <a href='http://home.officesnapshots.com/?p=373'>Amoxicillin For Sale</a>. <a href='http://reversemortgagedaily.com/?p=14827'>Amoxicillin For Sale</a>. <a href='http://social-blend.com/?p=1325'>Amoxicillin For Sale</a>. <a href='http://tvtownhall.com/?p=1960'>Amoxicillin For Sale</a>. <a href='http://www.quarterlives.com/?p=1287'>Amoxicillin For Sale</a>. <a href='http://evanrapoport.com/?p=950'>Amoxicillin dose</a>. <a href='http://www.rideriseroar.com/?p=128'>Generic Amoxicillin</a>. <a href='http://nysccc.org/?p='>Herbal Amoxicillin</a>. <a href='http://www.themusclecarplace.com/?p=5635'>Amoxicillin street price</a>. <a href='http://www.thegriffonnews.com/?p=10642'>Where can i order Amoxicillin without prescription</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/04/23/building-ig-outlook-introduction-to-a-prism-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/04/18/create-a-custom-prism-regionadapter/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-a-custom-prism-regionadapter</link>
		<comments>http://elegantcode.com/2012/04/18/create-a-custom-prism-regionadapter/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 19:26:48 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Prism]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[prism]]></category>

		<guid isPermaLink="false">http://elegantcode.com/?p=5148</guid>
		<description><![CDATA[Don’t want to read the article?&#160; Watch the video tutorial on Xaml TV. Prism provides 4 region adapters out of the box for you: ContentControlRegionAdapter SelectorRegionAdaptor ItemsControlRegionAdapter TabControlRegionAdapter (Silverlight only) Buy Flagyl Without Prescription, Well, what happens when you want to use a different control as a region host?&#160; Simple.&#160; You need to write a [...]]]></description>
			<content:encoded><![CDATA[<p> <p>Don’t want to read the article?&#160; Watch the video tutorial on <a href="http://xaml.tv/2012/04/18/create-a-custom-prism-regionadapter/" target="_blank">Xaml TV</a>.</p>  <p>Prism provides 4 region adapters out of the box for you:</p>  <ul>   <li>ContentControlRegionAdapter </li>    <li>SelectorRegionAdaptor </li>    <li>ItemsControlRegionAdapter </li>    <li>TabControlRegionAdapter (Silverlight only) </li> </ul>  <p> <b>Buy Flagyl Without Prescription</b>, Well, what happens when you want to use a different control as a region host?&#160; Simple.&#160; You need to write a custom region adapter for it.&#160; Is it hard you ask?&#160; No it is quite easy.&#160; Let’s write one for the StackPanel.</p>  <p>Start by creating a class the derive from and implements the base abstract class RegionAdapterBase&lt;T&gt;.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:42841886-07a5-4824-b616-f916daec35cc" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">StackPanelRegionAdapter</span> : <span style="color:#2b91af">RegionAdapterBase</span>&lt;<span style="color:#2b91af">StackPanel</span>&gt;<br> {<br>     <span style="color:#0000ff">public</span> StackPanelRegionAdapter(<span style="color:#2b91af">IRegionBehaviorFactory</span> factory)<br>         : <span style="color:#0000ff">base</span>(factory)<br>     {<br> <br>     }<br> <br>     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">override</span> <span style="color:#0000ff">void</span> Adapt(<span style="color:#2b91af">IRegion</span> region, <span style="color:#2b91af">StackPanel</span> regionTarget)<br>     {<br>         region.Views.CollectionChanged += (s, e) =&gt;<br>             {<br>                 <span style="color:#0000ff">if</span> (e.Action == <span style="color:#2b91af">NotifyCollectionChangedAction</span>.Add)<br>                 {<br>                     <span style="color:#0000ff">foreach</span> (<span style="color:#2b91af">FrameworkElement</span> element <span style="color:#0000ff">in</span> e.NewItems)<br>                     {<br>                         regionTarget.Children.Add(element);<br>                     }<br>                 }<br> <br>                 <span style="color:#008000">//implement remove</span><br>             };<br>     }<br> <br>     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">override</span> <span style="color:#2b91af">IRegion</span> CreateRegion()<br>     {<br>         <span style="color:#0000ff">return</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">AllActiveRegion</span>();<br>     }<br> }</div> </div> </div>  <p>Notice that there are two methods we need to implement. Adapt and CreateRegion.&#160; CreateRegion return the type of region we will need.&#160; In our case we want to support multiple views so we need to return an instance of an AllActiveRegion.&#160; If we only needed support for one view at a time we would return a SingleActiveRegion.&#160; The Adapt method is responsible for adapting the region to our control.&#160; This is where we will add and remove the views to or host control.</p>  <p>Now we simply have to tell Prism about our new RegionAdapter.&#160; We do this in the bootstrapper.&#160; Simply override the ConfigureRegionAdapterMappings method as follows:</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:a055d5d5-0c63-4fe5-a67e-cd8a5b2b7ee3" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>kjøpe Flagyl på nett, köpa Flagyl online</b>, <b>Is Flagyl addictive</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="color:#0000ff">protected</span> <span style="color:#0000ff">override</span> Microsoft.Practices.Prism.Regions.<span style="color:#2b91af">RegionAdapterMappings</span> ConfigureRegionAdapterMappings()<br> {<br>     <span style="color:#2b91af">RegionAdapterMappings</span> mappings = <span style="color:#0000ff">base</span>.ConfigureRegionAdapterMappings();<br>     mappings.RegisterMapping(<span style="color:#0000ff">typeof</span>(<span style="color:#2b91af">StackPanel</span>), <b>Flagyl dose</b>, <b>Buy generic Flagyl</b>, Container.Resolve&lt;<span style="color:#2b91af">StackPanelRegionAdapter</span>&gt;());<br>     <span style="color:#0000ff">return</span> mappings;<br> }</div> </div> </div>  <p>That’s it.&#160; Now you can use a StackPanel as a region host:</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:acfd8aa2-6c0e-40af-8018-6d9021cfd008" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, <b>Flagyl natural</b>, <b>Flagyl coupon</b>, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">StackPanel</span><span style="color:#ff0000"> Orientation</span><span style="color:#0000ff">=&quot;Horizontal&quot;</span><br>            <span style="color:#ff0000"> prism</span><span style="color:#0000ff">:</span><span style="color:#ff0000">RegionManager.RegionName</span><span style="color:#0000ff">=&quot;MyRegion&quot; /&gt;</span></div> </div> </div>  <p>&#160;</p>  <p><a href="http://brianlagunas.com/downloads/source/prism-custom-region-adapter.zip">Download the sample application.</a></p>.  Order Flagyl online c.o.d.  Ordering Flagyl online.  Purchase Flagyl for sale.  Buy Flagyl from mexico.  Herbal Flagyl.  Fast shipping Flagyl.  Flagyl description.  Buy Flagyl online no prescription.  Generic Flagyl.  Buy cheap Flagyl.  Ordering Flagyl online.  My Flagyl experience.  Where can i find Flagyl online.  Is Flagyl addictive.  Flagyl no prescription.  Order Flagyl from mexican pharmacy.  Buy generic Flagyl.  Buy Flagyl online cod.  Flagyl coupon.  Buy cheap Flagyl no rx.  Flagyl recreational.  Flagyl pics.  Flagyl price.  Get Flagyl.  Low dose Flagyl.  Flagyl duration.  Flagyl from mexico.  Flagyl dosage.  Doses Flagyl work.  Flagyl without a prescription.  Flagyl maximum dosage.  Canada, mexico, india.  Comprar en línea Flagyl, comprar Flagyl baratos.  Where can i buy Flagyl online.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4758'>Buy Atenolol Without Prescription</a>. <a href='http://elegantcode.com/?p=4553'>Buy Female Pink Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4560'>Vermox For Sale</a>. <a href='http://elegantcode.com/?p=4432'>Buy Erythromycin Without Prescription</a>. <a href='http://elegantcode.com/?p=4781'>Lasix For Sale</a>. <a href='http://elegantcode.com/?p=4234'>Periactin online cod</a>. <a href='http://elegantcode.com/?p=4311'>Topamax overnight</a>. <a href='http://elegantcode.com/?p=4755'>Zovirax natural</a>. <a href='http://elegantcode.com/?p=4700'>Get Inderal</a>. <a href='http://elegantcode.com/?p=4983'>Cheap Prozac</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.thegriffonnews.com/?p=10585'>Buy Flagyl Without Prescription</a>. <a href='http://www.independentworldreport.com/?p=2637'>Buy Flagyl Without Prescription</a>. <a href='http://evanrapoport.com/?p=922'>Buy Flagyl Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=5538'>Buy Flagyl Without Prescription</a>. <a href='http://changecamp.ca/?p=600'>Buy Flagyl Without Prescription</a>. <a href='http://www.leaduganda.org/?p=3510'>Online buy Flagyl without a prescription</a>. <a href='http://4realz.net/?p=2649'>Online buying Flagyl hcl</a>. <a href='http://tvtownhall.com/?p=1906'>Is Flagyl addictive</a>. <a href='http://reversemortgagedaily.com/?p=14807'>About Flagyl</a>. <a href='http://linuxologist.com/?p=1821'>Buy cheap Flagyl no rx</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/04/18/create-a-custom-prism-regionadapter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/04/11/validate-a-property-against-a-parent-collection/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=validate-a-property-against-a-parent-collection</link>
		<comments>http://elegantcode.com/2012/04/11/validate-a-property-against-a-parent-collection/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 00:34:53 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Infragistics]]></category>
		<category><![CDATA[Validation]]></category>
		<category><![CDATA[XamDataGrid]]></category>

		<guid isPermaLink="false">http://elegantcode.com/?p=5076</guid>
		<description><![CDATA[Retin-A For Sale, I was monitoring my Twitter feed, like I always do, and saw a tweet come through asking about how to validate an object’s property against it’s parent ObservableCollection in the Infragistics XamDataGrid.&#160; What this person was trying to accomplish was to validate a duplicate item in his data source.&#160; They have a [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Retin-A For Sale</b>, I was monitoring my Twitter feed, like I always do, and saw a tweet come through asking about how to validate an object’s property against it’s parent ObservableCollection in the <a href="http://www.infragistics.com/" target="_blank">Infragistics</a> XamDataGrid.&#160; What this person was trying to accomplish was to validate a duplicate item in his data source.&#160; They have a POCO object the implements the IDataErrorInfo interface, and an ObservableColletion&lt;POCO&gt; as the data source.&#160; They want to check the ObservableCollection&lt;POCO&gt; for a pre-existing item whenever a property value in a POCO changes.&#160; Obviously this is not a XamDataGrid issue, but rather an object design issue.&#160; So I decided to whip up a quick and dirty solution to solve this particular issue.</p>  <p>The approach I am going to take is to simply keep track of the parent collection from within the POCO object itself.&#160; I really like interfaces, so I started out by defining a simple interface my POCOs will implement.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:529a9bc1-603c-4055-8ca9-4d919906a746" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">interface</span> <span style="color:#2b91af">IHasParent</span><br> {<br>     <span style="color:#0000ff">object</span> Parent { <span style="color:#0000ff">get</span>; <span style="color:#0000ff">set</span>; }<br> }</div> </div> </div>  <p>Now let’s take a look at the simple POCO I will be using in this example.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:65d4cc86-7400-4989-b8ee-b7a14c796860" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 400px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">Person</span> : <span style="color:#2b91af">INotifyPropertyChanged</span>, <span style="color:#2b91af">IDataErrorInfo</span><br> {<br>     <span style="color:#0000ff">private</span> <span style="color:#0000ff">string</span> _firstName;<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> FirstName<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> _firstName; }<br>         <span style="color:#0000ff">set</span><br>         {<br>             _firstName = <span style="color:#0000ff">value</span>;<br>             OnPropertyChanged(<span style="color:#a31515">&quot;FirstName&quot;</span>);<br>         }<br>     }<br> <br>     <span style="color:#0000ff">private</span> <span style="color:#0000ff">string</span> _lastName;<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> LastName<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> _lastName; }<br>         <span style="color:#0000ff">set</span><br>         {<br>             _lastName = <span style="color:#0000ff">value</span>;<br>             OnPropertyChanged(<span style="color:#a31515">&quot;LastName&quot;</span>);<br>         }<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">event</span> <span style="color:#2b91af">PropertyChangedEventHandler</span> PropertyChanged;<br>     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">void</span> OnPropertyChanged(<span style="color:#0000ff">string</span> propertyName)<br>     {<br>         <span style="color:#0000ff">var</span> handler = PropertyChanged;<br>         <span style="color:#0000ff">if</span> (handler != <span style="color:#0000ff">null</span>)<br>             handler(<span style="color:#0000ff">this</span>, <span style="color:#0000ff">new</span> <span style="color:#2b91af">PropertyChangedEventArgs</span>(propertyName));<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> <span style="color:#0000ff">this</span>[<span style="color:#0000ff">string</span> columnName]<br>     {<br>         <span style="color:#0000ff">get</span><br>         {<br>             <span style="color:#0000ff">if</span> (columnName == <span style="color:#a31515">&quot;FirstName&quot;</span>)<br>             {<br>                 <span style="color:#0000ff">if</span> (<span style="color:#2b91af">String</span>.IsNullOrWhiteSpace(FirstName))<br>                     <span style="color:#0000ff">return</span> <span style="color:#a31515">&quot;First name cannot be empty&quot;</span>;<br>             }<br> <br>             <span style="color:#0000ff">if</span> (columnName == <span style="color:#a31515">&quot;LastName&quot;</span>)<br>             {<br>                 <span style="color:#0000ff">if</span> (<span style="color:#2b91af">String</span>.IsNullOrWhiteSpace(LastName))<br>                     <span style="color:#0000ff">return</span> <span style="color:#a31515">&quot;Last name cannot be empty&quot;</span>;<br>             }<br> <br>             <span style="color:#0000ff">return</span> <span style="color:#2b91af">String</span>.Empty;<br>         }<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> Error<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> <span style="color:#2b91af">String</span>.Empty; }<br>     }<br> }</div> </div> </div>  <p>Notice that we implement both the INotifyPropertyChanged interfaces as well as the IDataErrorInfo interface.&#160; The Next thing we need is a custom ObservableCollection to use as our data source.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:ff50d463-15c6-485f-985c-156a77efe0ab" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">HasParentObservableCollection</span>&lt;T&gt; : <span style="color:#2b91af">ObservableCollection</span>&lt;T&gt;<br> {<br>     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">override</span> <span style="color:#0000ff">void</span> InsertItem(<span style="color:#0000ff">int</span> index, T item)<br>     {<br>         <span style="color:#008000">//set the parent object when a new item is added to our collection</span><br>         <span style="color:#0000ff">if</span> (item != <span style="color:#0000ff">null</span> &amp;&amp; item <span style="color:#0000ff">is</span> <span style="color:#2b91af">IHasParent</span>)<br>             (item <span style="color:#0000ff">as</span> <span style="color:#2b91af">IHasParent</span>).Parent = <span style="color:#0000ff">this</span>;<br> <br>         <span style="color:#0000ff">base</span>.InsertItem(index, item);<br>     }<br> }</div> </div> </div>  <p>Notice that we are casting our item as the IHasParent interface and setting the Parent property accordingly.&#160; The next thing we need to do is have our POCO class implement the IHasPerson interface.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:86290b0b-8cad-4705-9067-dff871c468c6" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 500px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">Person</span> : <span style="color:#2b91af">INotifyPropertyChanged</span>, <span style="color:#2b91af">IDataErrorInfo</span>, <span style="color:#2b91af">IHasParent</span><br> {<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">object</span> Parent { <span style="color:#0000ff">get</span>; <span style="color:#0000ff">set</span>; }<br> <br>     <span style="color:#0000ff">private</span> <span style="color:#0000ff">string</span> _firstName;<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> FirstName<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> _firstName; }<br>         <span style="color:#0000ff">set</span><br>         {<br>             _firstName = <span style="color:#0000ff">value</span>;<br>             OnPropertyChanged(<span style="color:#a31515">&quot;FirstName&quot;</span>);<br>         }<br>     }<br> <br>     <span style="color:#0000ff">private</span> <span style="color:#0000ff">string</span> _lastName;<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> LastName<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> _lastName; }<br>         <span style="color:#0000ff">set</span><br>         {<br>             _lastName = <span style="color:#0000ff">value</span>;<br>             OnPropertyChanged(<span style="color:#a31515">&quot;LastName&quot;</span>);<br>         }<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">event</span> <span style="color:#2b91af">PropertyChangedEventHandler</span> PropertyChanged;<br>     <span style="color:#0000ff">protected</span> <span style="color:#0000ff">void</span> OnPropertyChanged(<span style="color:#0000ff">string</span> propertyName)<br>     {<br>         <span style="color:#0000ff">var</span> handler = PropertyChanged;<br>         <span style="color:#0000ff">if</span> (handler != <span style="color:#0000ff">null</span>)<br>             handler(<span style="color:#0000ff">this</span>, <span style="color:#0000ff">new</span> <span style="color:#2b91af">PropertyChangedEventArgs</span>(propertyName));<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> <span style="color:#0000ff">this</span>[<span style="color:#0000ff">string</span> columnName]<br>     {<br>         <span style="color:#0000ff">get</span><br>         {<br>             <span style="color:#0000ff">if</span> (columnName == <span style="color:#a31515">&quot;FirstName&quot;</span>)<br>             {<br>                 <span style="color:#0000ff">if</span> (<span style="color:#2b91af">String</span>.IsNullOrWhiteSpace(FirstName))<br>                     <span style="color:#0000ff">return</span> <span style="color:#a31515">&quot;First name cannot be empty&quot;</span>;<br>             }<br> <br>             <span style="color:#0000ff">if</span> (columnName == <span style="color:#a31515">&quot;LastName&quot;</span>)<br>             {<br>                 <span style="color:#0000ff">if</span> (<span style="color:#2b91af">String</span>.IsNullOrWhiteSpace(LastName))<br>                     <span style="color:#0000ff">return</span> <span style="color:#a31515">&quot;Last name cannot be empty&quot;</span>;<br> <br>                 <span style="color:#0000ff">if</span> (Parent != <span style="color:#0000ff">null</span> &amp;&amp; Parent <span style="color:#0000ff">is</span> <span style="color:#2b91af">IList</span>&lt;<span style="color:#2b91af">Person</span>&gt;)<br>                 {<br>                     <span style="color:#0000ff">var</span> list = (<span style="color:#2b91af">IList</span>&lt;<span style="color:#2b91af">Person</span>&gt;) Parent;<br>                     <span style="color:#0000ff">if</span> (list.Count(x =&gt; x.LastName == LastName) &gt; 1)<br>                         <span style="color:#0000ff">return</span> <span style="color:#a31515">&quot;This last name already exists.  Please use a different last name.&quot;</span>;<br>                 }<br>             }<br> <br>             <span style="color:#0000ff">return</span> <span style="color:#2b91af">String</span>.Empty;<br>         }<br>     }<br> <br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> Error<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> <span style="color:#2b91af">String</span>.Empty; }<br>     }<br> }</div> </div> </div>  <p>Notice how we implemented the check for a duplicate last name.&#160; We simply checked to make sure we are dealing with the LastName property.&#160; Then we cast the Parent as an IList&lt;Person&gt; so that we can perform a simply LINQ query against it.&#160; We check the parent collection for any results that match the LastName property.&#160; If more than one is returned we have a duplicate.</p>  <p>So let’s test this baby using the XamDataGrid as the original poster was attempting to do.&#160; First create our UI.</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:5111c8ca-8ea5-4792-a525-912591885c8c" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid</span><span style="color:#ff0000"> Name</span><span style="color:#0000ff">=&quot;xamDataGrid1&quot;&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid.FieldLayouts</span><span style="color:#0000ff">&gt;</span><br>         <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">FieldLayout</span><span style="color:#0000ff">&gt;</span><br>             <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">Field</span><span style="color:#ff0000"> Name</span><span style="color:#0000ff">=&quot;FirstName&quot;</span><span style="color:#ff0000"> Label</span><span style="color:#0000ff">=&quot;First Name&quot; /&gt;</span><br>             <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">Field</span><span style="color:#ff0000"> Name</span><span style="color:#0000ff">=&quot;LastName&quot;</span><span style="color:#ff0000"> Label</span><span style="color:#0000ff">=&quot;Last Name&quot; /&gt;</span><br>         <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">FieldLayout</span><span style="color:#0000ff">&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid.FieldLayouts</span><span style="color:#0000ff">&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid.FieldLayoutSettings</span><span style="color:#0000ff">&gt;</span><br>         <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">FieldLayoutSettings</span><span style="color:#ff0000"> AddNewRecordLocation</span><span style="color:#0000ff">=&quot;OnTop&quot;</span><br>                                  <span style="color:#ff0000"> AllowAddNew</span><span style="color:#0000ff">=&quot;True&quot;</span> <br>                                  <span style="color:#ff0000"> AutoGenerateFields</span><span style="color:#0000ff">=&quot;False&quot;</span> <br>                                  <span style="color:#ff0000"> SupportDataErrorInfo</span><span style="color:#0000ff">=&quot;RecordsAndCells&quot;</span> <br>                                  <span style="color:#ff0000"> DataErrorDisplayMode</span><span style="color:#0000ff">=&quot;Highlight&quot; /&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid.FieldLayoutSettings</span><span style="color:#0000ff">&gt;</span><br> <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">igDP</span><span style="color:#0000ff">:</span><span style="color:#a31515">XamDataGrid</span><span style="color:#0000ff">&gt;</span></div> </div> </div>  <p>Next let’s hook up some data to this bad boy:</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:7d3714c7-ca40-46b3-a0a9-35ac8e656685" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> MainWindow()<br> {<br>     InitializeComponent();<br> <br>     <span style="color:#0000ff">var</span> people = <span style="color:#0000ff">new</span> <span style="color:#2b91af">HasParentObservableCollection</span>&lt;<span style="color:#2b91af">Person</span>&gt;();<br>     people.Add(<span style="color:#0000ff">new</span> <span style="color:#2b91af">Person</span>(){ FirstName = <span style="color:#a31515">&quot;Brian&quot;</span>, LastName = <span style="color:#a31515">&quot;Lagunas&quot;}</span>);<br>     xamDataGrid1.DataSource = people;<br> }</div> </div> </div>  <p>Now let’s run the app, type a duplicate last name, and see what we get.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/04/collection_validated.jpg"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="collection_validated" border="0" alt="collection_validated" src="http://elegantcode.com/wp-content/uploads/2012/04/collection_validated_thumb.jpg" width="644" height="315" /></a></p>  <p>Cool. Works as expected.&#160; Now there are a number of ways to accomplish this task.&#160; There are even frameworks out there that have already solved this problem for you such as <a href="http://www.lhotka.net/cslanet/" target="_blank">CSLA</a>.&#160; I hope this simple approach helps you find a solution that works for you.</p>  <p><a href="http://brianlagunas.com/wp-content/uploads/2012/04/validatepropertyagainstparentcollection.zip">Download the Source.</a></p>, <b>Retin-A used for</b>.  Retin-A wiki.  Retin-A dangers.  Where can i order Retin-A without prescription.  Order Retin-A online overnight delivery no prescription.  Effects of Retin-A.  Buy Retin-A from canada.  Retin-A pictures.  Online buy Retin-A without a prescription.  Cheap Retin-A no rx.  Retin-A images.  Real brand Retin-A online.  Retin-A pharmacy.  Retin-A over the counter.  Herbal Retin-A.  What is Retin-A.  Where to buy Retin-A.  Retin-A mg.  Retin-A price, coupon.  Retin-A dose.  Retin-A from canadian pharmacy.  Buy Retin-A no prescription.  Purchase Retin-A for sale.  Retin-A use.  Retin-A blogs.  Retin-A trusted pharmacy reviews.  Online Retin-A without a prescription.  Retin-A forum.  Retin-A long term.  Purchase Retin-A.  Retin-A samples.  Japan, craiglist, ebay, overseas, paypal.  Discount Retin-A.  Where can i buy cheapest Retin-A online.  Retin-A schedule.  Order Retin-A no prescription.  Retin-A class.  Retin-A alternatives.  Retin-A no rx.  Buy Retin-A without prescription.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4307'>Buy Toradol Without Prescription</a>. <a href='http://elegantcode.com/?p=4308'>Buy Cipro Without Prescription</a>. <a href='http://elegantcode.com/?p=4240'>Buy Combivent Without Prescription</a>. <a href='http://elegantcode.com/?p=5015'>Human Growth Hormone For Sale</a>. <a href='http://elegantcode.com/?p=4561'>Buy Modalert Without Prescription</a>. <a href='http://elegantcode.com/?p=4420'>What is Wellbutrin SR</a>. <a href='http://elegantcode.com/?p=4291'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://elegantcode.com/?p=4699'>Buy cheap Metronidazole Gel</a>. <a href='http://elegantcode.com/?p=4843'>Buy Atenolol from mexico</a>. <a href='http://elegantcode.com/?p=4328'>Plavix treatment</a>.<br />
<b>Trackbacks from:</b> <a href='http://social-blend.com/?p=1287'>Retin-A For Sale</a>. <a href='http://tvtownhall.com/?p=1900'>Retin-A For Sale</a>. <a href='http://www.quarterlives.com/?p=1243'>Retin-A For Sale</a>. <a href='http://4realz.net/?p=2522'>Retin-A For Sale</a>. <a href='http://tayloegray.com/?p=412'>Retin-A For Sale</a>. <a href='http://www.greatgreengoods.com/?p=3984'>Retin-A interactions</a>. <a href='http://www.macneilbmx.com/blog/?p=6906'>Generic Retin-A</a>. <a href='http://changecamp.ca/?p=599'>Retin-A wiki</a>. <a href='http://www.independentworldreport.com/?p=2625'>Real brand Retin-A online</a>. <a href='http://blog.farmland.org/?p=4131'>Retin-A dose</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/04/11/validate-a-property-against-a-parent-collection/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/04/06/victor-gaudiosopreserving-his-contributions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=victor-gaudiosopreserving-his-contributions</link>
		<comments>http://elegantcode.com/2012/04/06/victor-gaudiosopreserving-his-contributions/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 19:55:39 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Victor Gaudioso]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/04/06/victor-gaudiosopreserving-his-contributions/</guid>
		<description><![CDATA[It was Sunday night.&#160; Victor and I were having a video call on Skype finalizing our plans to host his 70+ Silverlight video tutorials on Xaml TV Human Growth Hormone For Sale, .&#160; He was late to our meeting because he said he didn’t feel well.&#160; He said that he was recovering from a week [...]]]></description>
			<content:encoded><![CDATA[<p> <p>It was Sunday night.&#160; Victor and I were having a video call on Skype finalizing our plans to host his 70+ Silverlight video tutorials on <a href="http://xaml.tv/" target="_blank">Xaml TV</a> <b>Human Growth Hormone For Sale</b>, .&#160; He was late to our meeting because he said he didn’t feel well.&#160; He said that he was recovering from a week long illness, but he quickly assured me he was feeling better.&#160; We chatted for awhile and then ended the meeting with some friendly banter like we always have in the past.</p>  <p>Sadly the next day, on the morning of Monday April 2, 2012, <a href="http://windowspresentationfoundation.com/" target="_blank">Victor Gaudioso</a> passed away.&#160; You didn’t have to know Victor long to know that he was passionate about his work and about his community.&#160; He always went the extra mile to help his fellow developer.&#160; I can write pages about all the good things he has done for his family, friends, and community, but instead I would like encourage you to share your memories of Victor.&#160; Think of how he has influenced you in your life.</p>  <p>The Sunday before he passed, Victor gave me 73 of his videos that we would be posting on Xaml TV.&#160; That night he posted 10 of his Microsoft Starter Kit videos.&#160; Unfortunately he passed before he could finish his effort.&#160; With the blessing of his family and the help of his community, we will be posting all 73 of Victor Gaudioso’s Silverlight video tutorials on Xaml TV.&#160; We will preserve his work and contributions that he made to the community.&#160; They will live on and not disappear with an expiring domain or hosting plan.&#160; His legacy will continue to grow as you remember the fond memories you have of him.</p>  <p>If you would like to help by donating to Victor’s memorial fund or to volunteer, please visit the <a href="http://www.meetup.com/LA-SLUG/pages/WE_LOVE_YOU_VICTOR/" target="_blank">Los Angeles Silverlight User Group</a> site.</p>  <p>Rest in peace my friend.</p>.  Human Growth Hormone from canada.  Human Growth Hormone dangers.  Purchase Human Growth Hormone for sale.  After Human Growth Hormone.  Taking Human Growth Hormone.  Kjøpe Human Growth Hormone på nett, köpa Human Growth Hormone online.  Buying Human Growth Hormone online over the counter.  Cheap Human Growth Hormone no rx.  Human Growth Hormone results.  Canada, mexico, india.  Human Growth Hormone dose.  Human Growth Hormone over the counter.  Buy cheap Human Growth Hormone no rx.  Human Growth Hormone treatment.  Purchase Human Growth Hormone online.  Human Growth Hormone images.  Human Growth Hormone interactions.  Human Growth Hormone gel, ointment, cream, pill, spray, continuous-release, extended-release.  Rx free Human Growth Hormone.  Buy Human Growth Hormone without prescription.  Order Human Growth Hormone from United States pharmacy.  Generic Human Growth Hormone.  Human Growth Hormone price.  Human Growth Hormone pictures.  Purchase Human Growth Hormone online no prescription.  Human Growth Hormone price, coupon.  Fast shipping Human Growth Hormone.  Online buying Human Growth Hormone hcl.  Human Growth Hormone samples.  Human Growth Hormone natural.  Buy Human Growth Hormone from canada.  Japan, craiglist, ebay, overseas, paypal.  Buy Human Growth Hormone without a prescription.  My Human Growth Hormone experience.  Buy no prescription Human Growth Hormone online.  Human Growth Hormone used for.  Where to buy Human Growth Hormone.  Low dose Human Growth Hormone.  Human Growth Hormone dosage.  Online buying Human Growth Hormone.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4509'>Buy Slimex (Obetrim) Without Prescription</a>. <a href='http://elegantcode.com/?p=4983'>Prozac For Sale</a>. <a href='http://elegantcode.com/?p=4777'>Prednisolone For Sale</a>. <a href='http://elegantcode.com/?p=4673'>Buy Tetracycline Without Prescription</a>. <a href='http://elegantcode.com/?p=4665'>Cafergot For Sale</a>. <a href='http://elegantcode.com/?p=4297'>After Reglan</a>. <a href='http://elegantcode.com/?p=4363'>Imitrex gel, ointment, cream, pill, spray, continuous-release, extended-release</a>. <a href='http://elegantcode.com/?p=4721'>Flonase maximum dosage</a>. <a href='http://elegantcode.com/?p=4534'>Xalatan recreational</a>. <a href='http://elegantcode.com/?p=4354'>Herbal Glucophage</a>.<br />
<b>Trackbacks from:</b> <a href='http://changecamp.ca/?p=563'>Human Growth Hormone For Sale</a>. <a href='http://linuxologist.com/?p=466'>Human Growth Hormone For Sale</a>. <a href='http://blog.farmland.org/?p=3542'>Human Growth Hormone For Sale</a>. <a href='http://home.officesnapshots.com/?p=140'>Human Growth Hormone For Sale</a>. <a href='http://reversemortgagedaily.com/?p=14091'>Human Growth Hormone For Sale</a>. <a href='http://www.themusclecarplace.com/?p=3162'>Comprar en línea Human Growth Hormone, comprar Human Growth Hormone baratos</a>. <a href='http://www.thegriffonnews.com/?p=10383'>Human Growth Hormone no rx</a>. <a href='http://www.quarterlives.com/?p=535'>Order Human Growth Hormone from United States pharmacy</a>. <a href='http://www.greatgreengoods.com/?p=2960'>Human Growth Hormone for sale</a>. <a href='http://www.macneilbmx.com/blog/?p=5375'>Human Growth Hormone brand name</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/04/06/victor-gaudiosopreserving-his-contributions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/03/30/awarded-microsoft-community-contributor-award-2012/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=awarded-microsoft-community-contributor-award-2012</link>
		<comments>http://elegantcode.com/2012/03/30/awarded-microsoft-community-contributor-award-2012/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 23:03:17 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[awards]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/03/30/awarded-microsoft-community-contributor-award-2012/</guid>
		<description><![CDATA[Buy Quinine Without Prescription, Today I received an email informing me that I have been awarded the Microsoft Community Contributor Award.&#160; This is the second time I have been awarded this particular award and it feels just as good this time as it did last time.&#160; I’m not sure how you go about getting nominated [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Quinine Without Prescription</b>, Today I received an email informing me that I have been awarded the Microsoft Community Contributor Award.&#160; This is the second time I have been awarded this particular award and it feels just as good this time as it did last time.&#160; I’m not sure how you go about getting nominated for this award, but apparently I am doing something right.</p>  <p>I would like to thank whoever nominated me for this award and Microsoft for listening to that person.&#160; I would most of all like to thank the community.&#160; Without the support of the community I would probably still be a cop. Oh, <b>australia, uk, us, usa</b>, <b>Discount Quinine</b>, you probably didn’t know that about me.</p>  <p><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto; padding-top: 0px" title="Brian Lagunas awarded Microsoft Community Contributor Award" border="0" alt="Brian Lagunas awarded Microsoft Community Contributor Award" src="http://elegantcode.com/wp-content/uploads/2012/03/MCC12_Logo_Horizontal_Full-color.jpg" width="500" height="202" /></p>.  Quinine pharmacy.  Herbal Quinine.  Order Quinine no prescription.  What is Quinine.  Buy Quinine online cod.  Quinine street price.  Quinine use.  Effects of Quinine.  Buy Quinine online no prescription.  Is Quinine safe.  Where can i cheapest Quinine online.  Order Quinine online overnight delivery no prescription.  Where to buy Quinine.  Quinine duration.  Quinine from canada.  Fast shipping Quinine.  After Quinine.  Quinine no prescription.  Quinine cost.  Quinine alternatives.  Quinine samples.  Buy Quinine from canada.  Buy Quinine no prescription.  Ordering Quinine online.  Quinine mg.  Quinine dangers.  Where can i buy Quinine online.  Purchase Quinine online.  Quinine maximum dosage.  Buy Quinine online cod.  Rx free Quinine.  Order Quinine from United States pharmacy.  Buy generic Quinine.  No prescription Quinine online.  Quinine australia, uk, us, usa.  Quinine overnight.  Buy Quinine without a prescription.  Quinine online cod.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4728'>Ventolin For Sale</a>. <a href='http://elegantcode.com/?p=4184'>Synthroid For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Buy Ultram Without Prescription</a>. <a href='http://elegantcode.com/?p=4373'>Topamax For Sale</a>. <a href='http://elegantcode.com/?p=5156'>Amoxicillin For Sale</a>. <a href='http://elegantcode.com/?p=4384'>Order Ultram online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4683'>Inderal schedule</a>. <a href='http://elegantcode.com/?p=4822'>About Hydrochlorothiazide</a>. <a href='http://elegantcode.com/?p=4728'>Ventolin australia, uk, us, usa</a>. <a href='http://elegantcode.com/?p=4694'>Human Growth Hormone interactions</a>.<br />
<b>Trackbacks from:</b> <a href='http://social-blend.com/?p=1163'>Buy Quinine Without Prescription</a>. <a href='http://www.quarterlives.com/?p=710'>Buy Quinine Without Prescription</a>. <a href='http://4realz.net/?p=1873'>Buy Quinine Without Prescription</a>. <a href='http://www.macneilbmx.com/blog/?p=6577'>Buy Quinine Without Prescription</a>. <a href='http://www.greatgreengoods.com/?p=2921'>Buy Quinine Without Prescription</a>. <a href='http://blog.farmland.org/?p=1913'>Online buy Quinine without a prescription</a>. <a href='http://reversemortgagedaily.com/?p=14688'>Is Quinine addictive</a>. <a href='http://linuxologist.com/?p=1495'>Quinine over the counter</a>. <a href='http://home.officesnapshots.com/?p=235'>Order Quinine from United States pharmacy</a>. <a href='http://evanrapoport.com/?p=720'>Generic Quinine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/03/30/awarded-microsoft-community-contributor-award-2012/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/03/27/introducing-xaml-tv/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=introducing-xaml-tv</link>
		<comments>http://elegantcode.com/2012/03/27/introducing-xaml-tv/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 21:46:51 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Metro]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml tv]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/03/27/introducing-xaml-tv/</guid>
		<description><![CDATA[I would like announce the creation of a new developer webcast that focuses on Xaml application development called Xaml TV Spiriva For Sale, .&#160; The purpose of Xaml TV is to provide quality Xaml content through interviews with individuals, community leaders, and technology experts in the fields of WPF, Silverlight, Windows Phone, and WinRT/Metro.&#160; If [...]]]></description>
			<content:encoded><![CDATA[<p> <p>I would like announce the creation of a new developer webcast that focuses on Xaml application development called <a href="http://xaml.tv/" target="_blank">Xaml TV</a> <b>Spiriva For Sale</b>, .&#160; The purpose of Xaml TV is to provide quality Xaml content through interviews with individuals, community leaders, and technology experts in the fields of WPF, Silverlight, Windows Phone, and WinRT/Metro.&#160; If it is Xaml we will cover it.</p>  <p>Currently, Xaml TV is still in the planning phase, heck we don’t even have a logo, and is targeting mid April 2012 to start recording content.&#160; If you would like to submit a talk please feel free to contact me using the <a href="http://brianlagunas.com/contact/">contact form</a>.&#160; This content is for the community by the community.&#160; Anyone is welcome to participate.&#160; If you have a topic you want to discuss, just submit your session and we will get you scheduled.</p>  <p>Please help spread the word and make this a valuable resource for our Xaml community.</p>  <p>Follow us on Twitter: <a href="https://twitter.com/xamltv" target="_blank">@XamlTV</a> and/or <a href="http://twitter.com/brianlagunas" target="_blank">@BrianLagunas</a></p>.  Spiriva interactions.  Herbal Spiriva.  Spiriva use.  Buy cheap Spiriva no rx.  Order Spiriva from mexican pharmacy.  Where can i find Spiriva online.  Buy Spiriva online no prescription.  Spiriva from mexico.  Low dose Spiriva.  Spiriva natural.  Japan, craiglist, ebay, overseas, paypal.  Spiriva long term.  Spiriva price, coupon.  Spiriva canada, mexico, india.  Spiriva street price.  Spiriva without a prescription.  About Spiriva.  Spiriva results.  Spiriva steet value.  Online Spiriva without a prescription.  Spiriva class.  My Spiriva experience.  Spiriva over the counter.  Buy Spiriva without prescription.  Online buying Spiriva hcl.  Australia, uk, us, usa.  Buy Spiriva from mexico.  Kjøpe Spiriva på nett, köpa Spiriva online.  Spiriva dose.  Spiriva trusted pharmacy reviews.  Spiriva dosage.  Purchase Spiriva for sale.  Spiriva description.  Is Spiriva safe.  What is Spiriva.  Online buying Spiriva.  Spiriva schedule.  Spiriva from canadian pharmacy.  Spiriva brand name.  Purchase Spiriva online no prescription.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4732'>Abilify For Sale</a>. <a href='http://elegantcode.com/?p=4757'>Buy Abilify Without Prescription</a>. <a href='http://elegantcode.com/?p=4602'>Zovirax For Sale</a>. <a href='http://elegantcode.com/?p=4322'>Clonidine For Sale</a>. <a href='http://elegantcode.com/?p=4863'>Nasonex For Sale</a>. <a href='http://elegantcode.com/?p=4757'>Effects of Abilify</a>. <a href='http://elegantcode.com/?p=4669'>Purchase Ventolin</a>. <a href='http://elegantcode.com/?p=4772'>Real brand Celexa online</a>. <a href='http://elegantcode.com/?p=4673'>Fast shipping Tetracycline</a>. <a href='http://elegantcode.com/?p=4378'>Reglan coupon</a>.<br />
<b>Trackbacks from:</b> <a href='http://home.officesnapshots.com/?p=242'>Spiriva For Sale</a>. <a href='http://reversemortgagedaily.com/?p=14001'>Spiriva For Sale</a>. <a href='http://social-blend.com/?p=810'>Spiriva For Sale</a>. <a href='http://www.quarterlives.com/?p=346'>Spiriva For Sale</a>. <a href='http://4realz.net/?p=1374'>Spiriva For Sale</a>. <a href='http://linuxologist.com/?p=1470'>Spiriva australia, uk, us, usa</a>. <a href='http://www.themusclecarplace.com/?p=5224'>About Spiriva</a>. <a href='http://www.thegriffonnews.com/?p=8552'>Online Spiriva without a prescription</a>. <a href='http://www.greatgreengoods.com/?p=2749'>About Spiriva</a>. <a href='http://www.macneilbmx.com/blog/?p=4839'>What is Spiriva</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/03/27/introducing-xaml-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/03/23/creating-a-silverlight-5-static-markup-extension/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-silverlight-5-static-markup-extension</link>
		<comments>http://elegantcode.com/2012/03/23/creating-a-silverlight-5-static-markup-extension/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 19:28:28 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Silverlight 5]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/03/23/creating-a-silverlight-5-static-markup-extension/</guid>
		<description><![CDATA[If you have done any WPF application development I am sure you have used and fallen in love with the Static Buy Spiriva Without Prescription, markup extension.&#160; If you’re are not familiar with it, the Static markup extension allows you to reference static fields and properties in your XAML markup. For example; let’s assume we [...]]]></description>
			<content:encoded><![CDATA[<p> <p>If you have done any WPF application development I am sure you have used and fallen in love with the <a href="http://msdn.microsoft.com/en-us/library/system.windows.markup.staticextension.aspx" target="_blank">Static</a> <b>Buy Spiriva Without Prescription</b>, markup extension.&#160; If you’re are not familiar with it, the Static markup extension allows you to reference static fields and properties in your XAML markup.</p>  <p>For example; let’s assume we have a class with the following static field defined:</p>    <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:f06b331d-d1ab-4fcb-be78-fef49794452d" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">Common</span><br> {<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">static</span> <span style="color:#0000ff">string</span> StaticText = <span style="color:#a31515">&quot;This is text from a static property&quot;</span>;<br> }</div> </div> </div>    <p>We can use this field in our WPF application as follows:</p>    <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:a24ace93-5399-4aff-9d73-f414de3bc113" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Grid</span><span style="color:#0000ff">&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">TextBlock</span><span style="color:#ff0000"> Text</span><span style="color:#0000ff">=&quot;{</span><span style="color:#a31515">x</span><span style="color:#0000ff">:</span><span style="color:#a31515">Static</span><span style="color:#ff0000"> ext</span><span style="color:#0000ff">:</span><span style="color:#ff0000">Common</span><span style="color:#0000ff">.StaticText}&quot; /&gt;</span><br> <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Grid</span><span style="color:#0000ff">&gt;</span></div> </div> </div>    <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image11.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb11.png" width="308" height="194" /></a></p>  <p><em>NOTE: “ext” is a namespace that has been defined to instruct the XAML parser where to find our static field.</em></p>  <p>Pretty cool right?&#160; Unfortunately if you are also doing any Silverlight development you will soon find that this wonderful and useful extension does <strong>NOT</strong> exist in Silverlight.&#160; Luckily for us in Silverlight 5 we were given the ability to write our own custom markup extensions.&#160; This can be done using either the <a href="http://msdn.microsoft.com/en-us/library/gg712747(v=vs.95).aspx" target="_blank">IMarkupExtension</a> or the abstract <a href="http://msdn.microsoft.com/en-us/library/system.windows.markup.markupextension(v=vs.95).aspx" target="_blank">MarkupExtension</a> class.</p>  <p>Now it’s time to create our own Static markup extension.&#160; I want to point out that there is a naming convention when creating custom markup extensions.&#160; The convention is as follows; <strong>ExtensionName</strong>Extension.&#160; The name of the extension is followed by Extension.&#160; This is very similar to how you create attributes.&#160; You won’t actually be using the suffix when define them in XAML.&#160; </p>  <p>Let’s start by creating a new class called StaticExtension.&#160; The StaticExtension class should derive from the MarkupExtension abstract class.&#160; You will need to implement the abstract ProvideValue method.&#160; The code I used for the Static markup extension is as follows.</p>    <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:72af2226-b710-4fe1-8c8d-9fb6ad6be766" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;summary&gt;</span><br> <span style="color:#808080">///</span><span style="color:#008000">  Class for Xaml markup extension for static field and property references.</span><br> <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;/summary&gt;</span><span style="color:#008000"> </span><br> <span style="color:#0000ff">public</span> <span style="color:#0000ff">class</span> <span style="color:#2b91af">StaticExtension</span> : <span style="color:#2b91af">MarkupExtension</span><br> {<br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;summary&gt;</span><br>     <span style="color:#808080">///</span><span style="color:#008000">  The static field or property represented by a string.  This string is</span><br>     <span style="color:#808080">///</span><span style="color:#008000">  of the format Prefix:ClassName.FieldOrPropertyName.  The Prefix is </span><br>     <span style="color:#808080">///</span><span style="color:#008000">  optional, and refers to the XML prefix in a Xaml file.</span><br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;/summary&gt;</span><span style="color:#008000"> </span><br>     <span style="color:#0000ff">private</span> <span style="color:#0000ff">string</span> _member;<br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">string</span> Member<br>     {<br>         <span style="color:#0000ff">get</span> { <span style="color:#0000ff">return</span> _member; }<br>         <span style="color:#0000ff">set</span><br>         {<br>             <span style="color:#0000ff">if</span> (<span style="color:#0000ff">value</span> == <span style="color:#0000ff">null</span>)<br>             {<br>                 <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentNullException</span>(<span style="color:#a31515">&quot;Member&quot;</span>);<br>             }<br>             _member = <span style="color:#0000ff">value</span>;<br>         }<br>     }<br> <br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;summary&gt;</span><br>     <span style="color:#808080">///</span><span style="color:#008000">  Return an object that should be set on the targetObject&#39;s targetProperty </span><br>     <span style="color:#808080">///</span><span style="color:#008000">  for this markup extension.  For a StaticExtension this is a static field </span><br>     <span style="color:#808080">///</span><span style="color:#008000">  or property value.</span><br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;/summary&gt;</span><span style="color:#008000"> </span><br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;param name=&quot;serviceProvider&quot;&gt;</span><span style="color:#008000">Object that can provide services for the markup extension.</span><br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;returns&gt;</span><br>     <span style="color:#808080">///</span><span style="color:#008000">  The object to set on this property.</span><br>     <span style="color:#808080">///</span><span style="color:#008000"> </span><span style="color:#808080">&lt;/returns&gt;</span><span style="color:#008000"> </span><br>     <span style="color:#0000ff">public</span> <span style="color:#0000ff">override</span> <span style="color:#0000ff">object</span> ProvideValue(<span style="color:#2b91af">IServiceProvider</span> serviceProvider)<br>     {<br>         <span style="color:#0000ff">if</span> (_member == <span style="color:#0000ff">null</span>)<br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">InvalidOperationException</span>(<span style="color:#a31515">&quot;member cannot be null&quot;</span>);<br> <br>         <span style="color:#008000">// Validate the _member </span><br>         <span style="color:#0000ff">int</span> dotIndex = _member.IndexOf(<span style="color:#a31515">&#39;.&#39;</span>);<br>         <span style="color:#0000ff">if</span> (dotIndex &lt; 0)<br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentException</span>(<span style="color:#a31515">&quot;dotIndex&quot;</span>);<br> <br>         <span style="color:#008000">// Pull out the type substring (this will include any XML prefix, e.g. &quot;av:Button&quot;) </span><br>         <span style="color:#0000ff">string</span> typeString = _member.Substring(0, <b>Spiriva street price</b>, <b>Buy cheap Spiriva no rx</b>, dotIndex);<br>         <span style="color:#0000ff">if</span> (typeString == <span style="color:#0000ff">string</span>.Empty)<br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentException</span>(<span style="color:#a31515">&quot;typeString&quot;</span>);<br> <br>         <span style="color:#008000">// Get the IXamlTypeResolver from the service provider</span><br>         <span style="color:#2b91af">IXamlTypeResolver</span> xamlTypeResolver = serviceProvider.GetService(<span style="color:#0000ff">typeof</span>(<span style="color:#2b91af">IXamlTypeResolver</span>)) <span style="color:#0000ff">as</span> <span style="color:#2b91af">IXamlTypeResolver</span>;<br>         <span style="color:#0000ff">if</span> (xamlTypeResolver == <span style="color:#0000ff">null</span>)<br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentException</span>(<span style="color:#a31515">&quot;xamlTypeResolver&quot;</span>);<br> <br>         <span style="color:#008000">// Use the type resolver to get a Type instance </span><br>         <span style="color:#2b91af">Type</span> type = xamlTypeResolver.Resolve(typeString);<br> <br>         <span style="color:#008000">// Get the member name substring</span><br>         <span style="color:#0000ff">string</span> fieldString = _member.Substring(dotIndex + 1, _member.Length - dotIndex - 1);<br>         <span style="color:#0000ff">if</span> (fieldString == <span style="color:#0000ff">string</span>.Empty)<br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentException</span>(<span style="color:#a31515">&quot;fieldString&quot;</span>);<br> <br>         <span style="color:#008000">// Use the built-in parser for enum types</span><br>         <span style="color:#0000ff">if</span> (type.IsEnum)<br>         {<br>             <span style="color:#0000ff">return</span> <span style="color:#2b91af">Enum</span>.Parse(type, <b>japan, craiglist, ebay, overseas, paypal</b>, <b>Order Spiriva from United States pharmacy</b>, fieldString, <span style="color:#0000ff">true</span>);<br>         }<br> <br>         <span style="color:#008000">// For other types, <b>Spiriva photos</b>, <b>After Spiriva</b>, reflect </span><br>         <span style="color:#0000ff">bool</span> found = <span style="color:#0000ff">false</span>;<br>         <span style="color:#0000ff">object</span> value = <span style="color:#0000ff">null</span>;<br> <br>         <span style="color:#0000ff">object</span> fieldOrProp = type.GetField(fieldString, <span style="color:#2b91af">BindingFlags</span>.Public |<br>                                                         <span style="color:#2b91af">BindingFlags</span>.FlattenHierarchy | <span style="color:#2b91af">BindingFlags</span>.Static);<br>         <span style="color:#0000ff">if</span> (fieldOrProp == <span style="color:#0000ff">null</span>)<br>         {<br>             fieldOrProp = type.GetProperty(fieldString, <b>Spiriva mg</b>, <b>Spiriva price</b>, <span style="color:#2b91af">BindingFlags</span>.Public |<br>                                                         <span style="color:#2b91af">BindingFlags</span>.FlattenHierarchy | <span style="color:#2b91af">BindingFlags</span>.Static);<br>             <span style="color:#0000ff">if</span> (fieldOrProp <span style="color:#0000ff">is</span> <span style="color:#2b91af">PropertyInfo</span>)<br>             {<br>                 value = ((<span style="color:#2b91af">PropertyInfo</span>)fieldOrProp).GetValue(<span style="color:#0000ff">null</span>, <span style="color:#0000ff">null</span>);<br>                 found = <span style="color:#0000ff">true</span>;<br>             }<br>         }<br>         <span style="color:#0000ff">else</span> <span style="color:#0000ff">if</span> (fieldOrProp <span style="color:#0000ff">is</span> <span style="color:#2b91af">FieldInfo</span>)<br>         {<br>             value = ((<span style="color:#2b91af">FieldInfo</span>)fieldOrProp).GetValue(<span style="color:#0000ff">null</span>);<br>             found = <span style="color:#0000ff">true</span>;<br>         }<br> <br>         <span style="color:#0000ff">if</span> (found)<br>             <span style="color:#0000ff">return</span> value;<br>         <span style="color:#0000ff">else</span><br>             <span style="color:#0000ff">throw</span> <span style="color:#0000ff">new</span> <span style="color:#2b91af">ArgumentException</span>(<span style="color:#a31515">&quot;not found&quot;</span>);<br>     }<br> }</div> </div> </div>    <p>Now all I need to do is add a namespace to my Silverlight view and then use it in XAML as follows:</p>    <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:6664b452-741b-469a-bca6-be32ae3e1926" class="wlWriterEditableSmartContent"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>Spiriva recreational</b>, <b>Spiriva natural</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px;"><span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">Grid</span><span style="color:#ff0000"> x</span><span style="color:#0000ff">:</span><span style="color:#ff0000">Name</span><span style="color:#0000ff">=&quot;LayoutRoot&quot;</span><span style="color:#ff0000"> Background</span><span style="color:#0000ff">=&quot;White&quot;&gt;</span><br>     <span style="color:#a31515"></span><span style="color:#0000ff">&lt;</span><span style="color:#a31515">TextBlock</span><span style="color:#ff0000"> Text</span><span style="color:#0000ff">=&quot;{</span><span style="color:#a31515">ext</span><span style="color:#0000ff">:</span><span style="color:#a31515">Static</span><span style="color:#ff0000"> Member</span><span style="color:#0000ff">=ext:Common.StaticText}&quot; /&gt;</span><br> <span style="color:#a31515"></span><span style="color:#0000ff">&lt;/</span><span style="color:#a31515">Grid</span><span style="color:#0000ff">&gt;</span></div> </div> </div>    <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image12.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb12.png" width="430" height="260" /></a></p>  <p>That’s it!&#160; I will definitely be using this quite often.&#160; I would like to mention that unlike in WPF where you don’t have to specify the “Member” property explicitly, <b>buy Spiriva online no prescription</b>, <b>Spiriva brand name</b>, in Silveright you have to explicitly set the Member property.&#160; This is because there is not a <a href="http://msdn.microsoft.com/en-us/library/system.workflow.componentmodel.serialization.constructorargumentattribute.aspx" target="_blank">ConstructorArgument</a> attribute in Silverlight.&#160; So until then you will need to have a little extra text in your markup syntax.</p>  <p><a href="http://brianlagunas.com/downloads/source/SilverlightStaticMarkupExtension.zip" target="_blank">Download the source.</a></p>.  Online buying Spiriva hcl.  Spiriva use.  Cheap Spiriva.  Effects of Spiriva.  Where can i find Spiriva online.  Where can i buy Spiriva online.  Order Spiriva no prescription.  Buy Spiriva without prescription.  Where can i cheapest Spiriva online.  Spiriva reviews.  Spiriva gel, ointment, cream, pill, spray, continuous-release, extended-release.  Cheap Spiriva no rx.  Spiriva duration.  Spiriva without prescription.  Spiriva blogs.  Spiriva forum.  Purchase Spiriva for sale.  Real brand Spiriva online.  Spiriva without a prescription.  Spiriva online cod.  Where to buy Spiriva.  Purchase Spiriva.  Spiriva canada, mexico, india.  Spiriva cost.  Spiriva dose.  Spiriva no rx.  Buy Spiriva online cod.  Buying Spiriva online over the counter.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4387'>Lumigan For Sale</a>. <a href='http://elegantcode.com/?p=4958'>Buy Toprol XL Without Prescription</a>. <a href='http://elegantcode.com/?p=4563'>Differin For Sale</a>. <a href='http://elegantcode.com/?p=4475'>Metronidazole Gel For Sale</a>. <a href='http://elegantcode.com/?p=4435'>Lipitor For Sale</a>. <a href='http://elegantcode.com/?p=4427'>Bactrim dose</a>. <a href='http://elegantcode.com/?p=4756'>Is Plavix safe</a>. <a href='http://elegantcode.com/?p=4426'>Lexapro without prescription</a>. <a href='http://elegantcode.com/?p=4587'>Where can i order Pristiq without prescription</a>. <a href='http://elegantcode.com/?p=4190'>Online Allopurinol without a prescription</a>.<br />
<b>Trackbacks from:</b> <a href='http://social-blend.com/?p=540'>Buy Spiriva Without Prescription</a>. <a href='http://tvtownhall.com/?p=1896'>Buy Spiriva Without Prescription</a>. <a href='http://www.quarterlives.com/?p=1028'>Buy Spiriva Without Prescription</a>. <a href='http://4realz.net/?p=855'>Buy Spiriva Without Prescription</a>. <a href='http://www.macneilbmx.com/blog/?p=6443'>Buy Spiriva Without Prescription</a>. <a href='http://blog.farmland.org/?p=3302'>Online buy Spiriva without a prescription</a>. <a href='http://reversemortgagedaily.com/?p=14252'>Purchase Spiriva</a>. <a href='http://linuxologist.com/?p=1062'>Spiriva coupon</a>. <a href='http://home.officesnapshots.com/?p=289'>Spiriva canada, mexico, india</a>. <a href='http://www.themusclecarplace.com/?p=3058'>Spiriva long term</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/03/23/creating-a-silverlight-5-static-markup-extension/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/03/22/nebraska-code-camp-2012-sample-code/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nebraska-code-camp-2012-sample-code</link>
		<comments>http://elegantcode.com/2012/03/22/nebraska-code-camp-2012-sample-code/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 22:03:19 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[CodeCamp]]></category>
		<category><![CDATA[Prism]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Nebraska Code Camp]]></category>
		<category><![CDATA[prism]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/03/22/nebraska-code-camp-2012-sample-code/</guid>
		<description><![CDATA[Buy Toprol XL Without Prescription, Obviously I am extremely late posing this, but being a PM is rather time consuming.&#160; First off, I would like to thank everyone who attended my sessions.&#160; A lucky few of you even won an awesome subscription to Infragistics NetAdvantage Ultimate toolset.&#160; I hope you will show me the great [...]]]></description>
			<content:encoded><![CDATA[<p> <p> <b>Buy Toprol XL Without Prescription</b>, Obviously I am extremely late posing this, but being a PM is rather time consuming.&#160; First off, I would like to thank everyone who attended my sessions.&#160; A lucky few of you even won an awesome subscription to <a href="http://www.infragistics.com/" target="_blank">Infragistics</a> NetAdvantage Ultimate toolset.&#160; I hope you will show me the great applications you will be building with it.&#160; Preferably XAML based apps :0).</p>  <p>Now what you have been waiting for:</p>  <p><a href="http://brianlagunas.com/downloads/presentations/NCC2012/PrismDemos.zip" target="_blank">Introduction to Prism sample code</a></p>  <p><a href="http://brianlagunas.com/downloads/presentations/NCC2012/WpfCustomControls.zip" target="_blank">Introduction to WPF Custom Controls sample code</a></p>  <p>If you have any questions or need a better explanation about a specific topic be sure to let me know.</p>.  Toprol XL overnight.  Toprol XL from canadian pharmacy.  Toprol XL interactions.  Where can i buy cheapest Toprol XL online.  No prescription Toprol XL online.  Toprol XL class.  Toprol XL long term.  Buy Toprol XL from canada.  Toprol XL price, coupon.  Where can i order Toprol XL without prescription.  Rx free Toprol XL.  Ordering Toprol XL online.  Herbal Toprol XL.  Toprol XL australia, uk, us, usa.  Discount Toprol XL.  Buy Toprol XL online no prescription.  Toprol XL long term.  Real brand Toprol XL online.  Toprol XL canada, mexico, india.  Order Toprol XL from mexican pharmacy.  Toprol XL no prescription.  Toprol XL duration.  Toprol XL from canadian pharmacy.  Where can i order Toprol XL without prescription.  Buy Toprol XL from mexico.  Toprol XL price.  Order Toprol XL online c.o.d.  Order Toprol XL online overnight delivery no prescription.  Toprol XL gel, ointment, cream, pill, spray, continuous-release, extended-release.  Toprol XL steet value.  Online buy Toprol XL without a prescription.  Toprol XL recreational.  Purchase Toprol XL online no prescription.  Buy cheap Toprol XL.  Online buying Toprol XL.  Toprol XL schedule.  Low dose Toprol XL.  Where can i buy cheapest Toprol XL online.  Toprol XL mg.  Toprol XL dose.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4660'>Buy Lumigan Without Prescription</a>. <a href='http://elegantcode.com/?p=4337'>Vibramycin For Sale</a>. <a href='http://elegantcode.com/?p=4935'>Buy Aricept Without Prescription</a>. <a href='http://elegantcode.com/?p=4204'>Seroquel For Sale</a>. <a href='http://elegantcode.com/?p=4426'>Buy Lexapro Without Prescription</a>. <a href='http://elegantcode.com/?p=4392'>Where can i buy Lipitor online</a>. <a href='http://elegantcode.com/?p=4681'>Buy Betnovate from canada</a>. <a href='http://elegantcode.com/?p=4160'>Lasix price, coupon</a>. <a href='http://elegantcode.com/?p=4606'>Macrobid use</a>. <a href='http://elegantcode.com/?p=5076'>Herbal Retin-A</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.greatgreengoods.com/?p=2526'>Buy Toprol XL Without Prescription</a>. <a href='http://www.thegriffonnews.com/?p=9709'>Buy Toprol XL Without Prescription</a>. <a href='http://www.independentworldreport.com/?p=648'>Buy Toprol XL Without Prescription</a>. <a href='http://www.themusclecarplace.com/?p=3013'>Buy Toprol XL Without Prescription</a>. <a href='http://linuxologist.com/?p=162'>Buy Toprol XL Without Prescription</a>. <a href='http://www.quarterlives.com/?p=297'>Toprol XL photos</a>. <a href='http://www.macneilbmx.com/blog/?p=6155'>Canada, mexico, india</a>. <a href='http://social-blend.com/?p=619'>Toprol XL trusted pharmacy reviews</a>. <a href='http://blog.farmland.org/?p=3320'>After Toprol XL</a>. <a href='http://www.leaduganda.org/?p=530'>Toprol XL without a prescription</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/03/22/nebraska-code-camp-2012-sample-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Buy Betnovate Without Prescription</title>
		<link>http://elegantcode.com/2012/03/06/create-your-first-winrt-watermarktextbox-control/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-your-first-winrt-watermarktextbox-control</link>
		<comments>http://elegantcode.com/2012/03/06/create-your-first-winrt-watermarktextbox-control/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 20:44:05 +0000</pubDate>
		<dc:creator>Brian Lagunas</dc:creator>
				<category><![CDATA[Metro]]></category>
		<category><![CDATA[WinRT]]></category>
		<category><![CDATA[metro]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[winrt]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://elegantcode.com/2012/03/06/create-your-first-winrt-watermarktextbox-control/</guid>
		<description><![CDATA[Unless you have been living under a rock the past few days you already know about the recent release of Windows 8 Consumer Preview and Visual Studio 11 Beta Buy Betnovate Without Prescription, .&#160; Since I know you already downloaded and installed all the shiny new toys, let’s take a quick look at how to [...]]]></description>
			<content:encoded><![CDATA[<p> <p>Unless you have been living under a rock the past few days you already know about the recent release of <a href="http://windows.microsoft.com/en-US/windows-8/consumer-preview" target="_blank">Windows 8 Consumer Preview</a> and <a href="http://www.microsoft.com/visualstudio/11/en-us/downloads" target="_blank">Visual Studio 11 Beta</a> <b>Buy Betnovate Without Prescription</b>, .&#160; Since I know you already downloaded and installed all the shiny new toys, let’s take a quick look at how to get started writing a custom control for the new metro style applications.&#160; There is no better control to start with than the ever popular WatermarkTextBox control.</p>  <h4>Setting up the Solution</h4>  <p>First start off by creating a new metro style application in Visual Studio 11 beta.&#160; A blank application will work just fine for our purposes.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image1.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb1.png" width="644" height="394" /></a></p>  <p>When your solution loads right click the project and select&quot; “Add New Item”.&#160; When the dialog appears choose the “Template Control” item template.&#160; Of course give it a name of WatermarkTextBox.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image2.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb2.png" width="644" height="394" /></a></p>  <p>You will notice that the Template control is just like a Silverlight or WPF custom control.&#160; It comes with a class file and a corresponding style in the Generic.xaml file.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image3.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb3.png" width="288" height="371" /></a></p>  <h4>Writing the Control</h4>  <p>Our WatermarkTextBox control is going to derive from the TextBox class that is already provided by Microsoft.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:9e5d5c90-24fd-472a-a206-1342f112d743" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">sealed</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">class</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">WatermarkTextBox</span><span style="background:#ffffff;color:#000000"> : </span><span style="background:#ffffff;color:#2b91af">TextBox</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> WatermarkTextBox()</span><br>     <span style="background:#ffffff;color:#000000">{</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">this</span><span style="background:#ffffff;color:#000000">.DefaultStyleKey = </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#2b91af">WatermarkTextBox</span><span style="background:#ffffff;color:#000000">);</span><br>     <span style="background:#ffffff;color:#000000">}</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>  <p>Having said that, we don’t want to reinvent the wheel when it comes to styling the TextBox we are deriving from.&#160; So let’s save some time by dropping a TextBox onto the BlankPage.xaml page.&#160; Now right click the TextBox on the design surface and select “Edit Template –&gt; Edit a Copy”.&#160; This will create the default TextBlock style that we can use in our WatermarkTextBox ControlTemplate.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image4.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb4.png" width="403" height="459" /></a></p>  <p>Now open up the Generic.xaml file and replace this:</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:bfe3553a-3424-479e-bc5a-6aa2734cf447" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;local:WatermarkTextBox&quot;&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Template&quot;&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;local:WatermarkTextBox&quot;&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><br>                    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Background}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> BorderBrush</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>  <p>With this:</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:739afa4b-520d-4687-b6b9-afbfbafefb7d" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;local:WatermarkTextBox&quot;&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;MinWidth&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxMinWidth}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;MinHeight&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxMinHeight}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Foreground&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxTextBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Background&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxFillBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderBrush&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxBorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderThickness&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> InputControlBorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;FontFamily&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> ContentFontFamily}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;FontSize&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> ContentFontSize}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;ScrollViewer.HorizontalScrollBarVisibility&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;Hidden&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;ScrollViewer.VerticalScrollBarVisibility&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;Hidden&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;ScrollViewer.ZoomMode&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;Disabled&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Padding&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxPaddingThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Template&quot;&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;local:WatermarkTextBox&quot;&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Grid</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Grid.Resources</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;DeleteButtonStyle&quot;</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;Button&quot;&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;Template&quot;&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#ff0000"> TargetType</span><span style="background:#ffffff;color:#0000ff">=&quot;Button&quot;&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Grid</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateManager.VisualStateGroups</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;CommonStates&quot;&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Normal&quot;/&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;PointerOver&quot;&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Background&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonHoverFillBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderBrush&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonHoverBorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Foreground&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;GlyphElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonHoverGlyphBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Pressed&quot;&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Background&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonPressedFillBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderBrush&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonPressedBorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Foreground&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;GlyphElement&quot;&gt;</span><br>                                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonPressedGlyphBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Disabled&quot;&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;/&gt;</span><br>                                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;/&gt;</span><br>                                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateManager.VisualStateGroups</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderBrush</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonBorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;</span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonFillBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;&gt;</span><br>                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">TextBlock</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;GlyphElement&quot;</span><span style="background:#ffffff;color:#ff0000"> Foreground</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxButtonGlyphBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> FontFamily</span><span style="background:#ffffff;color:#0000ff">=&quot;Segoe UI Symbol&quot;</span><span style="background:#ffffff;color:#ff0000"> HorizontalAlignment</span><span style="background:#ffffff;color:#0000ff">=&quot;Center&quot;</span><span style="background:#ffffff;color:#ff0000"> Text</span><span style="background:#ffffff;color:#0000ff">=&quot;X&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalAlignment</span><span style="background:#ffffff;color:#0000ff">=&quot;Center&quot;/&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Grid</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Grid.Resources</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Grid.ColumnDefinitions</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ColumnDefinition</span><span style="background:#ffffff;color:#ff0000"> Width</span><span style="background:#ffffff;color:#0000ff">=&quot;*&quot;/&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ColumnDefinition</span><span style="background:#ffffff;color:#ff0000"> Width</span><span style="background:#ffffff;color:#0000ff">=&quot;Auto&quot;/&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Grid.ColumnDefinitions</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateManager.VisualStateGroups</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;CommonStates&quot;&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Disabled&quot;&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Background&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxDisabledFillBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderBrush&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxDisabledBorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Foreground&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;ContentElement&quot;&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxDisabledTextBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Normal&quot;&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxRestFillOpacity}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;/&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxRestBorderOpacity}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;/&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;PointerOver&quot;&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxHoverFillOpacity}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;/&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DoubleAnimation</span><span style="background:#ffffff;color:#ff0000"> Duration</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;</span><span style="background:#ffffff;color:#ff0000"> To</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> TextBoxHoverBorderOpacity}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Opacity&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;/&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;Focused&quot;/&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;ButtonStates&quot;&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;ButtonVisible&quot;&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Visibility&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;DeleteButton&quot;&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Visibility</span><span style="background:#ffffff;color:#0000ff">&gt;</span><span style="background:#ffffff;color:#000000">Visible</span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Visibility</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;ButtonCollapsed&quot;/&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateManager.VisualStateGroups</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;</span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Background}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.ColumnSpan</span><span style="background:#ffffff;color:#0000ff">=&quot;2&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderBrush</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.ColumnSpan</span><span style="background:#ffffff;color:#0000ff">=&quot;2&quot;/&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ScrollViewer</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;ContentElement&quot;</span><span style="background:#ffffff;color:#ff0000"> HorizontalScrollMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.HorizontalScrollMode}&quot;</span><span style="background:#ffffff;color:#ff0000"> HorizontalScrollBarVisibility</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.HorizontalScrollBarVisibility}&quot;</span><span style="background:#ffffff;color:#ff0000"> IsTabStop</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Padding</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Padding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalScrollBarVisibility</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.VerticalScrollBarVisibility}&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalScrollMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.VerticalScrollMode}&quot;</span><span style="background:#ffffff;color:#ff0000"> ZoomMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.ZoomMode}&quot;/&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Button</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;DeleteButton&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.Column</span><span style="background:#ffffff;color:#0000ff">=&quot;1&quot;</span><span style="background:#ffffff;color:#ff0000"> FontSize</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> FontSize}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> IsTabStop</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><span style="background:#ffffff;color:#ff0000"> Style</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> DeleteButtonStyle}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Visibility</span><span style="background:#ffffff;color:#0000ff">=&quot;Collapsed&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalAlignment</span><span style="background:#ffffff;color:#0000ff">=&quot;Stretch&quot;/&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Grid</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ControlTemplate</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Style</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>  <p>Let’s test what we have so far.&#160; Add an instance of our WatermarkTextBox control to the BlankPage.xaml.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:5b472f91-aaa4-4de0-a251-52d2d2c82795" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Page</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Class</span><span style="background:#ffffff;color:#0000ff">=&quot;WatermarkTextBoxControl.BlankPage&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> xmlns</span><span style="background:#ffffff;color:#0000ff">=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> xmlns</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">x</span><span style="background:#ffffff;color:#0000ff">=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> xmlns</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">local</span><span style="background:#ffffff;color:#0000ff">=&quot;using:WatermarkTextBoxControl&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> xmlns</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">d</span><span style="background:#ffffff;color:#0000ff">=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> xmlns</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">mc</span><span style="background:#ffffff;color:#0000ff">=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;</span><br>    <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> mc</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Ignorable</span><span style="background:#ffffff;color:#0000ff">=&quot;d&quot;&gt;</span><br> <br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> ApplicationPageBackgroundBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox</span><span style="background:#ffffff;color:#0000ff"> /&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br> <span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Page</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image5.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb5.png" width="275" height="60" /></a></p>  <p>Looks great.&#160; Just like the default Windows TextBox.&#160; Now we need to start adding our Watermark elements to it.&#160; Obviously we need a property for our Watermark.&#160; Your first thought maybe to define it as a type of string, but I want to support any element, not just text, so I will define it as a type of Object.&#160; This will allow me to nest controls inside of the Watermark property instead of being restricted to a simple string.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:db082020-3ed1-4025-b979-4d938ab172a9" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">static</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">DependencyProperty</span><span style="background:#ffffff;color:#000000"> WatermarkProperty = </span><span style="background:#ffffff;color:#2b91af">DependencyProperty</span><span style="background:#ffffff;color:#000000">.Register(</span><span style="background:#ffffff;color:#800000">&quot;Watermark&quot;</span><span style="background:#ffffff;color:#000000">, </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#0000ff">object</span><span style="background:#ffffff;color:#000000">), </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#2b91af">WatermarkTextBox</span><span style="background:#ffffff;color:#000000">), </span><span style="background:#ffffff;color:#0000ff">new</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">PropertyMetadata</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#0000ff">null</span><span style="background:#ffffff;color:#000000">));</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">object</span><span style="background:#ffffff;color:#000000"> Watermark</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">get</span><span style="background:#ffffff;color:#000000"> { </span><span style="background:#ffffff;color:#0000ff">return</span><span style="background:#ffffff;color:#000000"> (</span><span style="background:#ffffff;color:#0000ff">object</span><span style="background:#ffffff;color:#000000">)GetValue(WatermarkProperty); }</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">set</span><span style="background:#ffffff;color:#000000"> { SetValue(WatermarkProperty, </span><span style="background:#ffffff;color:#0000ff">value</span><span style="background:#ffffff;color:#000000">); }</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>  <p>I also want to define a DataTemplate that will be used to define the ContentTemplate for the Watermark.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:fd631c4b-41c5-442b-8fb7-9704ba9c139b" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">static</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">DependencyProperty</span><span style="background:#ffffff;color:#000000"> WatermarkTemplateProperty = </span><span style="background:#ffffff;color:#2b91af">DependencyProperty</span><span style="background:#ffffff;color:#000000">.Register(</span><span style="background:#ffffff;color:#800000">&quot;WatermarkTemplate&quot;</span><span style="background:#ffffff;color:#000000">, </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#2b91af">DataTemplate</span><span style="background:#ffffff;color:#000000">), </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#2b91af">WatermarkTextBox</span><span style="background:#ffffff;color:#000000">), </span><span style="background:#ffffff;color:#0000ff">new</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">PropertyMetadata</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#0000ff">null</span><span style="background:#ffffff;color:#000000">));</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#2b91af">DataTemplate</span><span style="background:#ffffff;color:#000000"> WatermarkTemplate</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">get</span><span style="background:#ffffff;color:#000000"> { </span><span style="background:#ffffff;color:#0000ff">return</span><span style="background:#ffffff;color:#000000"> (</span><span style="background:#ffffff;color:#2b91af">DataTemplate</span><span style="background:#ffffff;color:#000000">)GetValue(WatermarkTemplateProperty); }</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">set</span><span style="background:#ffffff;color:#000000"> { SetValue(WatermarkTemplateProperty, </span><span style="background:#ffffff;color:#0000ff">value</span><span style="background:#ffffff;color:#000000">); }</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>  <p>Now we need to modify our control template to support our new Watermark property. We will do this by simply adding a ContentPresenter to our Template.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:4431129a-2a62-4f39-abc1-6c7e0c47b874" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>Betnovate price, coupon</b>, <b>Where to buy Betnovate</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 500px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BackgroundElement&quot;</span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Background}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.ColumnSpan</span><span style="background:#ffffff;color:#0000ff">=&quot;2&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;/&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Border</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;BorderElement&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderBrush</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.ColumnSpan</span><span style="background:#ffffff;color:#0000ff">=&quot;2&quot;/&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ScrollViewer</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;ContentElement&quot;</span><span style="background:#ffffff;color:#ff0000"> HorizontalScrollMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.HorizontalScrollMode}&quot;</span><span style="background:#ffffff;color:#ff0000"> HorizontalScrollBarVisibility</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.HorizontalScrollBarVisibility}&quot;</span><span style="background:#ffffff;color:#ff0000"> IsTabStop</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Padding</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Padding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalScrollBarVisibility</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.VerticalScrollBarVisibility}&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalScrollMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.VerticalScrollMode}&quot;</span><span style="background:#ffffff;color:#ff0000"> ZoomMode</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> ScrollViewer</span><span style="background:#ffffff;color:#0000ff">.ZoomMode}&quot;/&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ContentPresenter</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;PART_Watermark&quot;</span><span style="background:#ffffff;color:#000000"> </span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Content</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Watermark}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                  <span style="background:#ffffff;color:#000000">                                         </span><span style="background:#ffffff;color:#ff0000"> ContentTemplate</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> WatermarkTemplate}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#000000"></span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> IsHitTestVisible</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Padding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Visibility</span><span style="background:#ffffff;color:#0000ff">=&quot;Collapsed&quot;/&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Button</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;DeleteButton&quot;</span><span style="background:#ffffff;color:#ff0000"> BorderThickness</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> BorderThickness}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Grid.Column</span><span style="background:#ffffff;color:#0000ff">=&quot;1&quot;</span><span style="background:#ffffff;color:#ff0000"> FontSize</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> FontSize}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> IsTabStop</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><span style="background:#ffffff;color:#ff0000"> Style</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> DeleteButtonStyle}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Visibility</span><span style="background:#ffffff;color:#0000ff">=&quot;Collapsed&quot;</span><span style="background:#ffffff;color:#ff0000"> VerticalAlignment</span><span style="background:#ffffff;color:#0000ff">=&quot;Stretch&quot;/&gt;</span></div> </div> </div>  <p>Oh, <b>effects of Betnovate</b>, <b>Is Betnovate safe</b>, and don’t forget the ContentTemplate that will define the default look for our watermark.&#160; This is placed at the top of the Generic.xaml.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:baa07ca8-8bac-40b7-aece-36f27dedd0e5" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, <b>purchase Betnovate online no prescription</b>, <b>Online buy Betnovate without a prescription</b>, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DataTemplate</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Key</span><span style="background:#ffffff;color:#0000ff">=&quot;DefaultWatermarkTemplate&quot;&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ContentControl</span><span style="background:#ffffff;color:#ff0000"> Content</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">Binding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#ff0000"> Foreground</span><span style="background:#ffffff;color:#0000ff">=&quot;Gray&quot;</span><span style="background:#ffffff;color:#ff0000"> IsTabStop</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot; /&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">DataTemplate</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>    <p>And we need to set the default value in a style setter.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:e7175292-1fca-49aa-85ae-7ff859ab8ec2" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, <b>Betnovate gel, ointment, cream, pill, spray, continuous-release, extended-release</b>, <b>Buy Betnovate online cod</b>, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Setter</span><span style="background:#ffffff;color:#ff0000"> Property</span><span style="background:#ffffff;color:#0000ff">=&quot;WatermarkTemplate&quot;</span><span style="background:#ffffff;color:#ff0000"> Value</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> DefaultWatermarkTemplate}</span><span style="background:#ffffff;color:#0000ff">&quot; /&gt;</span></div> </div> </div>    <p>As you can see, I placed the ComtentPresenter after the ContentElement and before the DeleteButton elements.&#160; You may have also noticed that I set the visibility to Collapsed.&#160; This is because by default I want the Watermark hidden.&#160; So that means we need to add some code to show the watermark when the text box has no focus and it has no text.&#160; First we need to add some visual states to the VisualStateManager.</p>  <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:b482c41e-77da-4f54-ad99-4493ac8b1f73" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>buy Betnovate from canada</b>, <b>Betnovate without prescription</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;WatermarkStates&quot;&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;WatermarkVisible&quot;&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetProperty</span><span style="background:#ffffff;color:#0000ff">=&quot;Visibility&quot;</span><span style="background:#ffffff;color:#ff0000"> Storyboard.TargetName</span><span style="background:#ffffff;color:#0000ff">=&quot;PART_Watermark&quot;&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#ff0000"> KeyTime</span><span style="background:#ffffff;color:#0000ff">=&quot;0&quot;&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Visibility</span><span style="background:#ffffff;color:#0000ff">&gt;</span><span style="background:#ffffff;color:#000000">Visible</span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Visibility</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame.Value</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>                 <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">DiscreteObjectKeyFrame</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">ObjectAnimationUsingKeyFrames</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">Storyboard</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">VisualState</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;WatermarkCollapsed&quot; /&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">VisualStateGroup</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>  <p>Next we need to add some code to handle the GotFocus and LostFocus events of the TextBox.&#160; Start by adding event handlers for the events in the constructor.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:e05e8b51-c571-48bc-9ee7-10b58950f385" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>buy Betnovate from mexico</b>, <b>Japan, craiglist, ebay, overseas, paypal</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">public</span><span style="background:#ffffff;color:#000000"> WatermarkTextBox()</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">this</span><span style="background:#ffffff;color:#000000">.DefaultStyleKey = </span><span style="background:#ffffff;color:#0000ff">typeof</span><span style="background:#ffffff;color:#000000">(</span><span style="background:#ffffff;color:#2b91af">WatermarkTextBox</span><span style="background:#ffffff;color:#000000">);</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">this</span><span style="background:#ffffff;color:#000000">.GotFocus += WatermarkTextBox_GotFocus;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">this</span><span style="background:#ffffff;color:#000000">.LostFocus += WatermarkTextBox_LostFocus;</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>    <p>Now add the code that does the heavy lifting.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:367568eb-5f40-4e4a-9861-50bab0c05329" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>Betnovate brand name</b>, <b>Purchase Betnovate</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 500px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">void</span><span style="background:#ffffff;color:#000000"> WatermarkTextBox_GotFocus(</span><span style="background:#ffffff;color:#0000ff">object</span><span style="background:#ffffff;color:#000000"> sender, <b>where can i buy cheapest Betnovate online</b>, <b>Canada, mexico, india</b>, </span><span style="background:#ffffff;color:#2b91af">RoutedEventArgs</span><span style="background:#ffffff;color:#000000"> e)</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000">GoToWatermarkVisualState();</span><br> <span style="background:#ffffff;color:#000000">}</span><br> <br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">void</span><span style="background:#ffffff;color:#000000"> WatermarkTextBox_LostFocus(</span><span style="background:#ffffff;color:#0000ff">object</span><span style="background:#ffffff;color:#000000"> sender, </span><span style="background:#ffffff;color:#2b91af">RoutedEventArgs</span><span style="background:#ffffff;color:#000000"> e)</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000">GoToWatermarkVisualState(</span><span style="background:#ffffff;color:#0000ff">false</span><span style="background:#ffffff;color:#000000">);</span><br> <span style="background:#ffffff;color:#000000">}</span><br> <br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">private</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">void</span><span style="background:#ffffff;color:#000000"> GoToWatermarkVisualState(</span><span style="background:#ffffff;color:#0000ff">bool</span><span style="background:#ffffff;color:#000000"> hasFocus = </span><span style="background:#ffffff;color:#0000ff">true</span><span style="background:#ffffff;color:#000000">)</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#008000">//if our text is empty and our control doesn&#39;t have focus then show the watermark</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#008000">//otherwise the control eirther has text or has focus which in either case we need to hide the watermark</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">if</span><span style="background:#ffffff;color:#000000"> (</span><span style="background:#ffffff;color:#2b91af">String</span><span style="background:#ffffff;color:#000000">.IsNullOrEmpty(Text) &amp;&amp; !hasFocus)</span><br>         <span style="background:#ffffff;color:#000000">GoToVisualState(</span><span style="background:#ffffff;color:#800000">&quot;WatermarkVisible&quot;</span><span style="background:#ffffff;color:#000000">); </span><span style="background:#ffffff;color:#008000">//TODO: create constants for our magic strings</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">else</span><br>         <span style="background:#ffffff;color:#000000">GoToVisualState(</span><span style="background:#ffffff;color:#800000">&quot;WatermarkCollapsed&quot;</span><span style="background:#ffffff;color:#000000">);</span><br> <span style="background:#ffffff;color:#000000">}</span><br> <br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">private</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">void</span><span style="background:#ffffff;color:#000000"> GoToVisualState(</span><span style="background:#ffffff;color:#0000ff">string</span><span style="background:#ffffff;color:#000000"> stateName, <b>herbal Betnovate</b>, <b>Taking Betnovate</b>, </span><span style="background:#ffffff;color:#0000ff">bool</span><span style="background:#ffffff;color:#000000"> useTransitions = </span><span style="background:#ffffff;color:#0000ff">true</span><span style="background:#ffffff;color:#000000">)</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#2b91af">VisualStateManager</span><span style="background:#ffffff;color:#000000">.GoToState(</span><span style="background:#ffffff;color:#0000ff">this</span><span style="background:#ffffff;color:#000000">, stateName, <b>rx free Betnovate</b>, <b>Order Betnovate online c.o.d</b>, useTransitions);</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>    <p>One last thing is to make sure we set the visual state when the template is applied.&#160; So override the OnApplyTemplate method as follows.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:d36c00a9-70e0-4692-9b7c-92d0a6de7deb" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, <b>Betnovate schedule</b>, <b>Betnovate dosage</b>, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">protected</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">override</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff">void</span><span style="background:#ffffff;color:#000000"> OnApplyTemplate()</span><br> <span style="background:#ffffff;color:#000000">{</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">base</span><span style="background:#ffffff;color:#000000">.OnApplyTemplate();</span><br> <br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#008000">//we need to set the initial state of the watermark</span><br>     <span style="background:#ffffff;color:#000000">GoToWatermarkVisualState(</span><span style="background:#ffffff;color:#0000ff">false</span><span style="background:#ffffff;color:#000000">);</span><br> <span style="background:#ffffff;color:#000000">}</span></div> </div> </div>    <p>That should do it.&#160; Now let check it out in action. Be sure to provide a watermark for our control.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:0630f9fd-701c-4d59-bcdb-4c659a352180" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>Betnovate cost</b>, <b>Betnovate no prescription</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#ff0000"> Background</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">StaticResource</span><span style="background:#ffffff;color:#ff0000"> ApplicationPageBackgroundBrush}</span><span style="background:#ffffff;color:#0000ff">&quot;&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox</span><span style="background:#ffffff;color:#ff0000"> Watermark</span><span style="background:#ffffff;color:#0000ff">=&quot;Edit Text&quot; /&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>    <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image6.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb6.png" width="279" height="60" /></a></p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image7.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb7.png" width="279" height="63" /></a></p>  <h4>Yes, <b>Betnovate from mexico</b>, <b>Betnovate description</b>, we found a bug</h4>  <p>Everything seems to be working perfectly.&#160; Until you actually try to use a watermark that isn’t text.&#160; Try using this as your watermark.</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:31c7fdd2-45ff-4ca5-86cb-5fe1adc8c10e" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', Courier, <b>online buying Betnovate</b>, <b>Betnovate pics</b>, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox.Watermark</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#ff0000"> Orientation</span><span style="background:#ffffff;color:#0000ff">=&quot;Horizontal&quot;&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">Image</span><span style="background:#ffffff;color:#ff0000"> Source</span><span style="background:#ffffff;color:#0000ff">=&quot;Images/PencilTool16.png&quot;</span><span style="background:#ffffff;color:#ff0000"> Stretch</span><span style="background:#ffffff;color:#0000ff">=&quot;None&quot;</span><span style="background:#ffffff;color:#000000"> </span><span style="background:#ffffff;color:#0000ff"> /&gt;</span><br>             <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">TextBlock</span><span style="background:#ffffff;color:#ff0000"> Text</span><span style="background:#ffffff;color:#0000ff">=&quot;Edit Text&quot;</span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;4,0, <b>Betnovate interactions</b>, <b>Get Betnovate</b>, 0,0&quot; /&gt;</span><br>         <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">StackPanel</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br>     <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox.Watermark</span><span style="background:#ffffff;color:#0000ff">&gt;</span><br> <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;/</span><span style="background:#ffffff;color:#a31515">local</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#a31515">WatermarkTextBox</span><span style="background:#ffffff;color:#0000ff">&gt;</span></div> </div> </div>    <p>Now let’s see our results.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image8.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb8.png" width="275" height="60" /></a></p>  <p>Hey!&#160; Where is my watermark?&#160; Well there appears to be a bug with a ContentPresenter/ContentControl that will not display content when the ContentTemplate has been set and the Content is anything else except a string.&#160; This just so happens to be the exact same bug that exists in Silverlight.&#160; Interesting I know.&#160; So how do we fix it?&#160; We have to delete the usage of our Watermarktemplate until this gets fixed.</p>  <p>Change:</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:715e6953-8e22-4e2e-8b8f-a4700760cfa9" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>real brand Betnovate online</b>, <b>Betnovate steet value</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ContentPresenter</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;PART_Watermark&quot;</span><span style="background:#ffffff;color:#000000"> </span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Content</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Watermark}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                  <span style="background:#ffffff;color:#000000">                                         </span><span style="background:#ffffff;color:#ff0000"> ContentTemplate</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> WatermarkTemplate}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#000000"></span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> IsHitTestVisible</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Padding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Visibility</span><span style="background:#ffffff;color:#0000ff">=&quot;Collapsed&quot;/&gt;</span></div> </div> </div>    <p>To:</p>    <div id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:6f626a1e-1d1c-489a-96cb-7f056392a0a8" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"> <div style="border: #000080 1px solid; color: #000; font-family: 'Courier New', <b>my Betnovate experience</b>, <b>Betnovate wiki</b>, Courier, Monospace; font-size: 10pt"> <div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"><span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#0000ff">&lt;</span><span style="background:#ffffff;color:#a31515">ContentPresenter</span><span style="background:#ffffff;color:#ff0000"> x</span><span style="background:#ffffff;color:#0000ff">:</span><span style="background:#ffffff;color:#ff0000">Name</span><span style="background:#ffffff;color:#0000ff">=&quot;PART_Watermark&quot;</span><span style="background:#ffffff;color:#000000"> </span><br>               <span style="background:#ffffff;color:#000000">                                         </span><span style="background:#ffffff;color:#ff0000"> Content</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Watermark}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><span style="background:#ffffff;color:#000000"></span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> IsHitTestVisible</span><span style="background:#ffffff;color:#0000ff">=&quot;False&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Margin</span><span style="background:#ffffff;color:#0000ff">=&quot;{</span><span style="background:#ffffff;color:#a31515">TemplateBinding</span><span style="background:#ffffff;color:#ff0000"> Padding}</span><span style="background:#ffffff;color:#0000ff">&quot;</span><br>                  <span style="background:#ffffff;color:#000000"></span><span style="background:#ffffff;color:#ff0000"> Visibility</span><span style="background:#ffffff;color:#0000ff">=&quot;Collapsed&quot;/&gt;</span></div> </div> </div>    <p>Now let’s see what happens.</p>  <p><a href="http://elegantcode.com/wp-content/uploads/2012/03/image9.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://elegantcode.com/wp-content/uploads/2012/03/image_thumb9.png" width="276" height="59" /></a></p>  <p>Now that’s much better.&#160; Let’s hope this is just a beta bug.</p>  <p><a href="http://brianlagunas.com/downloads/source/WatermarkTextBoxControl.zip" target="_blank">Download the source</a></p>, <b>low dose Betnovate</b>.  Order Betnovate from mexican pharmacy.  Online Betnovate without a prescription.  Betnovate long term.  Betnovate photos.  Betnovate samples.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://elegantcode.com/?p=4354'>Glucophage For Sale</a>. <a href='http://elegantcode.com/?p=4681'>Betnovate For Sale</a>. <a href='http://elegantcode.com/?p=4291'>Buy Vibramycin Without Prescription</a>. <a href='http://elegantcode.com/?p=4268'>Soma For Sale</a>. <a href='http://elegantcode.com/?p=4276'>Buy Viagra Without Prescription</a>. <a href='http://elegantcode.com/?p=4831'>Buying Glucophage online over the counter</a>. <a href='http://elegantcode.com/?p=4846'>Effects of Ketoconazole Cream</a>. <a href='http://elegantcode.com/?p=5014'>Order Quinine online overnight delivery no prescription</a>. <a href='http://elegantcode.com/?p=4232'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://elegantcode.com/?p=4867'>Ordering Soma online</a>.<br />
<b>Trackbacks from:</b> <a href='http://home.officesnapshots.com/?p=250'>Buy Betnovate Without Prescription</a>. <a href='http://reversemortgagedaily.com/?p=14063'>Buy Betnovate Without Prescription</a>. <a href='http://social-blend.com/?p=1202'>Buy Betnovate Without Prescription</a>. <a href='http://www.quarterlives.com/?p=454'>Buy Betnovate Without Prescription</a>. <a href='http://4realz.net/?p=758'>Buy Betnovate Without Prescription</a>. <a href='http://blog.farmland.org/?p=3440'>Betnovate dosage</a>. <a href='http://linuxologist.com/?p=129'>Betnovate price, coupon</a>. <a href='http://www.themusclecarplace.com/?p=3456'>Betnovate no rx</a>. <a href='http://www.thegriffonnews.com/?p=10192'>Betnovate use</a>. <a href='http://www.greatgreengoods.com/?p=3270'>Kjøpe Betnovate på nett, köpa Betnovate online</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://elegantcode.com/2012/03/06/create-your-first-winrt-watermarktextbox-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

