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

<channel>
	<title>Silverlight Buzz &#187; Silverlight Blend Tutorials</title>
	<atom:link href="http://www.silverlightbuzz.com/category/silverlight-blend-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silverlightbuzz.com</link>
	<description>Gavin Wignall Blogs about Silverlight tutorials and examples</description>
	<lastBuildDate>Mon, 12 Dec 2011 17:05:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mixing it up! Using the InkPresenter with 3D Projection</title>
		<link>http://www.silverlightbuzz.com/2010/02/04/mixing-it-up-using-the-inkpresenter-with-3d-projection/</link>
		<comments>http://www.silverlightbuzz.com/2010/02/04/mixing-it-up-using-the-inkpresenter-with-3d-projection/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 21:57:21 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[All Silverlight Examples]]></category>
		<category><![CDATA[Silverlight 3 tutorials]]></category>
		<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Silverlight C# Tutorials]]></category>
		<category><![CDATA[Silverlight Effects]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Direction]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Mouse position]]></category>
		<category><![CDATA[Paint]]></category>
		<category><![CDATA[Projection]]></category>
		<category><![CDATA[Rotation]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[User Input]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=805</guid>
		<description><![CDATA[Two great tools in Silverlight are the Projection properties and the InkPresenter, so what happens if you put the two...]]></description>
			<content:encoded><![CDATA[<p>Two great tools in Silverlight are the Projection properties and the InkPresenter, so what happens if you put the two together? Well, maybe something like below. Use the mouse to draw within the Silverlight area.</p>
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/drawingin3d/drawingIn3D.html" frameborder="0" style="height:350px;width:560px;">Please upgrade your browser</iframe>
</div>
<p>In this example I have used the InkPresenter to capture the mouse and produce vector paths. I also have a basic interface to change the colour and path size. I then use that captured data to duplicate the vector path upon 16 faces each rotating around a common point using the Projection properties.</p>
<p>The Projection properties in this example have been created inside Expression Blend using a storyboard activated by behaviors.</p>
<p>The InkPresenter control is this example has been created inside Expression Blend, but we need to do a bit of work in the code behind file to record the data and convert it into a visual path. You can read more about this process<a title="Learn how to use the InkPresenter control" href="http://msdn.microsoft.com/en-us/magazine/cc721604.aspx" target="_blank"> in this MSDN article</a>.</p>
<h2>Grab the Source</h2>
<p>As always, you can grab the <a title="Download the source files to this post here" href="http://www.silverlightbuzz.com/examples/projection3DShapes.zip">source files to this post here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2010/02/04/mixing-it-up-using-the-inkpresenter-with-3d-projection/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create a simple 3D sphere animation in Silverlight</title>
		<link>http://www.silverlightbuzz.com/2010/02/02/create-a-simple-3d-sphere-animation-in-silverlight/</link>
		<comments>http://www.silverlightbuzz.com/2010/02/02/create-a-simple-3d-sphere-animation-in-silverlight/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:24:16 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[All Silverlight Examples]]></category>
		<category><![CDATA[Silverlight 3 tutorials]]></category>
		<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Silverlight Effects]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Direction]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Projection]]></category>
		<category><![CDATA[Rotation]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[Sphere]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=799</guid>
		<description><![CDATA[Today I want to show how easy it is to produce a basic 3D object in Silverlight, in the below...]]></description>
			<content:encoded><![CDATA[<p>Today I want to show how easy it is to produce a basic 3D object in Silverlight, in the below example I have used 5 circles to produce a sphere animation. I treat each circle with a looping Projection Transform.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/Projection3DObject/sphere.html" frameborder="0" style="height:300px;width:560px;">Please upgrade your browser</iframe>
</div><br />
Each circle is treated with the exact same treatment but offset so that they form a sphere, to break out each circle press the &#8216;<strong>Break Apart</strong>&#8216; button. To fit the circles together again, press the &#8216;<strong>Place Together</strong>&#8216; button.</p>
<p>You can enhance the 3D effect further by pressing the &#8216;<strong>Spin</strong>&#8216; button, this simply plays a storyboard to spin each circle on an additional axis.</p>
<p>To create this effect I have used the Projection Transform Rotation properties and used Easing on the animations inside <a title="Read more about Expression Blend 3" href="http://www.microsoft.com/Expression/products/Blend_Overview.aspx" target="_blank">Expression Blend 3</a> to help the inertia look right.</p>
<h2>Grab the Source</h2>
<p>As usual you can <a title="Download the source files for this post" href="http://www.silverlightbuzz.com/examples/projection3Dobject.zip" target="_self">download the source files for this example here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2010/02/02/create-a-simple-3d-sphere-animation-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Creating a Silverlight 3d spiral effect with projection</title>
		<link>http://www.silverlightbuzz.com/2010/01/28/creating-a-3d-spiral-effect-with-projection/</link>
		<comments>http://www.silverlightbuzz.com/2010/01/28/creating-a-3d-spiral-effect-with-projection/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 00:18:02 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[All Silverlight Examples]]></category>
		<category><![CDATA[Silverlight 3 tutorials]]></category>
		<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Silverlight Effects]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Direction]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Projection]]></category>
		<category><![CDATA[Rotation]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=766</guid>
		<description><![CDATA[We can use the projection properties in Silverlight 3 to help produce a 3D spiral animation. Please upgrade your browser...]]></description>
			<content:encoded><![CDATA[<p>We can use the projection properties in Silverlight 3 to help produce a 3D spiral animation.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/Spiral1/spiral.html" frameborder="0" style="height:300px;width:560px;">Please upgrade your browser</iframe>
</div>
<h2>Breakdown of effects</h2>
<p>To create this effect I use the following transforms:</p>
<ul>
<li>Opacity at either end of the animation.</li>
<li>Projection values to the X and Z axis to make each element loop to the foreground and background.</li>
<li>Scale transform to enhance the size of each element at it&#8217;s nearest and furthest point.</li>
<li>Easing on the above Scale transform to help the movement look more natural.</li>
<li>Translate transform to move the elements from the left to right.</li>
</ul>
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/Spiral2/spiral.html" frameborder="0" style="height:230px;width:560px;">Please upgrade your browser</iframe>
</div><br />
To get the above effect I also carried out these additional effects:</p>
<ul>
<li>I replaced the circle elements for images.</li>
<li>I slowed down the storyboards using the <strong>SpeedRatio </strong>value, this allows you to speed up or slow down a storyboard without having to go through and reposition all the key frames.</li>
<li>I added an additional projection transform to the Y axis to give the impression the spiral effect is along a curve.</li>
</ul>
<h2>Grab the source</h2>
<p>As usual you can download the source files for both the above examples.</p>
<p><a title="Download Silverlight spiral effect using 3d projection 1" href="http://www.silverlightbuzz.com/examples/spiral1.zip" target="_self">Silverlight spiral effect using 3d projection 1</a></p>
<p><a title="Download Silverlight spiral effect using 3d projection 2" href="http://www.silverlightbuzz.com/examples/spiral2.zip" target="_self">Silverlight spiral effect using 3d projection 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2010/01/28/creating-a-3d-spiral-effect-with-projection/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Playing with Projection in Silverlight</title>
		<link>http://www.silverlightbuzz.com/2010/01/26/playing-with-projection-in-silverlight/</link>
		<comments>http://www.silverlightbuzz.com/2010/01/26/playing-with-projection-in-silverlight/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:00:51 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[All Silverlight Examples]]></category>
		<category><![CDATA[Silverlight 3 tutorials]]></category>
		<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Silverlight Effects]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Direction]]></category>
		<category><![CDATA[Effects]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Projection]]></category>
		<category><![CDATA[Rotation]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=758</guid>
		<description><![CDATA[Using only storyboards and behaviours I have created a cool 3d particle effect. Please upgrade your browser Break down of...]]></description>
			<content:encoded><![CDATA[<p>Using only storyboards and behaviours I have created a cool 3d particle effect.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/ProjectionFun1/projectionfun1.html" frameborder="0" style="height:480px;width:560px;">Please upgrade your browser</iframe>
</div>
<h2>Break down of effects.</h2>
<p>Each element (circle) has it&#8217;s own storyboard that uses the projection properties to spin it around in a 360 degree fashion on it&#8217;s X axis. By increasing the centre point value of the Z axis we get a larger radius.</p>
<p>On top of that each element is offset by 30 degrees on it&#8217;s Y axis, this allows all the elements to form an imaginary sphere. I have also set the storyboard durations to different lengths to allow a chaotic feel to the animation.</p>
<p>Finally I have performed a rotate animation on all of the elements. The was no code needed to create this example, everything was done inside <a title="Expression Blend 3" href="http://www.microsoft.com/Expression/products/Blend_Overview.aspx" target="_blank">Expression Blend 3</a>.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/ProjectionFun2/projectionfun2.html" frameborder="0" style="height:480px;width:560px;">Please upgrade your browser</iframe>
</div><br />
To take the animation one step further, I have replaced the coloured circles with radial gradients and changed the scale of several elements. This adds an additional dimension to the animation.</p>
<h2>Grab the source</h2>
<p>As usual you can grab the source here:</p>
<p><a title="Projection Example 1" href="http://www.silverlightbuzz.com/examples/projectionFun1.zip">Projection example 1</a></p>
<p><a title="Projection Example 2" href="http://www.silverlightbuzz.com/examples/projectionFun2.zip">Projection example 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2010/01/26/playing-with-projection-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Legally using non-standard fonts in Silverlight and Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/30/legally-using-non-standard-fonts-in-silverlight-and-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/30/legally-using-non-standard-fonts-in-silverlight-and-blend/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 00:01:55 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[TextBlock]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Work environment]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=628</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. Blend 3 allows you...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>Blend 3 allows you to embed fonts, but unfortunately if you publish your work online you are technically distributing the font. This is illegal and could potentially land you in trouble.</p>
<p>However, there is a way around this, if you encrypt the font so that it is not usable then you are arguably not distributing it any more. This process is known as Obfuscation. It is important, however, to point out that you still need a license or permission to use a non-standard font in your work.</p>
<h2>How to Obfuscate a font</h2>
<p>First open up Microsoft Word (2007+), create a new document and type every character you will need in the font you require. Save the file as an XPS document and close Microsoft Word.</p>
<p>Locate the saved XPS document on your hardrive and rename the file type from &#8216;<strong>.xps</strong>&#8216; to &#8216;<strong>.zip</strong>&#8216;. Now extract the contents of the .zip and find the file called &#8216;<strong>Resources</strong>&#8216;, inside this folder should be a document with the file type &#8216;<strong>.odttf</strong>&#8216;. Add this file into your Silverlight Solution and set its &#8216;<strong>Build Action</strong>&#8216; to &#8216;<strong>Resource</strong>&#8216;.</p>
<p>Now the final part, in the XAML, locate your textBlock and set the &#8216;<strong>FontFamily</strong>&#8216; property to the .odttf file in your solution. Directly after this needs to be a &#8216;<strong>#</strong>&#8216; and then the exact name of how the font was displayed in the selection field in Microsoft Word. This allows you to have multiple fonts in one .odttf file.</p>
<p>The XAML should look similar to the below.</p>
<p><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">&lt;TextBlock x:Name=</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">"textBlock"</code> <code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">FontFamily=</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">"./Fonts/20FD640A-6B8C-569B-6B08-6F60BA7CC534.odttf#Segoe UI"</code> <code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">FontSize=</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">"12"</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;"> </code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">Foreground=</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">"Black"</code> <code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">Text=</code><code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">"text content goes here"</code> <code style="font: normal normal normal 1em/normal 'Courier New', Courier, Fixed; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; background-color: initial !important; text-align: left !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; display: inline !important; color: #000000 !important; background-position: initial initial !important; padding: 0px !important; margin: 0px !important; border: 0px !important initial !important initial !important;">/&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/30/legally-using-non-standard-fonts-in-silverlight-and-blend/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Making an object re-usable as a User Control in Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/29/making-an-object-re-usable-as-a-user-control-in-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/29/making-an-object-re-usable-as-a-user-control-in-blend/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 00:01:11 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Work environment]]></category>
		<category><![CDATA[XAML]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=624</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. If you are using...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>If you are using multiple instances of elements then it may make more sense to think about making these elements User Controls. User Controls allow you to place objects into a container that can be re-used again and again, even multiple times at once. Every User Control has its own XAML file and its own code file.</p>
<p>To make a selection of elements on stage into a User Control it is really simple. First select all the objects you want to include in your new User Control, then right click anywhere on the selected objects. From the drop down options select &#8216;<strong>Make into UserControl&#8230;</strong>&#8216;. This creates a new XAML file containing the objects you selected with it&#8217;s own code behind file too.</p>
<p>Each time you want to add a new instance of your User Control you will need to add the following XAML in&#8230;</p>
<p><span style="color: #ff0000;">&lt;local:UserControlName Margin=&#8221;0,0,0,0&#8243;/&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/29/making-an-object-re-usable-as-a-user-control-in-blend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Data Binding to share data in Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/28/using-data-binding-to-share-data-in-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/28/using-data-binding-to-share-data-in-blend/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 00:01:37 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[User Input]]></category>
		<category><![CDATA[Work environment]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=616</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. Data Binding allows us...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>Data Binding allows us to take the value from one object and apply it to another without needing to know a single line of code.</p>
<p>In this tutorial we are going to control the font size of a textBlock through the interaction of a Slider control. To start off we need to draw a Slider control and a textBlock on our stage as seen below.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/databinding/1/databinding.html" frameborder="0" style="height:72px;width:490px;">Please upgrade your browser</iframe>
</div><br />
To dataBind our Sliders value to our textBlocks font size we first need to select the Slider and go to the &#8216;<strong>Properties</strong>&#8216; tab. Scroll down to the &#8216;<strong>Common Properties</strong>&#8216; section and locate the &#8216;<strong>Value</strong>&#8216; property. Click on the small square icon to the right of the field, this will bring up a menu, select &#8216;<strong>Data Binding&#8230;</strong>&#8216;.</p>
<p><img class="alignnone" title="select Data Binding" src="http://www.silverlightbuzz.com/images/databinding.jpg" alt="" width="294" height="493" /></p>
<p>This will bring up the Create Data Binding window. First select the &#8216;<strong>Element Property</strong>&#8216; tab (the middle tab). Now click on the object we want to effect (the textBlock), this will bring up a list of values that can be binded. We want to effect the font size so scroll down and select &#8216;<strong>FontSize</strong>&#8216;. Finally we need to make sure the &#8216;<strong>Binding direction</strong>&#8216; is set to &#8216;<strong>TwoWay</strong>&#8216;, expand the bottom area to change this setting.</p>
<p><img class="alignnone" title="Choose the value to Data Bind to" src="http://www.silverlightbuzz.com/images/databinding2.jpg" alt="" width="490" height="588" /></p>
<p>Click ok to save these settings.</p>
<p>Now all that is left to do is to set the minimum and maximum values of our slider, these values will represent the font size range of our textBlock. To change these values go to the &#8216;<strong>Properties</strong>&#8216; tab and scroll down to the &#8216;<strong>Common Properties</strong>&#8216; section. We should end up with the following functionality.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/databinding/2/databinding.html" frameborder="0" style="height:72px;width:490px;">Please upgrade your browser</iframe>
</div><br />
You can see a more complex example of data binding in this<a href="http://www.silverlightbuzz.com/2009/07/09/data-binding-in-silverlight/"> previous post</a> of mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/28/using-data-binding-to-share-data-in-blend/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Resources to share styling in Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/27/using-resources-to-share-styling-in-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/27/using-resources-to-share-styling-in-blend/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 23:01:04 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Button control]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Work environment]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=612</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. When styling up a...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>When styling up a control, Expression Blend allows you to apply that style to other controls. This firstly allows file sizes to be kept  down as the style is only written in the XAML once. Secondly this allows you to retain consistency across multiple controls set to the same style, when making changes to one, all controls set to that style will update automatically.</p>
<p>Below is an example of four standard button controls.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/resources/1/buttons.html" frameborder="0" style="height:46px;width:376px;">Please upgrade your browser</iframe>
</div>
<p>Now I am going to apply a visual style to the first button. You can read more about applying a style to the button control in this <a href="http://www.silverlightbuzz.com/2009/10/21/creating-buttons-and-using-states-in-blend/">previous post</a>. See how our first button is now visually unique compared to the other three.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/resources/2/buttons.html" frameborder="0" style="height:46px;width:376px;">Please upgrade your browser</iframe>
</div>
<p>Now to apply the same style to the following three buttons is really easy. To apply a style, we right click the button we want to change and select &#8216;<strong>Edit Template</strong>&#8216; and then &#8216;<strong>Apply Resource</strong>&#8216;. We now see a list to choose from of styles we have created that are available for that control.</p>
<p><img class="alignnone" title="Choose your style to apply" src="http://www.silverlightbuzz.com/images/buttonStyles.jpg" alt="" width="490" height="450" /></p>
<p>We can repeat this process to each of the buttons to apply this style to all four buttons.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/resources/3/buttons.html" frameborder="0" style="height:46px;width:376px;">Please upgrade your browser</iframe>
</div>
<p>Notice that the style applies to the contents inside the control. The Button control has a &#8216;<strong>Content Presenter</strong>&#8216; inside the control that uses Data Binding (we will touch on Data Binding later in this tutorial series) to pull through the text content, styling and color from the controls top level. By keeping this &#8216;<strong>Content Presenter</strong>&#8216; inside the styling we can keep the text on each button unique.</p>
<p>We can also make our style unrestricted to a fixed size, this allows us to use the same style for different sized buttons as shown below.<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/resources/4/buttons.html" frameborder="0" style="height:104px;width:376px;">Please upgrade your browser</iframe>
</div>
<p>Styles can be applied to all control inside Silverlight.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/27/using-resources-to-share-styling-in-blend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Behaviors to get things moving in Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/26/using-behaviors-to-get-things-moving-in-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/26/using-behaviors-to-get-things-moving-in-blend/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 23:01:09 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[Codeplex]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Drag]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[User Input]]></category>
		<category><![CDATA[Work environment]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=609</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. The launch of Silverlight...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>The launch of Silverlight 3 brought with it the introduction of Behaviors. Behaviors are pieces of functionality that can be applied to objects within Expression Blend without the need for knowing any code at all.</p>
<p>Expression Blend has the following Behaviors ready for use:</p>
<ul>
<li><strong>ChangePropertyAction </strong>- Change an objects property</li>
<li><strong>ControlStoryboardAction </strong>- Tell a storyboard to play/pause / stop</li>
<li><strong>FluidMoveBehavior </strong>- Changes an objects easing</li>
<li><strong>GoToStateAction </strong>- Changes an objects state</li>
<li><strong>HyperlinkAction </strong>- Calls a hyperlink</li>
<li><strong>MouseDragElementBehavior </strong>- Allows an item to be dragged</li>
<li><strong>PlaySoundAction </strong>- Plays an audio element</li>
<li><strong>RemoveElementAction </strong>- removes an object from the stage</li>
</ul>
<p>To apply a Behavior, first click on the last icon in the main tool bar called &#8216;<strong>Assets</strong>&#8216;, then drag your chosen Behavior onto the object you want to activate the Behavior.</p>
<p>Once your Behavior has been placed you will see it indented below that object in the &#8216;<strong>Object and Timeline</strong>&#8216; tab. To set the properties, click on the Behavior and go to the &#8216;<strong>Properties</strong>&#8216; tab. You will see two sections, the &#8216;<strong>Trigger</strong>&#8216; section allows you to set the source target and the event trigger type (mouse enter, mouse click etc). The &#8216;<strong>Common Properties</strong>&#8216; section allows you to set what happens when the Behavior is played.</p>
<p>In this <a href="http://www.silverlightbuzz.com/2009/10/12/animating-with-storyboards-in-blend/">previous post</a> we used the &#8216;<strong>ControlStoryboardAction</strong>&#8216; to start an animation off automatically when the page is loaded.</p>
<p>To find additional Behaviors to use check out the <a href="http://gallery.expression.microsoft.com/en-us/site/search">Expression Gallery</a> and <a href="http://www.codeplex.com/">CodePlex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/26/using-behaviors-to-get-things-moving-in-blend/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Out-the-box controls in Blend</title>
		<link>http://www.silverlightbuzz.com/2009/10/23/out-the-box-controls-in-blend/</link>
		<comments>http://www.silverlightbuzz.com/2009/10/23/out-the-box-controls-in-blend/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 23:01:10 +0000</pubDate>
		<dc:creator>Gavin Wignall</dc:creator>
				<category><![CDATA[Silverlight Blend Tutorials]]></category>
		<category><![CDATA[Working with Silverlight]]></category>
		<category><![CDATA[Codeplex]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[Custom Controls]]></category>
		<category><![CDATA[Designers]]></category>
		<category><![CDATA[Expression Blend]]></category>
		<category><![CDATA[Learn-Blend-in-a-Month]]></category>
		<category><![CDATA[Silverlight 3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Work environment]]></category>

		<guid isPermaLink="false">http://www.silverlightbuzz.com/?p=598</guid>
		<description><![CDATA[This post is part of a string of posts found here: Learn Blend in a Month. Silverlight ships with lots...]]></description>
			<content:encoded><![CDATA[<p>This post is part of a string of posts found here: <a title="Learn Blend in a Month" href="http://www.silverlightbuzz.com/learn-blend-in-a-month/">Learn Blend in a Month</a>.</p>
<p>Silverlight ships with lots of built in controls ready for use with default skins applied. All of these controls are skinable following similar steps found here with <a href="http://www.silverlightbuzz.com/2009/10/21/creating-buttons-and-using-states-in-blend/">the &#8216;Button&#8217; control</a>.</p>
<p>To access the full list of controls available to you in Blend access the last icon in the main tool bar called &#8216;<strong>Assets</strong>&#8216;. This will open up a list of available assets of which one group is labled &#8216;<strong>Controls</strong>&#8216;, open up this drop down to see the full list of available controls.</p>
<p>With Blend 3 and the Silverlight SDK installed I have a list of over 100 controls to look through. Here is a list of ten useful controls I have picked out, ideal for beginner users:</p>
<p><strong>CheckBox </strong>- Works like standard check boxes<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/checkbox/checkbox.html" frameborder="0" style="height:123px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>ComboBox </strong>- A drop down selection box<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/combobox/combobox.html" frameborder="0" style="height:128px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>DatePicker </strong>- A drop down date picker box<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/datepicker/datepicker.html" frameborder="0" style="height:210px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>HyperlinkButton </strong>- A button linking to a web url<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/hyperlinkbutton/hyperlinkbutton.html" frameborder="0" style="height:35px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>ListBox </strong>- A scrollable list<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/listbox/listbox.html" frameborder="0" style="height:87px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>RadioButton </strong>- Works like standard radio buttons<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/radiobutton/radiobutton.html" frameborder="0" style="height:95px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>Rating </strong>- 5 Star rating<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/rating/rating.html" frameborder="0" style="height:39px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>ScrollViewer </strong>- Area to display content within a scrollable area<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/scrollviewer/scrollviewer.html" frameborder="0" style="height:170px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>Slider </strong>- A dragable thumb on a linear scale<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/slider/slider.html" frameborder="0" style="height:35px;width:200px;">Please upgrade your browser</iframe>
</div><br />
<strong>ToggleButton </strong>- An on / off button<br />
<div class="iframe-wrapper">
  <iframe src="http://www.silverlightbuzz.com/silverlightProjects/out-the-box-controls/togglebutton/togglebutton.html" frameborder="0" style="height:39px;width:200px;">Please upgrade your browser</iframe>
</div>
<p>To access even more controls go visit the <a href="http://gallery.expression.microsoft.com/en-us/site/search">Expression Gallery</a> and <a href="http://www.codeplex.com/site/search?projectSearchText=silverlight">CodePlex</a> to see whats available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silverlightbuzz.com/2009/10/23/out-the-box-controls-in-blend/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

