<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>2,000 Things You Should Know About WPF</title>
	<atom:link href="http://wpf.2000things.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpf.2000things.com</link>
	<description>Everything a WPF Developer Needs to Know, in Bite-Sized Chunks</description>
	<lastBuildDate>Fri, 25 May 2012 15:07:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wpf.2000things.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/96cfc0c116be8a3fdedb05f3d276adb4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>2,000 Things You Should Know About WPF</title>
		<link>http://wpf.2000things.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wpf.2000things.com/osd.xml" title="2,000 Things You Should Know About WPF" />
	<atom:link rel='hub' href='http://wpf.2000things.com/?pushpress=hub'/>
		<item>
		<title>#566 &#8211; Setting Properties of an Effect in Blend</title>
		<link>http://wpf.2000things.com/2012/05/25/566-setting-properties-of-an-effect-in-blend/</link>
		<comments>http://wpf.2000things.com/2012/05/25/566-setting-properties-of-an-effect-in-blend/#comments</comments>
		<pubDate>Fri, 25 May 2012 11:00:42 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blend]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Effects]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4951</guid>
		<description><![CDATA[Like other elements, you can set various properties of an effect in Blend using the Properties panel. In the example below, we&#8217;ve added a DropShadowEffect to a Label.  If you select the effect in the XAML editor or the Objects and Timeline panel, you&#8217;ll see several properties that we can set for this effect. For example, we can increase [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4951&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Like other elements, you can set various properties of an <a href="http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/">effect</a> in Blend using the <strong>Properties</strong> panel.</p>
<p>In the example below, we&#8217;ve added a <strong>DropShadowEffect </strong>to a <strong>Label</strong>.  If you select the effect in the XAML editor or the <strong>Objects and Timeline</strong> panel, you&#8217;ll see several properties that we can set for this effect.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/566-001.png"><img class="alignnone size-full wp-image-4952" title="566-001" src="http://2000thingswpf.files.wordpress.com/2012/05/566-001.png?w=630&h=407" alt="" width="630" height="407" /></a></p>
<p>For example, we can increase the <strong>ShadowDepth</strong>, so that the shadow appears further away from the <strong>Label</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/566-002.png"><img class="alignnone size-full wp-image-4953" title="566-002" src="http://2000thingswpf.files.wordpress.com/2012/05/566-002.png?w=630&h=281" alt="" width="630" height="281" /></a></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/blend/'>Blend</a> Tagged: <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/effects/'>Effects</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4951/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4951/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4951/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4951&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/25/566-setting-properties-of-an-effect-in-blend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/566-001.png" medium="image">
			<media:title type="html">566-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/566-002.png" medium="image">
			<media:title type="html">566-002</media:title>
		</media:content>
	</item>
		<item>
		<title>#565 &#8211; Workaround for Inability to Scroll ScrollViewer in Design Mode in Blend</title>
		<link>http://wpf.2000things.com/2012/05/24/565-workaround-for-inability-to-scroll-scrollviewer-in-design-mode-in-blend/</link>
		<comments>http://wpf.2000things.com/2012/05/24/565-workaround-for-inability-to-scroll-scrollviewer-in-design-mode-in-blend/#comments</comments>
		<pubDate>Thu, 24 May 2012 11:00:00 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blend]]></category>
		<category><![CDATA[Artboard]]></category>
		<category><![CDATA[ScrollViewer]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4936</guid>
		<description><![CDATA[When you&#8217;re working in Blend and have some scrollable content in a ScrollViewer, you won&#8217;t be able to see all of the content at design time because Blend doesn&#8217;t let you scroll the ScrollViewer. This can be frustrating, since you want to see your content at design time.  In the example above, I have a series of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4936&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re working in Blend and have some scrollable content in a <strong>ScrollViewer</strong>, you won&#8217;t be able to see all of the content at design time because Blend doesn&#8217;t let you scroll the <strong>ScrollViewer</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-001.png"><img class="alignnone size-full wp-image-4937" title="565-001" src="http://2000thingswpf.files.wordpress.com/2012/05/565-001.png?w=630&h=378" alt="" width="630" height="378" /></a></p>
<p>This can be frustrating, since you want to see your content at design time.  In the example above, I have a series of <strong>Image</strong> controls in a vertical <strong>StackPanel</strong>, but I can only see the first couple.</p>
<p>The trick to working around this limitation is to put your content into a <strong>UserControl</strong> and then put that <strong>UserControl</strong> into the <strong>ScrollViewer</strong>.  You can then scroll the contents of the <strong>UserControl</strong> on the artboard.</p>
<p>Create a <strong>UserControl</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-002.png"><img class="alignnone size-full wp-image-4938" title="565-002" src="http://2000thingswpf.files.wordpress.com/2012/05/565-002.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-003.png"><img class="alignnone size-full wp-image-4939" title="565-003" src="http://2000thingswpf.files.wordpress.com/2012/05/565-003.png?w=630" alt=""   /></a></p>
<p>Move your content into the new <strong>UserControl</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-004.png"><img class="alignnone size-full wp-image-4940" title="565-004" src="http://2000thingswpf.files.wordpress.com/2012/05/565-004.png?w=630" alt=""   /></a></p>
<p>Remove design-time width and height.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-005.png"><img class="alignnone size-full wp-image-4941" title="565-005" src="http://2000thingswpf.files.wordpress.com/2012/05/565-005.png?w=630" alt=""   /></a></p>
<p>Go back to the window that contains your <strong>ScrollViewer</strong>.  Find the <strong>UserControl</strong> in the <strong>Assets</strong> panel and drag it into the <strong>ScrollViewer</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-006.png"><img class="alignnone size-full wp-image-4942" title="565-006" src="http://2000thingswpf.files.wordpress.com/2012/05/565-006.png?w=630" alt=""   /></a></p>
<p>You can now scroll at design time.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/565-007.png"><img class="alignnone size-full wp-image-4945" title="565-007" src="http://2000thingswpf.files.wordpress.com/2012/05/565-007.png?w=630&h=728" alt="" width="630" height="728" /></a></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/blend/'>Blend</a> Tagged: <a href='http://wpf.2000things.com/tag/artboard/'>Artboard</a>, <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/scrollviewer/'>ScrollViewer</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4936/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4936&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/24/565-workaround-for-inability-to-scroll-scrollviewer-in-design-mode-in-blend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-001.png" medium="image">
			<media:title type="html">565-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-002.png" medium="image">
			<media:title type="html">565-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-003.png" medium="image">
			<media:title type="html">565-003</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-004.png" medium="image">
			<media:title type="html">565-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-005.png" medium="image">
			<media:title type="html">565-005</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-006.png" medium="image">
			<media:title type="html">565-006</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/565-007.png" medium="image">
			<media:title type="html">565-007</media:title>
		</media:content>
	</item>
		<item>
		<title>#564 &#8211; Other Places to Get Third Party Effects</title>
		<link>http://wpf.2000things.com/2012/05/23/564-other-places-to-get-third-party-effects/</link>
		<comments>http://wpf.2000things.com/2012/05/23/564-other-places-to-get-third-party-effects/#comments</comments>
		<pubDate>Wed, 23 May 2012 11:00:45 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Pixel Shader]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4923</guid>
		<description><![CDATA[An effect in WPF changes the appearance of a visual element.  The .NET Framework comes with only a couple of effects, but you can find a few other third party effects on the web. WPF Pixel Shader Effects Library &#8211; 23 different effects, demo here DotWay.WPF Controls &#8211; Includes a few interesting effects Here are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4923&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An <a href="http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/">effect</a> in WPF changes the appearance of a visual element.  The .NET Framework comes with only a couple of effects, but you can find a few other third party effects on the web.</p>
<ul>
<li><a href="http://wpffx.codeplex.com/">WPF Pixel Shader Effects Library</a> &#8211; 23 different effects, demo <a href="http://channel9.msdn.com/shows/Continuum/WPFFXDemo/">here</a></li>
<li><a href="http://dotwaywpf.codeplex.com/">DotWay.WPF Controls</a> &#8211; Includes a few interesting effects</li>
</ul>
<p>Here are some of the effects from the Pixel Shader Effects Library:</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-001.png"><img class="alignnone size-full wp-image-4925" title="564-001" src="http://2000thingswpf.files.wordpress.com/2012/05/564-001.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-002.png"><img class="alignnone size-full wp-image-4926" title="564-002" src="http://2000thingswpf.files.wordpress.com/2012/05/564-002.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-003.png"><img class="alignnone size-full wp-image-4927" title="564-003" src="http://2000thingswpf.files.wordpress.com/2012/05/564-003.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-004.png"><img class="alignnone size-full wp-image-4928" title="564-004" src="http://2000thingswpf.files.wordpress.com/2012/05/564-004.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-005.png"><img class="alignnone size-full wp-image-4929" title="564-005" src="http://2000thingswpf.files.wordpress.com/2012/05/564-005.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-006.png"><img class="alignnone size-full wp-image-4930" title="564-006" src="http://2000thingswpf.files.wordpress.com/2012/05/564-006.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/564-007.png"><img class="alignnone size-full wp-image-4931" title="564-007" src="http://2000thingswpf.files.wordpress.com/2012/05/564-007.png?w=630" alt=""   /></a></p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://wpf.2000things.com/category/graphics/'>Graphics</a> Tagged: <a href='http://wpf.2000things.com/tag/effects/'>Effects</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/pixel-shader/'>Pixel Shader</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4923/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4923/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4923/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4923&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/23/564-other-places-to-get-third-party-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-001.png" medium="image">
			<media:title type="html">564-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-002.png" medium="image">
			<media:title type="html">564-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-003.png" medium="image">
			<media:title type="html">564-003</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-004.png" medium="image">
			<media:title type="html">564-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-005.png" medium="image">
			<media:title type="html">564-005</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-006.png" medium="image">
			<media:title type="html">564-006</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/564-007.png" medium="image">
			<media:title type="html">564-007</media:title>
		</media:content>
	</item>
		<item>
		<title>#563 &#8211; Additional Effects in Expression SDK</title>
		<link>http://wpf.2000things.com/2012/05/22/563-additional-effects-in-expression-sdk/</link>
		<comments>http://wpf.2000things.com/2012/05/22/563-additional-effects-in-expression-sdk/#comments</comments>
		<pubDate>Tue, 22 May 2012 11:00:39 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Expression]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4911</guid>
		<description><![CDATA[In addition to the two effects that come with the .NET Framework, you can get access to a number of other effects when you download and install the Expression Blend SDK for .NET 4. Once you install the SDK, you&#8217;ll see the new effects show up in the Effects folder of the Assets panel. The effects [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4911&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In addition to the two <a href="http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/">effects</a> that come with the .NET Framework, you can get access to a number of other effects when you download and install the Expression Blend SDK for .NET 4.</p>
<p>Once you install the SDK, you&#8217;ll see the new effects show up in the Effects folder of the <strong>Assets </strong>panel.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-001.png"><img class="alignnone size-full wp-image-4912" title="563-001" src="http://2000thingswpf.files.wordpress.com/2012/05/563-001.png?w=630&h=471" alt="" width="630" height="471" /></a></p>
<p>The effects include:</p>
<ul>
<li><strong>Bloom</strong> &#8211; Make bright areas appear brighter</li>
<li><strong>Color Tone</strong> &#8211; Render a visual using shades of two colors</li>
<li><strong>Emboss</strong> &#8211; Make visual appear raised or stamped</li>
<li><strong>Magnify</strong> &#8211; Magnify a circular area</li>
<li><strong>Monochrome</strong> &#8211; Render using shades of a single color</li>
<li><strong>Pixelate</strong> &#8211; Reduce resolution, rendering as large pixels</li>
<li><strong>Ripple</strong> &#8211; Apply visual that looks like rippling liquid</li>
<li><strong>Sharpen</strong> &#8211; Sharpen image edges</li>
<li><strong>Swirl</strong> &#8211; Apply effect that twists entire image</li>
</ul>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-002.png"><img class="alignnone size-full wp-image-4914" title="563-002" src="http://2000thingswpf.files.wordpress.com/2012/05/563-002.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-003.png"><img class="alignnone size-full wp-image-4915" title="563-003" src="http://2000thingswpf.files.wordpress.com/2012/05/563-003.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-004.png"><img class="alignnone size-full wp-image-4916" title="563-004" src="http://2000thingswpf.files.wordpress.com/2012/05/563-004.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-005.png"><img class="alignnone size-full wp-image-4917" title="563-005" src="http://2000thingswpf.files.wordpress.com/2012/05/563-005.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-006.png"><img class="alignnone size-full wp-image-4918" title="563-006" src="http://2000thingswpf.files.wordpress.com/2012/05/563-006.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-007.png"><img class="alignnone size-full wp-image-4919" title="563-007" src="http://2000thingswpf.files.wordpress.com/2012/05/563-007.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/563-008.png"><img class="alignnone size-full wp-image-4920" title="563-008" src="http://2000thingswpf.files.wordpress.com/2012/05/563-008.png?w=630" alt=""   /></a></p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://wpf.2000things.com/category/graphics/'>Graphics</a> Tagged: <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/effects/'>Effects</a>, <a href='http://wpf.2000things.com/tag/expression/'>Expression</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4911/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4911/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4911/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4911&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/22/563-additional-effects-in-expression-sdk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-001.png" medium="image">
			<media:title type="html">563-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-002.png" medium="image">
			<media:title type="html">563-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-003.png" medium="image">
			<media:title type="html">563-003</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-004.png" medium="image">
			<media:title type="html">563-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-005.png" medium="image">
			<media:title type="html">563-005</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-006.png" medium="image">
			<media:title type="html">563-006</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-007.png" medium="image">
			<media:title type="html">563-007</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/563-008.png" medium="image">
			<media:title type="html">563-008</media:title>
		</media:content>
	</item>
		<item>
		<title>#562 &#8211; Setting an Effect for an Element in Blend</title>
		<link>http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/</link>
		<comments>http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/#comments</comments>
		<pubDate>Mon, 21 May 2012 11:00:46 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[BlurEffect]]></category>
		<category><![CDATA[DropShadowEffect]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4902</guid>
		<description><![CDATA[You can set the value of the Effect property for any control deriving from UIElement.  An effect is a two-dimensional graphical effect applied to the control when it is rendered. To apply an effect to a control in Blend, start by left-clicking on the Effects folder in the Assets panel. The .NET Framework comes with two pre-defined effects, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4902&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can set the value of the <strong>Effect</strong> property for any control deriving from <strong>UIElement</strong>.  An effect is a two-dimensional graphical effect applied to the control when it is rendered.</p>
<p>To apply an effect to a control in Blend, start by left-clicking on the <strong></strong>Effects folder in the Assets panel.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/562-001.png"><img class="alignnone size-full wp-image-4904" title="562-001" src="http://2000thingswpf.files.wordpress.com/2012/05/562-001.png?w=630" alt=""   /></a></p>
<p>The .NET Framework comes with two pre-defined effects, located in PresentationCore&#8211;<strong>BlurEffect</strong> and <strong>DropShadowEffect</strong>.  (The other effects shown above come from the Expression SDK for .NET 4).  You can drag either of these effects onto a control on the artboard, or a control listed in the Objects and Timeline panel.</p>
<p>Two <strong>Label</strong> controls, before adding effects:</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/562-002.png"><img class="alignnone size-full wp-image-4905" title="562-002" src="http://2000thingswpf.files.wordpress.com/2012/05/562-002.png?w=630" alt=""   /></a></p>
<p>After adding effects:</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/562-003.png"><img class="alignnone size-full wp-image-4906" title="562-003" src="http://2000thingswpf.files.wordpress.com/2012/05/562-003.png?w=630" alt=""   /></a></p>
<p>Corresponding XAML:</p>
<p><pre class="brush: xml;">
		&lt;Label Content=&quot;Drop Shadow Effect&quot; FontFamily=&quot;Cooper Black&quot; FontSize=&quot;48&quot;
			Margin=&quot;20,20,20,5&quot; Foreground=&quot;#FF047800&quot; HorizontalAlignment=&quot;Center&quot;&gt;
			&lt;Label.Effect&gt;
				&lt;DropShadowEffect/&gt;
			&lt;/Label.Effect&gt;
		&lt;/Label&gt;
		&lt;Label Content=&quot;Blur Effect&quot; FontFamily=&quot;Cooper Black&quot; FontSize=&quot;48&quot;
			Margin=&quot;20,5,20,20&quot; Foreground=&quot;#FF047800&quot; HorizontalAlignment=&quot;Center&quot;&gt;
			&lt;Label.Effect&gt;
				&lt;BlurEffect/&gt;
			&lt;/Label.Effect&gt;
		&lt;/Label&gt;
</pre></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/graphics/'>Graphics</a> Tagged: <a href='http://wpf.2000things.com/tag/blureffect/'>BlurEffect</a>, <a href='http://wpf.2000things.com/tag/dropshadoweffect/'>DropShadowEffect</a>, <a href='http://wpf.2000things.com/tag/effects/'>Effects</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4902/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4902&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/21/562-setting-an-effect-for-an-element-in-blend/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/562-001.png" medium="image">
			<media:title type="html">562-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/562-002.png" medium="image">
			<media:title type="html">562-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/562-003.png" medium="image">
			<media:title type="html">562-003</media:title>
		</media:content>
	</item>
		<item>
		<title>#561 &#8211; Drawing a 3D Donut Using a Radial Gradient</title>
		<link>http://wpf.2000things.com/2012/05/18/561-drawing-a-3d-donut-using-a-radial-gradient/</link>
		<comments>http://wpf.2000things.com/2012/05/18/561-drawing-a-3d-donut-using-a-radial-gradient/#comments</comments>
		<pubDate>Fri, 18 May 2012 11:00:32 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[Ellipse]]></category>
		<category><![CDATA[Gradient]]></category>
		<category><![CDATA[Opacity Mask]]></category>
		<category><![CDATA[Radial Gradient]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4888</guid>
		<description><![CDATA[Here&#8217;s another visual effect that you can easily create in WPF and Blend, using a gradient. Let&#8217;s say that you want to draw a ring or donut-shaped object that looks 3D.  You can start by using the Ellipse shape to draw a circle. Next, set the Fill property of the Ellipse to use a radial gradient.  Define five [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4888&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another visual effect that you can easily create in WPF and Blend, using a gradient.</p>
<p>Let&#8217;s say that you want to draw a ring or donut-shaped object that looks 3D.  You can start by using the <strong>Ellipse</strong> shape to draw a circle.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/561-001.png"><img class="alignnone size-full wp-image-4889" title="561-001" src="http://2000thingswpf.files.wordpress.com/2012/05/561-001.png?w=630" alt=""   /></a></p>
<p>Next, set the <strong>Fill</strong> property of the <strong>Ellipse</strong> to use a radial gradient.  Define five gradient stops, as shown, and use the <a href="http://wpf.2000things.com/2012/04/06/531-adjusting-a-gradient-using-the-gradient-tool/">gradient tool</a> to position them as shown.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/561-002.png"><img class="alignnone size-full wp-image-4890" title="561-002" src="http://2000thingswpf.files.wordpress.com/2012/05/561-002.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/561-003.png"><img class="alignnone size-full wp-image-4891" title="561-003" src="http://2000thingswpf.files.wordpress.com/2012/05/561-003.png?w=630" alt=""   /></a></p>
<p>For the hole in the middle of the donut, you can use an opacity mask.  Use a paint program to create an opaque circle that is the same size as the circle, but with a smaller transparent circle in its center.  (Trick: Run your app and screen capture what you have so far, then tweak it in a paint program).  Finally, set this image as the <strong>OpacityMask</strong> of the <strong>Ellipse</strong>.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/561-0041.png"><img class="alignnone size-full wp-image-4893" title="561-004" src="http://2000thingswpf.files.wordpress.com/2012/05/561-0041.png?w=630" alt=""   /></a></p>
<p><pre class="brush: xml;">
&lt;Ellipse.OpacityMask&gt;
    &lt;ImageBrush ImageSource=&quot;Images\Mask.png&quot;/&gt;
&lt;/Ellipse.OpacityMask&gt;
</pre><br />
Voila.<br />
<a href="http://2000thingswpf.files.wordpress.com/2012/05/561-005.png"><img class="alignnone size-full wp-image-4897" title="561-005" src="http://2000thingswpf.files.wordpress.com/2012/05/561-005.png?w=630" alt=""   /></a></pre>
<br />Filed under: <a href='http://wpf.2000things.com/category/graphics/'>Graphics</a> Tagged: <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/ellipse/'>Ellipse</a>, <a href='http://wpf.2000things.com/tag/gradient/'>Gradient</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/opacity-mask/'>Opacity Mask</a>, <a href='http://wpf.2000things.com/tag/radial-gradient/'>Radial Gradient</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4888/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4888&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/18/561-drawing-a-3d-donut-using-a-radial-gradient/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/561-001.png" medium="image">
			<media:title type="html">561-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/561-002.png" medium="image">
			<media:title type="html">561-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/561-003.png" medium="image">
			<media:title type="html">561-003</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/561-0041.png" medium="image">
			<media:title type="html">561-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/561-005.png" medium="image">
			<media:title type="html">561-005</media:title>
		</media:content>
	</item>
		<item>
		<title>#560 &#8211; Using a Radial Gradient to Create a 3D Effect</title>
		<link>http://wpf.2000things.com/2012/05/17/560-using-a-radial-gradient-to-create-a-3d-effect/</link>
		<comments>http://wpf.2000things.com/2012/05/17/560-using-a-radial-gradient-to-create-a-3d-effect/#comments</comments>
		<pubDate>Thu, 17 May 2012 11:00:13 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Brushes]]></category>
		<category><![CDATA[Gradient]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Radial Gradient]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4878</guid>
		<description><![CDATA[You can use a radial gradient in WPF to create a 3D effect on a shape.  In the example below, we set up a gradient on a circle (Ellipse shape) to make the circle look like a 3D sphere. Start by drawing a simple circle (Ellipse). Now specify a radial gradient for the Fill property. Next, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4878&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can use a radial gradient in WPF to create a 3D effect on a shape.  In the example below, we set up a gradient on a circle (<strong>Ellipse</strong> shape) to make the circle look like a 3D sphere.</p>
<p>Start by drawing a simple circle (<strong>Ellipse</strong>).</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-001.png"><img class="alignnone size-full wp-image-4879" title="560-001" src="http://2000thingswpf.files.wordpress.com/2012/05/560-001.png?w=630" alt=""   /></a></p>
<p>Now specify a radial gradient for the <strong>Fill</strong> property.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-002.png"><img class="alignnone size-full wp-image-4880" title="560-002" src="http://2000thingswpf.files.wordpress.com/2012/05/560-002.png?w=630&h=417" alt="" width="630" height="417" /></a></p>
<p>Next, click on the <strong>Gradient</strong> tool and then slide the radial gradient off-center, relative to the ellipse.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-003.png"><img class="alignnone size-full wp-image-4881" title="560-003" src="http://2000thingswpf.files.wordpress.com/2012/05/560-003.png?w=630&h=359" alt="" width="630" height="359" /></a></p>
<p>Finally, adjust the gradient so that the center starts out white and fades to a darker color at the edge of the gradient.  You can also enlarge the gradient so that its outer edge lines up with the outer edge of the ellipse.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-004.png"><img class="alignnone size-full wp-image-4882" title="560-004" src="http://2000thingswpf.files.wordpress.com/2012/05/560-004.png?w=630" alt=""   /></a></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-0041.png"><img class="alignnone size-full wp-image-4883" title="560-004" src="http://2000thingswpf.files.wordpress.com/2012/05/560-0041.png?w=630" alt=""   /></a></p>
<p>Here&#8217;s the final result:</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/560-005.png"><img class="alignnone size-full wp-image-4884" title="560-005" src="http://2000thingswpf.files.wordpress.com/2012/05/560-005.png?w=630" alt=""   /></a></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/brushes/'>Brushes</a> Tagged: <a href='http://wpf.2000things.com/tag/gradient/'>Gradient</a>, <a href='http://wpf.2000things.com/tag/graphics/'>Graphics</a>, <a href='http://wpf.2000things.com/tag/radial-gradient/'>Radial Gradient</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4878/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4878/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4878/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4878&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/17/560-using-a-radial-gradient-to-create-a-3d-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-001.png" medium="image">
			<media:title type="html">560-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-002.png" medium="image">
			<media:title type="html">560-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-003.png" medium="image">
			<media:title type="html">560-003</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-004.png" medium="image">
			<media:title type="html">560-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-0041.png" medium="image">
			<media:title type="html">560-004</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/560-005.png" medium="image">
			<media:title type="html">560-005</media:title>
		</media:content>
	</item>
		<item>
		<title>#559 &#8211; Drawing a Masked Gradient in Blend</title>
		<link>http://wpf.2000things.com/2012/05/16/559-drawing-a-masked-gradient-in-blend/</link>
		<comments>http://wpf.2000things.com/2012/05/16/559-drawing-a-masked-gradient-in-blend/#comments</comments>
		<pubDate>Wed, 16 May 2012 11:00:28 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blend]]></category>
		<category><![CDATA[Gradient]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4866</guid>
		<description><![CDATA[You can use an opacity mask with simple shapes along with a gradient to get a style that looks like a gradient applied to a paper cutout.  For example, you might want the following cloud-like effect. To do this, start with a Rectangle and use a linear gradient for its Fill property. Now create an image with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4866&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can use an opacity mask with simple shapes along with a gradient to get a style that looks like a gradient applied to a paper cutout.  For example, you might want the following cloud-like effect.</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/559-0011.png"><img class="alignnone size-full wp-image-4868" title="559-001" src="http://2000thingswpf.files.wordpress.com/2012/05/559-0011.png?w=630&h=452" alt="" width="630" height="452" /></a></p>
<p>To do this, start with a <strong>Rectangle</strong> and use a linear gradient for its <strong>Fill</strong> property.</p>
<p><pre class="brush: xml;">
    	&lt;Rectangle Height=&quot;400&quot; Stroke=&quot;Black&quot; Width=&quot;600&quot;&gt;
    	    &lt;Rectangle.Fill&gt;
    	        &lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
    		    &lt;GradientStop Color=&quot;#FFFBFBFB&quot; Offset=&quot;0.504&quot;/&gt;
    		    &lt;GradientStop Color=&quot;#FFD6E1EA&quot; Offset=&quot;0.734&quot;/&gt;
    		    &lt;GradientStop Color=&quot;#FF6EB5F5&quot; Offset=&quot;1&quot;/&gt;
    		&lt;/LinearGradientBrush&gt;
 	    &lt;/Rectangle.Fill&gt;
        &lt;/Rectangle&gt;
</pre></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/559-002.png"><img class="alignnone size-full wp-image-4871" title="559-002" src="http://2000thingswpf.files.wordpress.com/2012/05/559-002.png?w=630&h=450" alt="" width="630" height="450" /></a></p>
<p>Now create an image with the shape of the clouds, using an opaque foreground (black in this example) and a transparent background (shown as checkerboard here).</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/559-003.png"><img class="alignnone size-full wp-image-4872" title="559-003" src="http://2000thingswpf.files.wordpress.com/2012/05/559-003.png?w=630" alt=""   /></a></p>
<p>Finally, use the new clouds image as an <strong>ImageBrush</strong> for the <strong>OpacityMask</strong> of the <strong>Rectangle</strong>.</p>
<p><pre class="brush: xml;">
&lt;Rectangle Height=&quot;400&quot; Stroke=&quot;Black&quot; Width=&quot;600&quot;&gt;
    &lt;Rectangle.Fill&gt;
        &lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
            &lt;GradientStop Color=&quot;#FFFBFBFB&quot; Offset=&quot;0.504&quot;/&gt;
            &lt;GradientStop Color=&quot;#FF6EB5F5&quot; Offset=&quot;1&quot;/&gt;
            &lt;GradientStop Color=&quot;#FFD6E1EA&quot; Offset=&quot;0.734&quot;/&gt;
        &lt;/LinearGradientBrush&gt;
    &lt;/Rectangle.Fill&gt;
    &lt;Rectangle.OpacityMask&gt;
        &lt;ImageBrush ImageSource=&quot;Images\CloudsMask.png&quot;/&gt;
    &lt;/Rectangle.OpacityMask&gt;
&lt;/Rectangle&gt;
</pre></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/blend/'>Blend</a> Tagged: <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/gradient/'>Gradient</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4866/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4866/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4866/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4866&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/16/559-drawing-a-masked-gradient-in-blend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/559-0011.png" medium="image">
			<media:title type="html">559-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/559-002.png" medium="image">
			<media:title type="html">559-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/559-003.png" medium="image">
			<media:title type="html">559-003</media:title>
		</media:content>
	</item>
		<item>
		<title>#558 &#8211; Reversing a Gradient Using Blend</title>
		<link>http://wpf.2000things.com/2012/05/15/558-reversing-a-gradient-using-blend/</link>
		<comments>http://wpf.2000things.com/2012/05/15/558-reversing-a-gradient-using-blend/#comments</comments>
		<pubDate>Tue, 15 May 2012 11:00:48 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blend]]></category>
		<category><![CDATA[Gradient Fill]]></category>
		<category><![CDATA[Gradient Stop]]></category>
		<category><![CDATA[GradientStop]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4854</guid>
		<description><![CDATA[When defining a gradient fill in Blend, the Offset property of each gradient stop indicates the location of the gradient stop along the gradient line, from StartPoint to EndPoint. In the example below, the gradient runs from white at the top of the control to blue at the bottom. You can easily reverse the order of the gradient [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4854&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When <a href="http://wpf.2000things.com/2012/04/05/530-creating-a-linear-gradient-in-blend/">defining a gradient fill</a> in Blend, the <strong>Offset</strong> property of each gradient stop indicates the location of the gradient stop along the gradient line, from <strong>StartPoint</strong> to <strong>EndPoint</strong>.</p>
<p>In the example below, the gradient runs from white at the top of the control to blue at the bottom.</p>
<p><pre class="brush: xml;">
		&lt;Button Content=&quot;Gradient Fill&quot; HorizontalAlignment=&quot;Center&quot;
		        Padding=&quot;15,10&quot; Margin=&quot;20&quot;&gt;
			&lt;Button.Background&gt;
				&lt;LinearGradientBrush StartPoint=&quot;0,0&quot; EndPoint=&quot;0,1&quot; &gt;
					&lt;GradientStop Color=&quot;White&quot; Offset=&quot;0&quot;/&gt;
					&lt;GradientStop Color=&quot;Pink&quot; Offset=&quot;0.75&quot;/&gt;
					&lt;GradientStop Color=&quot;Blue&quot; Offset=&quot;1&quot;/&gt;
				&lt;/LinearGradientBrush&gt;
			&lt;/Button.Background&gt;
		&lt;/Button&gt;
</pre></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/558-001.png"><img class="alignnone size-full wp-image-4857" title="558-001" src="http://2000thingswpf.files.wordpress.com/2012/05/558-001.png?w=630" alt=""   /></a><br />
You can easily reverse the order of the gradient stops by clicking on a button in Blend. The button is located on the color editing panel.<br />
<a href="http://2000thingswpf.files.wordpress.com/2012/05/558-002.png"><img class="alignnone size-full wp-image-4858" title="558-002" src="http://2000thingswpf.files.wordpress.com/2012/05/558-002.png?w=630" alt=""   /></a><br />
If we reverse the gradient stops for the example above, the offsets are reversed and the gradient flips upside down.</p>
<p><pre class="brush: xml;">
		&lt;Button Content=&quot;Gradient Fill&quot; HorizontalAlignment=&quot;Center&quot;
		        Padding=&quot;15,10&quot; Margin=&quot;20&quot;&gt;
			&lt;Button.Background&gt;
				&lt;LinearGradientBrush StartPoint=&quot;0,0&quot; EndPoint=&quot;0,1&quot; &gt;
					&lt;GradientStop Color=&quot;White&quot; Offset=&quot;1&quot;/&gt;
					&lt;GradientStop Color=&quot;Pink&quot; Offset=&quot;0.25&quot;/&gt;
					&lt;GradientStop Color=&quot;Blue&quot;/&gt;
				&lt;/LinearGradientBrush&gt;
			&lt;/Button.Background&gt;
		&lt;/Button&gt;
</pre></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/558-003.png"><img class="alignnone size-full wp-image-4862" title="558-003" src="http://2000thingswpf.files.wordpress.com/2012/05/558-003.png?w=630" alt=""   /></a></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/blend/'>Blend</a> Tagged: <a href='http://wpf.2000things.com/tag/blend/'>Blend</a>, <a href='http://wpf.2000things.com/tag/gradient-fill/'>Gradient Fill</a>, <a href='http://wpf.2000things.com/tag/gradient-stop/'>Gradient Stop</a>, <a href='http://wpf.2000things.com/tag/gradientstop/'>GradientStop</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4854/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4854/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4854/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4854&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/15/558-reversing-a-gradient-using-blend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/558-001.png" medium="image">
			<media:title type="html">558-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/558-002.png" medium="image">
			<media:title type="html">558-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/558-003.png" medium="image">
			<media:title type="html">558-003</media:title>
		</media:content>
	</item>
		<item>
		<title>#557 &#8211; Using an Image As an Opacity Mask</title>
		<link>http://wpf.2000things.com/2012/05/14/557-using-an-image-as-an-opacity-mask/</link>
		<comments>http://wpf.2000things.com/2012/05/14/557-using-an-image-as-an-opacity-mask/#comments</comments>
		<pubDate>Mon, 14 May 2012 11:00:04 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Brushes]]></category>
		<category><![CDATA[ImageBrush]]></category>
		<category><![CDATA[Opacity Mask]]></category>
		<category><![CDATA[OpacityMask]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://wpf.2000things.com/?p=4841</guid>
		<description><![CDATA[You&#8217;ll typically use a gradient brush as an opacity mask, to change the opacity of a control gradually. You can also use an image as an opacity brush, making various regions of the target control opaque or transparent depending on the opacity at the same spot in the image. Below, I&#8217;ve created a smiley face [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4841&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ll typically <a href="http://wpf.2000things.com/2012/05/09/554-using-an-opacity-mask/">use a gradient brush as an opacity mask</a>, to change the opacity of a control gradually.</p>
<p>You can also use an image as an opacity brush, making various regions of the target control opaque or transparent depending on the opacity at the same spot in the image.</p>
<p>Below, I&#8217;ve created a smiley face image in Paint.NET.  I&#8217;ve made the background of the image transparent (shown in Paint.NET as a checkerboard).</p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/557-001.png"><img class="alignnone size-full wp-image-4842" title="557-001" src="http://2000thingswpf.files.wordpress.com/2012/05/557-001.png?w=630" alt=""   /></a></p>
<p>Next I create a WPF project with a simple <strong>Image</strong> control.</p>
<p><pre class="brush: xml;">
    &lt;Image Source=&quot;Images\Rocks2Small.jpg&quot; Width=&quot;400&quot;/&gt;
</pre></p>
<p><a href="http://2000thingswpf.files.wordpress.com/2012/05/557-002.png"><img class="alignnone size-full wp-image-4845" title="557-002" src="http://2000thingswpf.files.wordpress.com/2012/05/557-002.png?w=630" alt=""   /></a></p>
<p>Now we specify an <strong>OpacityMask</strong> for this <strong>Image</strong>.  But instead of using a <strong>LinearGradientBrush</strong> or <strong>RadialGradientBrush</strong>, we use an <strong>ImageBrush</strong>&#8211;a brush created from an image.</p>
<p><pre class="brush: xml;">
&lt;Image Source=&quot;Images\Rocks2Small.jpg&quot; Width=&quot;400&quot;&gt;
    &lt;Image.OpacityMask&gt;
        &lt;ImageBrush ImageSource=&quot;Images\FaceMask.png&quot;/&gt;
    &lt;/Image.OpacityMask&gt;
&lt;/Image&gt;
</pre></p>
<p>Using the second image as the opacity mask for the first means&#8211;the first image will be transparent wherever the second image is transparent.<br />
<a href="http://2000thingswpf.files.wordpress.com/2012/05/557-003.png"><img class="alignnone size-full wp-image-4849" title="557-003" src="http://2000thingswpf.files.wordpress.com/2012/05/557-003.png?w=630" alt=""   /></a></p>
<br />Filed under: <a href='http://wpf.2000things.com/category/brushes/'>Brushes</a> Tagged: <a href='http://wpf.2000things.com/tag/brushes/'>Brushes</a>, <a href='http://wpf.2000things.com/tag/imagebrush/'>ImageBrush</a>, <a href='http://wpf.2000things.com/tag/opacity-mask/'>Opacity Mask</a>, <a href='http://wpf.2000things.com/tag/opacitymask/'>OpacityMask</a>, <a href='http://wpf.2000things.com/tag/wpf/'>WPF</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/2000thingswpf.wordpress.com/4841/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/2000thingswpf.wordpress.com/4841/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/2000thingswpf.wordpress.com/4841/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpf.2000things.com&#038;blog=14605478&#038;post=4841&#038;subd=2000thingswpf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpf.2000things.com/2012/05/14/557-using-an-image-as-an-opacity-mask/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8922e4d5254d602ba3ed32dd073b5a4e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">spsexton</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/557-001.png" medium="image">
			<media:title type="html">557-001</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/557-002.png" medium="image">
			<media:title type="html">557-002</media:title>
		</media:content>

		<media:content url="http://2000thingswpf.files.wordpress.com/2012/05/557-003.png" medium="image">
			<media:title type="html">557-003</media:title>
		</media:content>
	</item>
	</channel>
</rss>
