<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alan Le &#187; Design</title>
	<atom:link href="http://alanle.com/category/design/feed/" rel="self" type="application/rss+xml" />
	<link>http://alanle.com</link>
	<description>my personal blog</description>
	<lastBuildDate>Sat, 11 Jul 2009 01:04:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New SketchFlow Demo Video from Silverlight 3/Blend 3 Launch Event</title>
		<link>http://alanle.com/2009/07/10/new-sketchflow-demo-from-silverlight-3blend-3-launch-event/</link>
		<comments>http://alanle.com/2009/07/10/new-sketchflow-demo-from-silverlight-3blend-3-launch-event/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 00:59:55 +0000</pubDate>
		<dc:creator>alan.le</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[SketchFlow]]></category>

		<guid isPermaLink="false">http://alanle.com/2009/07/10/new-sketchflow-demo-from-silverlight-3blend-3-launch-event/</guid>
		<description><![CDATA[I attended the Silverlight 3/Expression Blend 3 Launch event today held in San Francisco. There were a few good demos, but the one that interested me the most was the Blend 3 SketchFlow Demo given by Jon Harris. I got chance to sit up front and record it.
Here’s the unofficial demo video. I broke it [...]]]></description>
			<content:encoded><![CDATA[<p>I attended the Silverlight 3/Expression Blend 3 Launch event today held in San Francisco. There were a few good demos, but the one that interested me the most was the Blend 3 SketchFlow Demo given by Jon Harris. I got chance to sit up front and record it.</p>
<p>Here’s the unofficial demo video. I broke it up into two parts due to Youtube’s 10 minute limitation.</p>
<h3>SketchFlow Demo Part I</h3>
<p><object width="560" height="340" data="http://www.youtube.com/v/zsAZjb7FKXA&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/zsAZjb7FKXA&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /></object></p>
<p>Jon demos the SketchFlow map, design surface, and sample data features. In the end of this video, he show’s SketchFlow documentation and annotation features.</p>
<h3>SketchFlow Demo Part II</h3>
<p><object width="560" height="340" data="http://www.youtube.com/v/f3ErrS68YMM&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/f3ErrS68YMM&amp;hl=en&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /></object></p>
<p>In this demo, Jon demos bringing a pen and paper drawing to life with interactivity from SketchFlow. Awesome!</p>
]]></content:encoded>
			<wfw:commentRss>http://alanle.com/2009/07/10/new-sketchflow-demo-from-silverlight-3blend-3-launch-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>A Screenshot Tour of Expression Blend 3 Preview</title>
		<link>http://alanle.com/2009/03/25/a-screenshot-tour-of-expression-blend-3-preview/</link>
		<comments>http://alanle.com/2009/03/25/a-screenshot-tour-of-expression-blend-3-preview/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 18:56:28 +0000</pubDate>
		<dc:creator>alan.le</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Blend]]></category>

		<guid isPermaLink="false">http://alanle.com/?p=169</guid>
		<description><![CDATA[I have only gotten the chance to scratch the surface of the Expression Blend 3 Preview Release and really excited about it already. Here are some screenshots that I’ve captured while working with this release.
Gradient Tool Improvements


Built-in Pixel Shader Effects



Arrange By Z-Order

Easing Functions

Import Adobe File

Preview States

Copy State

New Item Window

Add Sample Data Source

Define New Sample Data

Property [...]]]></description>
			<content:encoded><![CDATA[<p>I have only gotten the chance to scratch the surface of the <a href="http://www.microsoft.com/expression/try-it/blendpreview.aspx">Expression Blend 3 Preview Release</a> and really excited about it already. Here are some screenshots that I’ve captured while working with this release.</p>
<h3>Gradient Tool Improvements</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image.png" border="0" alt="image" width="258" height="369" /></p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image1.png" border="0" alt="image" width="194" height="181" /></p>
<h3>Built-in Pixel Shader Effects</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image2.png" border="0" alt="image" width="234" height="161" /></p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image3.png" border="0" alt="image" width="281" height="222" /></p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image4.png" border="0" alt="image" width="280" height="250" /></p>
<h3>Arrange By Z-Order</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image5.png" border="0" alt="image" width="279" height="198" /></p>
<h3>Easing Functions</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image6.png" border="0" alt="image" width="264" height="458" /></p>
<h3>Import Adobe File</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image7.png" border="0" alt="image" width="260" height="297" /></p>
<h3>Preview States</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image8.png" border="0" alt="image" width="295" height="287" /></p>
<h3>Copy State</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image9.png" border="0" alt="image" width="380" height="172" /></p>
<h3>New Item Window</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image10.png" border="0" alt="image" width="390" height="426" /></p>
<h3>Add Sample Data Source</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image11.png" border="0" alt="image" width="373" height="98" /></p>
<h3>Define New Sample Data</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image12.png" border="0" alt="image" width="422" height="94" /></p>
<h3>Property Type</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image13.png" border="0" alt="image" width="284" height="149" /></p>
<h3>String Format</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image14.png" border="0" alt="image" width="280" height="394" /></p>
<h3>Edit Sample Values</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image15.png" border="0" alt="image" width="798" height="545" /></p>
<h3>Annotations</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image16.png" border="0" alt="image" width="466" height="317" /></p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image17.png" border="0" alt="image" width="559" height="405" /></p>
<h3>Projection Transform</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image18.png" border="0" alt="image" width="261" height="233" /></p>
<h3>XAML Intellisense</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image19.png" border="0" alt="image" width="551" height="171" /></p>
<h3>C# Intellisense</h3>
<h3><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image20.png" border="0" alt="image" width="330" height="223" /></h3>
<h3>Workspaces</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image21.png" border="0" alt="image" width="244" height="107" /></p>
<h3>Behaviors</h3>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" src="http://alanle.com/wp-content/uploads/2009/03/image22.png" border="0" alt="image" width="298" height="284" /></p>
]]></content:encoded>
			<wfw:commentRss>http://alanle.com/2009/03/25/a-screenshot-tour-of-expression-blend-3-preview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://alanle.com/wp-content/uploads/2009/03/image.png" />
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image18.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image19.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image20.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image21.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/03/image22.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Font Size Tip for Silverlight</title>
		<link>http://alanle.com/2009/02/27/font-size-tip-for-silverlight/</link>
		<comments>http://alanle.com/2009/02/27/font-size-tip-for-silverlight/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 22:06:56 +0000</pubDate>
		<dc:creator>alan.le</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[ExpressionDesign]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://alanle.com/?p=144</guid>
		<description><![CDATA[I often forget that font size is pixel-based instead of point-based when working with Silverlight. Designers using Expression Design will set the point size for Text fonts because that’s what available to them.

When implementing a design that was created using Expression Design, I need to convert the point values for fonts to pixel values for [...]]]></description>
			<content:encoded><![CDATA[<p>I often forget that font size is <strong>pixel-based</strong> instead of <strong>point-based</strong> when working with Silverlight. Designers using Expression Design will set the point size for Text fonts because that’s what available to them.</p>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="image" src="http://alanle.com/wp-content/uploads/2009/02/image1.png" border="0" alt="image" width="585" height="377" /></p>
<p><strong>When implementing a design that was created using Expression Design, I need to convert the point values for fonts to pixel values for the fonts to be rendered accurately as designed. </strong>Traditionally, a point is 1/72 of an inch. A Silverlight pixel renders at 1/96 of an inch. To convert a point to a pixel, I need to multiply the point by 96/72 or 1.333….</p>
<p>Here’s a handy chart that I use.</p>
<table border="0" cellspacing="0" cellpadding="2" width="300">
<tbody>
<tr>
<td width="150" valign="top"><strong>Point (pt)</strong></td>
<td width="150" valign="top"><strong>Pixel (px)~</strong></td>
</tr>
<tr>
<td width="150" valign="top">7pt</td>
<td width="150" valign="top">9.333</td>
</tr>
<tr>
<td width="150" valign="top">8pt</td>
<td width="150" valign="top">10.666</td>
</tr>
<tr>
<td width="150" valign="top">9pt</td>
<td width="150" valign="top">12</td>
</tr>
<tr>
<td width="150" valign="top">10pt</td>
<td width="150" valign="top">13.333</td>
</tr>
<tr>
<td width="150" valign="top">11pt</td>
<td width="150" valign="top">14.666</td>
</tr>
<tr>
<td width="150" valign="top">12pt</td>
<td width="150" valign="top">16</td>
</tr>
<tr>
<td width="150" valign="top">13pt</td>
<td width="150" valign="top">17.333</td>
</tr>
<tr>
<td width="150" valign="top">14pt</td>
<td width="150" valign="top">18.666</td>
</tr>
<tr>
<td width="150" valign="top">15pt</td>
<td width="150" valign="top">20</td>
</tr>
</tbody>
</table>
<p><img style="border-right: 0px; border-top: 0px; display: inline; margin-left: 0px; border-left: 0px; margin-right: 0px; border-bottom: 0px" title="image" src="http://alanle.com/wp-content/uploads/2009/02/image2.png" border="0" alt="image" width="605" height="401" /></p>
<p><em>Note that this is not an issue with setting FontSize for TextBlocks in WPF. With WPF, the FontSize value can be set with the “pt” unit qualifier and no conversion is necessary. Unit qualifiers are not supported in Silverlight 2.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://alanle.com/2009/02/27/font-size-tip-for-silverlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://alanle.com/wp-content/uploads/2009/02/image1.png" />
		<media:content url="http://alanle.com/wp-content/uploads/2009/02/image1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
		<media:content url="http://alanle.com/wp-content/uploads/2009/02/image2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Tear-away Tabs in Safari 4</title>
		<link>http://alanle.com/2009/02/24/tear-away-tabs-in-safari-4/</link>
		<comments>http://alanle.com/2009/02/24/tear-away-tabs-in-safari-4/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 18:44:56 +0000</pubDate>
		<dc:creator>alan.le</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://alanle.com/?p=138</guid>
		<description><![CDATA[ I installed Safari 4 today. The tabs inline on the Windows title bar was the first thing that got my attention. At then right end of the tab was a gripper icon, which allowed me reorder the tabs or to tear away the tab so that it is in its own window. Very cool!
Here’s [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 10px 0px 0px; border-right-width: 0px" title="safari" src="http://alanle.com/wp-content/uploads/2009/02/safari.png" border="0" alt="safari" width="90" height="95" align="left" /> I installed <a href="http://www.apple.com/safari/">Safari 4</a> today. The tabs inline on the Windows title bar was the first thing that got my attention. At then right end of the tab was a gripper icon, which allowed me reorder the tabs or to tear away the tab so that it is in its own window. Very cool!</p>
<p>Here’s a video that I captured of the Safari 4 tabs in action.</p>
<p><object width="598" height="586" data="http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/jingh264player.swf" type="application/x-shockwave-flash"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="thumb=http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/FirstFrame.jpg&amp;width=598&amp;height=586&amp;showbranding=false&amp;content=http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/2009-02-24_1023.mp4" /><param name="allowFullScreen" value="true" /><param name="scale" value="showall" /><param name="allowScriptAccess" value="always" /><param name="base" value="http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/" /><param name="src" value="http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/jingh264player.swf" /><param name="flashvars" value="thumb=http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/FirstFrame.jpg&amp;width=598&amp;height=586&amp;showbranding=false&amp;content=http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/2009-02-24_1023.mp4" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://alanle.com/2009/02/24/tear-away-tabs-in-safari-4/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
<enclosure url="http://content.screencast.com/users/a7an/folders/Jing/media/02141ca7-7879-4c18-91e6-297c1f7691c3/2009-02-24_1023.mp4" length="609770" type="video/mp4" />
	
		<media:thumbnail url="http://alanle.com/wp-content/uploads/2009/02/safari.png" />
		<media:content url="http://alanle.com/wp-content/uploads/2009/02/safari.png" medium="image">
			<media:title type="html">safari</media:title>
		</media:content>
	</item>
		<item>
		<title>Naming your WPF and Silverlight resources</title>
		<link>http://alanle.com/2009/02/15/naming-your-wpf-and-silverlight-resources/</link>
		<comments>http://alanle.com/2009/02/15/naming-your-wpf-and-silverlight-resources/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 20:11:35 +0000</pubDate>
		<dc:creator>alan.le</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Blend]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://alanle.com/?p=132</guid>
		<description><![CDATA[I’ve written about WPF resource organization and keeping XAML clean before. Recently I came across a WPF sample application that had an interesting naming convention for brush resources.
Instead of naming a brush resource as MainWindowBackgroundBrush, they would use the name Background_MainWindow. At first, this may seem like an odd convention, especially with the underscore. However [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://alanle.com/wp-content/uploads/2009/02/image.png"><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin: 0px 0px 0px 15px; border-right-width: 0px" height="432" alt="image" src="http://alanle.com/wp-content/uploads/2009/02/image-thumb.png" width="329" align="right" border="0" /></a>I’ve written about <a href="http://blogs.vertigo.com/personal/alanl/Blog/archive/2007/11/26/wpf-resource-organization-organized-as-separate-files-by-type-vs-single-file.aspx">WPF resource organization</a> and <a href="http://blogs.vertigo.com/personal/alanl/Blog/archive/2007/11/30/keeping-xaml-clean.aspx">keeping XAML clean</a> before. Recently I came across a <a href="http://windowsclient.net/appfeeds/SubscriptionCenter/Gallery/photosuru.aspx">WPF sample application</a> that had an interesting naming convention for brush resources.</p>
<p>Instead of naming a brush resource as <strong>MainWindowBackgroundBrush, </strong>they would use the name <strong>Background_MainWindow. </strong>At first, this may seem like an odd convention, especially with the underscore. However taken as a whole, this convention can be really useful in Expression Blend.</p>
<p>During the implementation process when applying brushes to WPF elements, the brushes can be quickly and easily set. Just select Brush Resources and find the correct brush. Since the brushes are in alphabetically order, all of the background brushes are in the same area. Likewise for the border and foreground brushes.</p>
<p>Also with this convention, we can remove the “Brush” word in the name since we can easily tell that a resource is a brush because the brush resources start with Border_, Background_, or Foreground_.</p>
<p>I think I will start following this naming convention in future WPF and Silverlight projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://alanle.com/2009/02/15/naming-your-wpf-and-silverlight-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://alanle.com/wp-content/uploads/2009/02/image-thumb.png" />
		<media:content url="http://alanle.com/wp-content/uploads/2009/02/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
