<?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>Paul Yanez &#187; Silverlight</title>
	<atom:link href="http://paulyanez.com/interactive/index.php/category/tutorials/silverlight-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulyanez.com/interactive</link>
	<description>Interactive Design and Labs</description>
	<lastBuildDate>Wed, 01 Feb 2012 20:51:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fluid Layout Silverlight Video Player Part 1</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-silverlight-video-player-part-1/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-silverlight-video-player-part-1/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 04:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[databinding]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1447</guid>
		<description><![CDATA[

 In the following tutorial we will begin building a fluid layout for a Silverlight video player.
       The main goal is to allow the scaling of the middle section of controlbar which houses the progressbar to scale according to the width of the player. The left and right columns [...]]]></description>
			<content:encoded><![CDATA[<table width="640" align="left">
<tr>
<td> In the following tutorial we will begin building a fluid layout for a Silverlight video player.<br />
      <span id="more-1447"></span> The main goal is to allow the scaling of the middle section of controlbar which houses the progressbar to scale according to the width of the player. The left and right columns will remain a fixed size. There should be no loss of quality of the graphic assets of the controls and the position of each control should remain relative of it&#8217;s container at all times.<br />
<br />
      </br><br />
      Steps<br />
      1- Build a wireframe of the containers you are trying to scale and have as fixed sizes<br />
      2- Use the Grid component as your layout component<br />
      3- Areas that you want to remain a fixed size, set the &#8220;ColumnDefinition Width&#8221; to a numerical value &#8211; ex: the pause component is fixed &#8211; ColumnDefinition Width=&#8221;50&#8243;<br />
      4- Areas that you want to scale, set the &#8220;ColumnDefinition Width&#8221; to &#8220;*&#8221; &#8211; ex: the middle section which contains the progressbar </p>
<p>
      </br><br />
      <font face="Georgia" color="#000000" size="4">Use the slider below to see the fluid layout</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
          <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="384"><param name="source" value="http://www.paulyanez.com/interactive/blog/FluidVideoPlayer1/FluidLayout.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a><br />
          </object><br />
          <iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
        </div>
</p></form>
<p>
    </br></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Wireframe of the videoplayer and the scaling we want to achieve</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/wireframe.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/wireframe.jpg" alt="wireframe" title="wireframe" width="640" height="313" class="alignleft size-full wp-image-1453" /></a>
</td>
</tr>
</table>
<p><font face="Georgia" color="#000000" size="4">XAML code</font> </p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
	x:Class=&quot;FluidLayout.MainPage&quot; Height=&quot;384&quot; mc:Ignorable=&quot;d&quot;&gt;

	&lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;White&quot; MinWidth=&quot;300&quot;&gt;
		&lt;Grid x:Name=&quot;fluidGrid&quot; Margin=&quot;0,0,0,72&quot; Width=&quot;{Binding Value, ElementName=sliderWidth, Mode=OneWay}&quot;&gt;
			&lt;Grid.RowDefinitions&gt;
				&lt;RowDefinition Height=&quot;250&quot;/&gt;
				&lt;RowDefinition Height=&quot;61&quot;/&gt;
			&lt;/Grid.RowDefinitions&gt;
			&lt;Grid.ColumnDefinitions&gt;
				&lt;ColumnDefinition Width=&quot;50&quot;/&gt;
				&lt;ColumnDefinition Width=&quot;*&quot;/&gt;
				&lt;ColumnDefinition Width=&quot;65&quot;/&gt;
			&lt;/Grid.ColumnDefinitions&gt;
			&lt;Rectangle Width=&quot;50&quot; Margin=&quot;0&quot; Grid.Row=&quot;1&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;#FF212121&quot; Offset=&quot;0&quot;/&gt;
						&lt;GradientStop Color=&quot;#FF070606&quot; Offset=&quot;1&quot;/&gt;
					&lt;/LinearGradientBrush&gt;
				&lt;/Rectangle.Fill&gt;
			&lt;/Rectangle&gt;
			&lt;Rectangle x:Name=&quot;fluidContent&quot; Margin=&quot;0&quot; Grid.Column=&quot;1&quot; Grid.Row=&quot;1&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;#FF222222&quot; Offset=&quot;0&quot;/&gt;
						&lt;GradientStop Color=&quot;#FF070606&quot; Offset=&quot;1&quot;/&gt;
					&lt;/LinearGradientBrush&gt;
				&lt;/Rectangle.Fill&gt;
			&lt;/Rectangle&gt;
			&lt;Rectangle Grid.Column=&quot;2&quot; Width=&quot;65&quot; Grid.Row=&quot;1&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;#FF212121&quot; Offset=&quot;0&quot;/&gt;
						&lt;GradientStop Color=&quot;#FF070606&quot; Offset=&quot;1&quot;/&gt;
					&lt;/LinearGradientBrush&gt;
				&lt;/Rectangle.Fill&gt;
			&lt;/Rectangle&gt;
			&lt;Rectangle Fill=&quot;Black&quot; Margin=&quot;0,0,0,0&quot; Grid.ColumnSpan=&quot;3&quot; Height=&quot;250&quot; VerticalAlignment=&quot;Top&quot;/&gt;
			&lt;Canvas HorizontalAlignment=&quot;Left&quot; Margin=&quot;20,20,0,20&quot; Width=&quot;12&quot; Grid.Row=&quot;1&quot;&gt;
				&lt;Rectangle x:Name=&quot;pause1&quot; Width=&quot;4&quot; Height=&quot;18&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;#FF3473AE&quot; Offset=&quot;0&quot;/&gt;
							&lt;GradientStop Color=&quot;#FF1A3D63&quot; Offset=&quot;1&quot;/&gt;
						&lt;/LinearGradientBrush&gt;
					&lt;/Rectangle.Fill&gt;
				&lt;/Rectangle&gt;
				&lt;Rectangle x:Name=&quot;pause2&quot; Width=&quot;4&quot; Height=&quot;18&quot; Canvas.Left=&quot;8&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;#FF3473AE&quot; Offset=&quot;0&quot;/&gt;
							&lt;GradientStop Color=&quot;#FF1A3D63&quot; Offset=&quot;1&quot;/&gt;
						&lt;/LinearGradientBrush&gt;
					&lt;/Rectangle.Fill&gt;
				&lt;/Rectangle&gt;
			&lt;/Canvas&gt;
			&lt;Rectangle Height=&quot;5&quot; Width=&quot;{Binding Width, ElementName=fluidContent, Mode=OneWay}&quot; VerticalAlignment=&quot;Top&quot; Grid.Column=&quot;1&quot; Grid.Row=&quot;1&quot; d:LayoutOverrides=&quot;Height&quot; Margin=&quot;0,25,0,0&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;#FF111111&quot;/&gt;
						&lt;GradientStop Color=&quot;#FF2A2929&quot; Offset=&quot;0.211&quot;/&gt;
					&lt;/LinearGradientBrush&gt;
				&lt;/Rectangle.Fill&gt;
			&lt;/Rectangle&gt;
			&lt;Canvas Margin=&quot;15,17,0,16&quot; Grid.Column=&quot;2&quot; Grid.Row=&quot;1&quot;&gt;
				&lt;Rectangle Height=&quot;13&quot; Width=&quot;17&quot; Fill=&quot;#FF4C4C4C&quot; Canvas.Left=&quot;9&quot; Canvas.Top=&quot;8&quot;/&gt;
				&lt;Path Stretch=&quot;Fill&quot; Height=&quot;5.253&quot; Width=&quot;5.123&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M769.54871,417.96725 L769.50836,412.4787 L774.93469,412.49072&quot; Stroke=&quot;#FF4C4C4C&quot; Canvas.Left=&quot;0.54&quot; Canvas.Top=&quot;0.05&quot;/&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;5.444&quot; Width=&quot;5.764&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M773.7923,417.28259 C773.63214,417.24255 769.02917,412.83853 769.02917,412.83853&quot; Canvas.Left=&quot;0.4&quot;/&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;4.984&quot; Width=&quot;5.123&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M769.54871,417.96725 L769.50836,412.4787 L774.93469,412.49072&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Left=&quot;0.14&quot; Canvas.Top=&quot;22.698&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform ScaleY=&quot;-1&quot;/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;4.324&quot; Width=&quot;5.663&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M773.7923,417.28259 C773.63214,417.24255 769.02917,412.83853 769.02917,412.83853&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Top=&quot;23.326&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform ScaleY=&quot;-1&quot;/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;5.253&quot; Width=&quot;5.192&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M769.54871,417.96725 L769.50836,412.4787 L774.93469,412.49072&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Left=&quot;29.391&quot; Canvas.Top=&quot;0.05&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform ScaleX=&quot;-1&quot;/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;5.444&quot; Width=&quot;5.842&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M773.7923,417.28259 C773.63214,417.24255 769.02917,412.83853 769.02917,412.83853&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Left=&quot;28.883&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform ScaleX=&quot;-1&quot;/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;4.984&quot; Width=&quot;5.192&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M769.54871,417.96725 L769.50836,412.4787 L774.93469,412.49072&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Left=&quot;29.796&quot; Canvas.Top=&quot;22.698&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform Angle=&quot;180&quot;/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
				&lt;Path Stretch=&quot;Fill&quot; Stroke=&quot;#FF4C4C4C&quot; Height=&quot;4.324&quot; Width=&quot;5.739&quot; UseLayoutRounding=&quot;False&quot; Data=&quot;M773.7923,417.28259 C773.63214,417.24255 769.02917,412.83853 769.02917,412.83853&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Canvas.Left=&quot;29.391&quot; Canvas.Top=&quot;23.326&quot;&gt;
					&lt;Path.RenderTransform&gt;
						&lt;TransformGroup&gt;
							&lt;ScaleTransform/&gt;
							&lt;SkewTransform/&gt;
							&lt;RotateTransform Angle=&quot;180&quot;/&gt;
							&lt;TranslateTransform/&gt;
						&lt;/TransformGroup&gt;
					&lt;/Path.RenderTransform&gt;
				&lt;/Path&gt;
			&lt;/Canvas&gt;
		&lt;/Grid&gt;
		&lt;Slider x:Name=&quot;sliderWidth&quot; Height=&quot;28&quot; Margin=&quot;196,0,194,31&quot; VerticalAlignment=&quot;Bottom&quot; Minimum=&quot;350&quot; Maximum=&quot;640&quot; Value=&quot;640&quot; Width=&quot;250&quot;/&gt;
		&lt;Image Margin=&quot;247,43,244,175&quot; Width=&quot;149&quot; Source=&quot;silverlight-logo.png&quot; Stretch=&quot;None&quot; d:LayoutOverrides=&quot;HorizontalAlignment&quot;/&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p></br><br />
The controls in this tutorial are not functional, the controls are simply meant to be placed with a fluid layout. The following are tutorials on building a video player<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<p>  <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
<p>Related Articles<br />
<a href="http://paulyanez.com/interactive/index.php/2009/11/databinding-controls-in-silverlight-3/">Databinding controls in SilverLight 3</a><br />
<a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar for your Hulu inspired SilverLight video player</a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-silverlight-video-player-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating custom Silverlight buttons with Images Gradients and Transitions</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/creating-custom-silverlight-buttons-with-images-gradients-and-transitions/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/creating-custom-silverlight-buttons-with-images-gradients-and-transitions/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[transitions]]></category>
		<category><![CDATA[usercontrol]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1395</guid>
		<description><![CDATA[

 In the following tutorial I will show how to create your own custom button with images, gradients and transitions.
      
      1- import an image and place on the artboard
      2- add a rectangle with a radial gradient the same [...]]]></description>
			<content:encoded><![CDATA[<table width="640" align="left">
<tr>
<td> In the following tutorial I will show how to create your own custom button with images, gradients and transitions.<br />
      <span id="more-1395"></span><br />
      1- import an image and place on the artboard<br />
      2- add a rectangle with a radial gradient the same width and height as the image<br />
      3- add a rectangle with no fill and grey color as the border<br />
      4- select all 3 objects, right click and group into a canvas<br />
      5- right click and select make into usercontrol<br />
      6- select button as the type of usercontrol you want to create<br />
      7- right click and select &#8220;edit template/edit current&#8221;<br />
      8- select the states panel and go to the &#8220;mouseover&#8221; state and set the gradient&#8217;s opacity property to &#8220;0&#8243; and change the stroke color of the rectangle from grey to white<br />
      9- change the transition duration to 0.3 sec and set the transition to &#8220;cubic in&#8221;</p>
<p>
      </br><br />
      <font face="Georgia" color="#000000" size="4">Silverlight </font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
          <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="333"><param name="source" value="http://www.paulyanez.com/interactive/blog/CustomButtonEffect/CustomButtonEffects.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/> </a><br />
          </object><br />
          <iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
        </div>
</p></form>
<p>
    </br></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Import an image and place on the artboard</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/imageImport.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/imageImport.jpg" alt="imageImport" title="imageImport" width="276" height="152" class="alignleft size-full wp-image-1400" /></a></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Add a rectangle with a radial gradient the same width and height as the image</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/radialgradient.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/radialgradient.jpg" alt="radialgradient" title="radialgradient" width="276" height="152" class="alignleft size-full wp-image-1402" /></a></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Add a rectangle with no fill and grey color as the border</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/border.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/border.jpg" alt="border" title="border" width="276" height="152" class="alignleft size-full wp-image-1403" /></a></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Select all 3 objects</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/selectall.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/selectall.jpg" alt="selectall" title="selectall" width="640" height="243" class="alignleft size-full wp-image-1407" /></a></td>
</tr>
<tr>
<td align="left">
<br /></br><font face="Georgia" color="#000000" size="2">Group into a canvas</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/canvas.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/canvas.jpg" alt="canvas" title="canvas" width="640" height="296" class="alignleft size-full wp-image-1404" /></a>
</td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Right click and select make into usercontrol, select button as the type of usercontrol you want to create</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/controlwindow.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/controlwindow.jpg" alt="controlwindow" title="controlwindow" width="488" height="583" class="alignleft size-full wp-image-1406" /></a></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Right click and select &#8220;edit template/edit current&#8221;, select the states panel and go to the &#8220;mouseover&#8221; state and set the gradient&#8217;s opacity property to &#8220;0&#8243; and change the stroke color of the rectangle from grey to white</font></p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/mouseover.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/mouseover.jpg" alt="mouseover" title="mouseover" width="643" height="252" class="alignleft size-full wp-image-1408" /></a></td>
</tr>
<tr>
<td>
<br /></br><font face="Georgia" color="#000000" size="2">Change the transition duration to 0.3 sec and set the transition to &#8220;cubic in&#8221;</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/transition.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/transition.jpg" alt="transition" title="transition" width="643" height="370" class="alignleft size-full wp-image-1409" /></a>
  </td>
</tr>
</table>
<p><font face="Georgia" color="#000000" size="4">XAML code</font> </p>
<pre class="brush: xml;">
      &lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
	x:Class=&quot;CustomButtonEffects.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;325&quot; mc:Ignorable=&quot;d&quot;&gt;
        &lt;Grid x:Name=&quot;LayoutRoot&quot;&gt;
          &lt;Grid.Background&gt;
            &lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
              &lt;GradientStop Color=&quot;Black&quot; Offset=&quot;0&quot;/&gt;
              &lt;GradientStop Color=&quot;#FF353535&quot; Offset=&quot;1&quot;/&gt;
            &lt;/LinearGradientBrush&gt;
          &lt;/Grid.Background&gt;
          &lt;TextBlock Height=&quot;53&quot; Margin=&quot;124,0,120,71&quot; VerticalAlignment=&quot;Bottom&quot; FontSize=&quot;34.667&quot; TextWrapping=&quot;Wrap&quot; HorizontalAlignment=&quot;Center&quot; FontFamily=&quot;Fonts/Fonts.zip#Myriad Pro&quot;&gt;
            &lt;TextBlock.Foreground&gt;
              &lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
                &lt;GradientStop Color=&quot;#FFE0E0E0&quot; Offset=&quot;0&quot;/&gt;
                &lt;GradientStop Color=&quot;#FF585858&quot; Offset=&quot;1&quot;/&gt;
              &lt;/LinearGradientBrush&gt;
            &lt;/TextBlock.Foreground&gt;
            &lt;TextBlock.Effect&gt;
              &lt;DropShadowEffect BlurRadius=&quot;2&quot; Opacity=&quot;0.5&quot; ShadowDepth=&quot;2&quot;/&gt;
            &lt;/TextBlock.Effect&gt;
            &lt;Run Text=&quot;Custom Button Effects&quot;/&gt;
            &lt;LineBreak/&gt;
          &lt;/TextBlock&gt;
          &lt;TextBlock Height=&quot;52&quot; Margin=&quot;161,0,157,19&quot; VerticalAlignment=&quot;Bottom&quot; FontSize=&quot;16&quot; Foreground=&quot;White&quot; TextWrapping=&quot;Wrap&quot; FontFamily=&quot;Fonts/Fonts.zip#Myriad Pro&quot; Text=&quot;Rollover the buttons to see the effect .&quot; TextAlignment=&quot;Center&quot;/&gt;
          &lt;Button Margin=&quot;220,69,220,155&quot; Style=&quot;{StaticResource ButtonImageGradient}&quot; Content=&quot;Button&quot;/&gt;
          &lt;Button Margin=&quot;18,69,0,155&quot; Style=&quot;{StaticResource ButtonImageGradient}&quot; Content=&quot;Button&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;200&quot;/&gt;
          &lt;Button Margin=&quot;0,69,18,155&quot; Style=&quot;{StaticResource ButtonImageGradient}&quot; Content=&quot;Button&quot; HorizontalAlignment=&quot;Right&quot; Width=&quot;200&quot;/&gt;
        &lt;/Grid&gt;
      &lt;/UserControl&gt;
      </pre>
<p>
      </br><br />
      <font face="Georgia" color="#000000" size="4">XAML code &#8211; Resource Dictionary</font>
<pre class="brush: xml;">
      &lt;ResourceDictionary
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot; xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; mc:Ignorable=&quot;d&quot;&gt;
        &lt;!-- Resource dictionary entries should be defined here. --&gt;
        &lt;Style x:Key=&quot;ButtonImageGradient&quot; TargetType=&quot;Button&quot;&gt;
		&lt;Setter Property=&quot;Template&quot;&gt;
			&lt;Setter.Value&gt;
				&lt;ControlTemplate TargetType=&quot;Button&quot;&gt;
					&lt;Canvas&gt;
						&lt;VisualStateManager.VisualStateGroups&gt;
							&lt;VisualStateGroup x:Name=&quot;FocusStates&quot;&gt;
								&lt;VisualState x:Name=&quot;Focused&quot;/&gt;
								&lt;VisualState x:Name=&quot;Unfocused&quot;/&gt;
							&lt;/VisualStateGroup&gt;
							&lt;VisualStateGroup x:Name=&quot;CommonStates&quot;&gt;
								&lt;VisualStateGroup.Transitions&gt;
									&lt;VisualTransition GeneratedDuration=&quot;00:00:00.3000000&quot;&gt;
										&lt;VisualTransition.GeneratedEasingFunction&gt;
											&lt;CubicEase EasingMode=&quot;EaseIn&quot;/&gt;
										&lt;/VisualTransition.GeneratedEasingFunction&gt;
									&lt;/VisualTransition&gt;
								&lt;/VisualStateGroup.Transitions&gt;
								&lt;VisualState x:Name=&quot;Normal&quot;&gt;
									&lt;Storyboard&gt;
										&lt;ColorAnimationUsingKeyFrames BeginTime=&quot;00:00:00&quot; Duration=&quot;00:00:00.0010000&quot; Storyboard.TargetName=&quot;BorderOutline&quot; Storyboard.TargetProperty=&quot;(Shape.Stroke).(SolidColorBrush.Color)&quot;&gt;
											&lt;EasingColorKeyFrame KeyTime=&quot;00:00:00&quot; Value=&quot;#7E575757&quot;/&gt;
										&lt;/ColorAnimationUsingKeyFrames&gt;
									&lt;/Storyboard&gt;
								&lt;/VisualState&gt;
								&lt;VisualState x:Name=&quot;MouseOver&quot;&gt;
									&lt;Storyboard&gt;
										&lt;ColorAnimationUsingKeyFrames BeginTime=&quot;00:00:00&quot; Duration=&quot;00:00:00.0010000&quot; Storyboard.TargetName=&quot;BorderOutline&quot; Storyboard.TargetProperty=&quot;(Shape.Stroke).(SolidColorBrush.Color)&quot;&gt;
											&lt;EasingColorKeyFrame KeyTime=&quot;00:00:00&quot; Value=&quot;White&quot;/&gt;
										&lt;/ColorAnimationUsingKeyFrames&gt;
										&lt;DoubleAnimationUsingKeyFrames BeginTime=&quot;00:00:00&quot; Duration=&quot;00:00:00.0010000&quot; Storyboard.TargetName=&quot;ButtonGradient&quot; Storyboard.TargetProperty=&quot;(UIElement.Opacity)&quot;&gt;
											&lt;EasingDoubleKeyFrame KeyTime=&quot;00:00:00&quot; Value=&quot;0&quot;/&gt;
										&lt;/DoubleAnimationUsingKeyFrames&gt;
									&lt;/Storyboard&gt;
								&lt;/VisualState&gt;
								&lt;VisualState x:Name=&quot;Pressed&quot;/&gt;
								&lt;VisualState x:Name=&quot;Disabled&quot;/&gt;
							&lt;/VisualStateGroup&gt;
						&lt;/VisualStateManager.VisualStateGroups&gt;
						&lt;Image Height=&quot;100&quot; Source=&quot;Image1.png&quot; Stretch=&quot;Fill&quot;/&gt;
						&lt;Rectangle x:Name=&quot;ButtonGradient&quot; Height=&quot;100&quot; Width=&quot;200&quot;&gt;
							&lt;Rectangle.Fill&gt;
								&lt;RadialGradientBrush RadiusX=&quot;0.657&quot; RadiusY=&quot;0.617&quot;&gt;
									&lt;GradientStop Offset=&quot;0&quot;/&gt;
									&lt;GradientStop Color=&quot;#C1000000&quot; Offset=&quot;1&quot;/&gt;
								&lt;/RadialGradientBrush&gt;
							&lt;/Rectangle.Fill&gt;
						&lt;/Rectangle&gt;
						&lt;Rectangle x:Name=&quot;BorderOutline&quot; Fill=&quot;{x:Null}&quot; Stroke=&quot;#7E808080&quot; Height=&quot;101&quot; Width=&quot;200&quot;/&gt;
					&lt;/Canvas&gt;
				&lt;/ControlTemplate&gt;
			&lt;/Setter.Value&gt;
		&lt;/Setter&gt;
	&lt;/Style&gt;
      &lt;/ResourceDictionary&gt;
      </pre>
<p>
    </br></td>
</tr>
<p>  <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/creating-custom-silverlight-buttons-with-images-gradients-and-transitions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Expression Blend Tip #2 in Rendering Effects</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-2-in-rendering-effects/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-2-in-rendering-effects/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 00:48:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[artboard]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[zoom]]></category>
		<category><![CDATA[zoom threshold]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1373</guid>
		<description><![CDATA[In a previous tip I showed how Expression Blend does not render effects if you are zoomed in above 400%. More times than not I am zoomed in well above 400% when I am designing UI components. I found out how to change the zoom setting to 800% and render the effects properly and allow [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-in-rendering-effects/">previous tip</a> I showed how Expression Blend does not render effects if you are zoomed in above 400%. More times than not I am zoomed in well above 400% when I am designing UI components. <span id="more-1373"></span>I found out how to change the zoom setting to 800% and render the effects properly and allow me to design how I am accustomed to.</p>
<p>To change the percentage that effects will be rendered<br />
1-  Go to Tools/Options<br />
2- Select &#8220;Artboard&#8221; from the list<br />
3- Change the &#8220;Zoom threshold&#8221; from 400% to 800%</p>
<p><font face="Georgia" color="#000000" size="4">Effects now render even when zoomed in at 800%</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/effect.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/effect.jpg" alt="effect" title="effect" width="640" height="344" class="alignleft size-full wp-image-1370" /></a></p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/options.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/options.jpg" alt="options" title="options" width="638" height="380" class="alignleft size-full wp-image-1371" /></a></p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/zoom.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/zoom.jpg" alt="zoom" title="zoom" width="520" height="520" class="alignleft size-full wp-image-1372" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-2-in-rendering-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gradient capabilities in Silverlight fonts</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/gradient-capabilities-in-silverlight-fonts/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/gradient-capabilities-in-silverlight-fonts/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 02:52:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[artboard]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1336</guid>
		<description><![CDATA[In the following tutorial I will show how extensive the font capabilities in Silverlight are. Being able to display beautiful fonts within xaml allows the ability to programmatically alter a designed font with gradients and drop shadows applied. 
1- place text on artboard
2- select the gradient tab on the properties panel and apply any style [...]]]></description>
			<content:encoded><![CDATA[<p>In the following tutorial I will show how extensive the font capabilities in Silverlight are. Being able to display beautiful fonts within xaml allows the ability to programmatically alter a designed font with gradients and drop shadows applied. <span id="more-1336"></span></p>
<p>1- place text on artboard<br />
2- select the gradient tab on the properties panel and apply any style gradient </p>
<p><font face="Georgia" color="#000000" size="4">Gradient and dropshadow effect applied to fonts</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/fontgradient2.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/fontgradient2.jpg" alt="fontgradient2" title="fontgradient2" width="640" height="105" class="alignleft size-full wp-image-1341" /></a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Silverlight </font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="333"><param name="source" value="http://www.paulyanez.com/interactive/blog/FontGradient/TextGradient.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
	x:Class=&quot;TextGradient.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;480&quot; mc:Ignorable=&quot;d&quot;&gt;
	&lt;Grid x:Name=&quot;LayoutRoot&quot; Margin=&quot;0,0,0,147&quot; Background=&quot;White&quot;&gt;
		&lt;Rectangle Margin=&quot;10&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;Black&quot; Offset=&quot;0&quot;/&gt;
					&lt;GradientStop Color=&quot;#FF555555&quot; Offset=&quot;1&quot;/&gt;
				&lt;/LinearGradientBrush&gt;
			&lt;/Rectangle.Fill&gt;
		&lt;/Rectangle&gt;
		&lt;TextBlock Margin=&quot;233,105,11,0&quot; FontSize=&quot;40&quot; TextWrapping=&quot;Wrap&quot; Text=&quot;Silverlight 4 is Here!&quot; Height=&quot;53&quot; VerticalAlignment=&quot;Top&quot; FontFamily=&quot;Fonts/Fonts.zip#Myriad Pro&quot;&gt;&lt;TextBlock.Foreground&gt;
				&lt;LinearGradientBrush EndPoint=&quot;0.5,1&quot; StartPoint=&quot;0.5,0&quot;&gt;
					&lt;GradientStop Color=&quot;#FFE0E0E0&quot; Offset=&quot;0&quot;/&gt;
					&lt;GradientStop Color=&quot;#FF585858&quot; Offset=&quot;1&quot;/&gt;
				&lt;/LinearGradientBrush&gt;
			&lt;/TextBlock.Foreground&gt;
			&lt;TextBlock.Effect&gt;
				&lt;DropShadowEffect BlurRadius=&quot;2&quot; Color=&quot;#FF161616&quot; Opacity=&quot;0.78&quot; ShadowDepth=&quot;3&quot;/&gt;
			&lt;/TextBlock.Effect&gt;
		&lt;/TextBlock&gt;
		&lt;TextBlock Margin=&quot;233,162,34,92&quot; FontSize=&quot;21.333&quot; Foreground=&quot;White&quot; TextWrapping=&quot;Wrap&quot; FontFamily=&quot;Fonts/Fonts.zip#Myriad Pro&quot; Text=&quot;Get started designing and developing with  Silverlight 4 today&quot;/&gt;
		&lt;Image HorizontalAlignment=&quot;Left&quot; Margin=&quot;31,77,0,85&quot; Width=&quot;157&quot; Source=&quot;silverlight.png&quot;/&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Related links</font></p>
<p><a href="http://paulyanez.com/interactive/index.php/2010/01/reversing-gradient-stops-in-silverlight/">Reversing Gradient stops in Silverlight</a><br />
<a href="http://paulyanez.com/interactive/index.php/2009/12/embedding-fonts-in-silverlight/">Embedding fonts in Silverlight</a></p>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/gradient-capabilities-in-silverlight-fonts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Expression Blend Tip in Rendering Effects</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-in-rendering-effects/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-in-rendering-effects/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 09:55:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[expression blend]]></category>
		<category><![CDATA[rendering]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1317</guid>
		<description><![CDATA[This is a tip for developers using Expression Blend creating effects. Effects do not render if you are zoomed in above 400%. More times than not I am zoomed in well above 400% when I am designing UI components. So I was confused as to why I couldn&#8217;t see the rollover effect that I was [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tip for developers using Expression Blend creating effects. Effects do not render if you are zoomed in above 400%. More times than not I am zoomed in well above 400% when I am designing UI components. <span id="more-1317"></span>So I was confused as to why I couldn&#8217;t see the rollover effect that I was applying to my  component. </p>
<p><font face="Georgia" color="#000000" size="4">Zoomed in at 800%, effects are not visible</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/800percent.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/800percent.jpg" alt="800percent" title="800percent" width="463" height="432" class="aligncenter size-full wp-image-1318" /></a></p>
<p><font face="Georgia" color="#000000" size="4">Zoomed in at 400%, effects render</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/04/400percent.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/04/400percent.jpg" alt="400percent" title="400percent" width="237" height="226" class="aligncenter size-full wp-image-1319" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/expression-blend-tip-in-rendering-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fluid layout and Fullscreen in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-and-fullscreen-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-and-fullscreen-in-silverlight/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 03:00:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fluid layout]]></category>
		<category><![CDATA[fullscreen]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1305</guid>
		<description><![CDATA[In this tutorial we will have a Silverlight application take up the entire webpage and have the capablity to go fullscreen. This will allow you to create Silverlight applications that take up 100% of the width and height of html pages.
1- Place a rectangle on the stage
2- Set the margins to Margin=&#8221;8,8,8,42&#8243; which will place [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will have a Silverlight application take up the entire webpage and have the capablity to go fullscreen. This will allow you to create Silverlight applications that take up 100% of the width and height of html pages.<span id="more-1305"></span></p>
<p>1- Place a rectangle on the stage<br />
2- Set the margins to Margin=&#8221;8,8,8,42&#8243; which will place the rectangle at 8 from the left, right and top and 42 from the bottom.<br />
3- Place a button on the stage and set its width to 120<br />
4- With the button selected select the &#8220;events&#8221; panel<br />
5- Enter &#8220;toggleFullscreen&#8221; on the Click event<br />
6- Add code to handle the toggling of the fullscreen window status</p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Click the button to go Fullscreen and have a fluid layout</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"><param name="source" value="http://www.paulyanez.com/interactive/blog/Fullscreen/Fullscreen.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; mc:Ignorable=&quot;d&quot;
	x:Class=&quot;Fullscreen.MainPage&quot; d:DesignWidth=&quot;710&quot; d:DesignHeight=&quot;420&quot;&gt;

	&lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;White&quot;&gt;
		&lt;Rectangle Margin=&quot;8,8,8,42&quot; Stroke=&quot;Black&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;Black&quot; Offset=&quot;1&quot;/&gt;
					&lt;GradientStop Color=&quot;#FF5D5F60&quot;/&gt;
				&lt;/LinearGradientBrush&gt;
			&lt;/Rectangle.Fill&gt;
		&lt;/Rectangle&gt;
		&lt;Button Content=&quot;Button&quot; Height=&quot;30&quot; Margin=&quot;252,0,232,8&quot; VerticalAlignment=&quot;Bottom&quot; Click=&quot;toggleFullscreen&quot; Width=&quot;120&quot; HorizontalAlignment=&quot;Center&quot;/&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Fullscreen
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			InitializeComponent();
		}

		private void toggleFullscreen(object sender, System.Windows.RoutedEventArgs e)
		{
			if (Application.Current.Host.Content.IsFullScreen)
			{
				Application.Current.Host.Content.IsFullScreen = false;
			}
			else
			{
				Application.Current.Host.Content.IsFullScreen = true;
			}
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/04/fluid-layout-and-fullscreen-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building a Windows Phone 7 Twitter Application using Silverlight in Blend 4 &#8211; Part2</title>
		<link>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4-part2/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4-part2/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 10:15:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[silverlight 4]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[windows phone 7]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1278</guid>
		<description><![CDATA[This is part 2 of &#8220;Building a Windows Phone 7 Twitter Application using Silverlight in Blend 4&#8243;. In this tutorial we will build a Twitter user profile screen. You will be able to display the user image, follower count, friend count, status post count, user description and load the user page background image.
View all parts [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 2 of &#8220;Building a Windows Phone 7 Twitter Application using Silverlight in Blend 4&#8243;. In this tutorial we will build a Twitter user profile screen. You will be able to display the user image, follower count, friend count, status post count, user description and load the user page background image.<span id="more-1278"></span></p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4/">Search by Twitter User status</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4-part2/">Display Twitter user details</a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Screenshot of user profile screen</font></p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/03/userscreen.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/03/userscreen.jpg" alt="userscreen" title="userscreen" width="377" height="750" class="aligncenter size-full wp-image-1280" /></a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;phoneNavigation:PhoneApplicationPage
    x:Class=&quot;WindowsPhoneApplication2.MainPage&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    xmlns:phoneNavigation=&quot;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation&quot;
    xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
    xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
    mc:Ignorable=&quot;d&quot; d:DesignWidth=&quot;480&quot; d:DesignHeight=&quot;800&quot;
    FontFamily=&quot;{StaticResource PhoneFontFamilyNormal}&quot;
    FontSize=&quot;{StaticResource PhoneFontSizeNormal}&quot;
    Foreground=&quot;{StaticResource PhoneForegroundBrush}&quot;&gt;

    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;#FF1D88EE&quot;&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
            &lt;RowDefinition Height=&quot;*&quot;/&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;Grid x:Name=&quot;TitleGrid&quot; Grid.Row=&quot;0&quot;/&gt;
        &lt;Grid x:Name=&quot;ContentGrid&quot; Grid.Row=&quot;1&quot;&gt;
        	&lt;Image x:Name=&quot;gradient&quot; Margin=&quot;0,0,2,0&quot; Source=&quot;Image1.png&quot; Stretch=&quot;Fill&quot; Height=&quot;800&quot;/&gt;
        	&lt;Button x:Name=&quot;search_Button&quot; Content=&quot;Search&quot; HorizontalAlignment=&quot;Right&quot; Height=&quot;79&quot; Margin=&quot;0,190,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;198&quot; Click=&quot;lookup_Click&quot; Background=&quot;#FF529DE9&quot;/&gt;
        	&lt;Image x:Name=&quot;imgBackground&quot; Margin=&quot;8,273,8,8&quot; Stretch=&quot;UniformToFill&quot;/&gt;
        	&lt;TextBox x:Name=&quot;username&quot; Height=&quot;79&quot; Margin=&quot;-4,190,184,0&quot; TextWrapping=&quot;Wrap&quot; VerticalAlignment=&quot;Top&quot; Background=&quot;#FF124F8B&quot; BorderBrush=&quot;White&quot; Width=&quot;300&quot; FontSize=&quot;24&quot; SelectionForeground=&quot;#FF529DE9&quot; Foreground=&quot;#FF529DE9&quot; SelectionBackground=&quot;#FF9B3030&quot; CaretBrush=&quot;#FF0D325B&quot;/&gt;
        					&lt;Image x:Name=&quot;img&quot; Width=&quot;100&quot; Margin=&quot;24,312,0,388&quot; HorizontalAlignment=&quot;Left&quot;/&gt;
        						&lt;TextBlock x:Name=&quot;twittername&quot; Margin=&quot;163,303,17,0&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;40&quot; Height=&quot;83&quot; VerticalAlignment=&quot;Top&quot; Foreground=&quot;Black&quot; /&gt;

        	&lt;Image x:Name=&quot;header&quot; Height=&quot;196&quot; Source=&quot;Image3.png&quot; Stretch=&quot;Fill&quot; VerticalAlignment=&quot;Top&quot; Margin=&quot;-2,0,0,0&quot;/&gt;
        	&lt;TextBlock x:Name=&quot;followers&quot; Margin=&quot;170,0,21,323&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock Margin=&quot;23,0,0,323&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;150&quot; Text=&quot;Followers:&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock x:Name=&quot;friends&quot; Margin=&quot;170,0,21,272&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock Margin=&quot;23,0,0,272&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;150&quot; Text=&quot;Friends:&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock x:Name=&quot;statuses&quot; Margin=&quot;170,0,21,214&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock Margin=&quot;23,0,0,214&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;150&quot; Text=&quot;Statuses:&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock x:Name=&quot;description&quot; Margin=&quot;170,0,21,31&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; Height=&quot;166&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        	&lt;TextBlock Margin=&quot;23,0,0,156&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;26.667&quot; HorizontalAlignment=&quot;Left&quot; Width=&quot;150&quot; Text=&quot;Description:&quot; Height=&quot;41&quot; VerticalAlignment=&quot;Bottom&quot; Foreground=&quot;Black&quot; /&gt;
        &lt;/Grid&gt;
    &lt;/Grid&gt;
&lt;/phoneNavigation:PhoneApplicationPage&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Xml.Linq;
using System.Windows.Media.Imaging;

namespace WindowsPhoneApplication2
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

		    private void lookup_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	WebClient twitter = new WebClient();
			twitter.DownloadStringCompleted += new DownloadStringCompletedEventHandler(twitter_DownloadStringCompleted);
			twitter.DownloadStringAsync(new Uri(&quot;http://twitter.com/users/&quot; + username.Text +&quot;.xml&quot;));
		}

		void twitter_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
		{
			if(e.Error != null)
				return;

			XElement xmlTweets = XElement.Parse(e.Result);
			img.Source = new BitmapImage(new Uri(xmlTweets.Element(&quot;profile_image_url&quot;).Value, UriKind.Absolute));
			twittername.Text = xmlTweets.Element(&quot;name&quot;).Value;
			followers.Text = xmlTweets.Element(&quot;followers_count&quot;).Value;
			friends.Text = xmlTweets.Element(&quot;friends_count&quot;).Value;
			statuses.Text = xmlTweets.Element(&quot;statuses_count&quot;).Value;
			description.Text = xmlTweets.Element(&quot;description&quot;).Value;
			imgBackground.Source = new BitmapImage(new Uri(xmlTweets.Element(&quot;profile_background_image_url&quot;).Value, UriKind.Absolute));
		}
    }
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Phone Application Tip in Blend 4</title>
		<link>http://paulyanez.com/interactive/index.php/2010/03/windows-phone-application-tip-in-blend-4/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/03/windows-phone-application-tip-in-blend-4/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 09:41:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blend 4]]></category>
		<category><![CDATA[SupportedOrientations]]></category>
		<category><![CDATA[windows phone 7]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1261</guid>
		<description><![CDATA[This is a tip for developers using Blend 4 to create Windows Phone Applications. By default it seems that the ability to rotate the emulator and it contents is not set. A bit of code is necessary to have the contents of the application rotate properly with the emulator.
Note: In Visual Studio the code is [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tip for developers using Blend 4 to create Windows Phone Applications. By default it seems that the ability to rotate the emulator and it contents is not set. A bit of code is necessary to have the contents of the application rotate properly with the emulator.<span id="more-1261"></span></p>
<p>Note: In Visual Studio the code is included, this is a Blend 4 specific issue.</p>
<p><font face="Georgia" color="#000000" size="4">Default behavior</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/03/phone-wrong.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/03/phone-wrong.jpg" alt="phone-wrong" title="phone-wrong" width="640" class="aligncenter size-full wp-image-1267" /></a></p>
<p><font face="Georgia" color="#000000" size="4">After applying code</font><br />
<a href="http://paulyanez.com/interactive/wp-content/uploads/2010/03/phone-good.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/03/phone-good.jpg" alt="phone-good" title="phone-good" width="640" class="aligncenter size-full wp-image-1268" /></a><br />
<font face="Georgia" color="#000000" size="4">C# code &#8211; Add line 21 SupportedOrientations = </font></p>
<pre class="brush: xml;">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace OrientationTest
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
			SupportedOrientations = SupportedPageOrientation.Portrait | SupportedPageOrientation.Landscape;
        }
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/03/windows-phone-application-tip-in-blend-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Windows Phone 7 Twitter Application using Silverlight in Blend 4</title>
		<link>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 02:55:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[silverlight 4]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1189</guid>
		<description><![CDATA[First I would like to say that the code is from Scott Gu&#8217;s article Building a Windows Phone 7 Twitter Application using Silverlight. I am very excited that Silverlight will soon be capable of working on Windows Phones. Designing for the phone brings numerous design and user experience problems not associated with the average 20-30 [...]]]></description>
			<content:encoded><![CDATA[<p>First I would like to say that the code is from Scott Gu&#8217;s article <a href="http://weblogs.asp.net/scottgu/archive/2010/03/18/building-a-windows-phone-7-twitter-application-using-silverlight.aspx">Building a Windows Phone 7 Twitter Application using Silverlight</a>. I am very excited that Silverlight will soon be capable of working on Windows Phones. <span id="more-1189"></span>Designing for the phone brings numerous design and user experience problems not associated with the average 20-30 inch computer monitors. About 6 months ago I began tackling those problems in my previous Blend tutorials for <a href="Exploring the Canvas control in Microsoft Expression Blend 3">layout</a>, <a href="http://paulyanez.com/interactive/index.php/2009/10/introduction-to-animation-in-microsoft-expression-blend-3/">animation </a>and <a href="Creating a Silverlight video player in Microsoft Expression Blend 3">video</a> within a iPhone interface.</p>
<p><font face="Georgia" color="#000000" size="4">Goal, I wanted to see if I could extend Scott&#8217;s app to do the following:</font></p>
<p>Add a custom design<br />
Add functionality &#8211; currently you can only look up a user&#8217;s timeline. The goal would be to be able to post, search etc to Twitter, basically a full fledged Twitter application. This tutorial tackles the design.<br />
Add a main screen to access the different screens with animation for the screen changes.</p>
<p><font face="Georgia" color="#000000" size="4">Challenges</font><br />
Gradients in Blend 4 seem to not work well as of yet. A major part of my design was to use a gradient as a background but using a rectangle with a gradient produced banding. As a last resort I imported a gradient jpg and it produced slightly better results.</p>
<p>The 100% UI size in Blend is not the same as the emulator. If you want to design to the emulator the dimensions are 335&#215;558.<br />
If you want the UI in Blend to match the emulator set the layout to 70%. </p>
<p>To remove the default color of the list box Property=&#8221;Background&#8221; Value=&#8221;Transparent&#8221;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4/">Search by Twitter User status</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4-part2/">Display Twitter user details</a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Screenshots of original app and new design applied</font></p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/03/twitter-phone.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/03/twitter-phone.jpg" alt="twitter-phone" title="twitter-phone" width="600" height="600" class="aligncenter size-full wp-image-1201" /></a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;phoneNavigation:PhoneApplicationPage
    x:Class=&quot;WindowsPhoneApplication2.MainPage&quot;
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    xmlns:phoneNavigation=&quot;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation&quot;
    xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
    xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
    mc:Ignorable=&quot;d&quot; d:DesignWidth=&quot;480&quot; d:DesignHeight=&quot;800&quot;
    FontFamily=&quot;{StaticResource PhoneFontFamilyNormal}&quot;
    FontSize=&quot;{StaticResource PhoneFontSizeNormal}&quot;
    Foreground=&quot;{StaticResource PhoneForegroundBrush}&quot;&gt;

    &lt;Grid x:Name=&quot;LayoutRoot&quot; Background=&quot;#FF1D88EE&quot;&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
            &lt;RowDefinition Height=&quot;*&quot;/&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;Grid x:Name=&quot;TitleGrid&quot; Grid.Row=&quot;0&quot;/&gt;
        &lt;Grid x:Name=&quot;ContentGrid&quot; Grid.Row=&quot;1&quot;&gt;
        	&lt;Image x:Name=&quot;gradient&quot; Margin=&quot;0,0,2,0&quot; Source=&quot;Image1.png&quot; Stretch=&quot;Fill&quot; Height=&quot;800&quot;/&gt;
        	&lt;Button x:Name=&quot;search_Button&quot; Content=&quot;Lookup&quot; HorizontalAlignment=&quot;Right&quot; Height=&quot;79&quot; Margin=&quot;0,190,0,0&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;198&quot; Click=&quot;lookup_Click&quot; Background=&quot;#FF529DE9&quot;/&gt;
        	&lt;TextBox x:Name=&quot;username&quot; Height=&quot;79&quot; Margin=&quot;-4,190,184,0&quot; TextWrapping=&quot;Wrap&quot; VerticalAlignment=&quot;Top&quot; Background=&quot;#FF124F8B&quot; BorderBrush=&quot;White&quot; Width=&quot;300&quot; FontSize=&quot;24&quot; SelectionForeground=&quot;#FF529DE9&quot; Text=&quot;paulyanez&quot; Foreground=&quot;#FF529DE9&quot; SelectionBackground=&quot;#FF9B3030&quot; CaretBrush=&quot;#FF0D325B&quot;/&gt;
        	&lt;ListBox Height=&quot;516&quot; Margin=&quot;2,284,2,0&quot; x:Name=&quot;listBox1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;476&quot; &gt;
        		&lt;ListBox.ItemContainerStyle&gt;
        			&lt;Style TargetType=&quot;ListBoxItem&quot;&gt;
        				&lt;Setter Property=&quot;Background&quot; Value=&quot;Transparent&quot;/&gt;
        			&lt;/Style&gt;
        		&lt;/ListBox.ItemContainerStyle&gt;
        		&lt;ListBox.ItemTemplate&gt;
        			&lt;DataTemplate&gt;
        				&lt;StackPanel Orientation=&quot;Horizontal&quot; Height=&quot;110&quot; Background=&quot;#33000000&quot; Margin=&quot;-10,-10,-10,-10&quot;&gt;
        					&lt;Image Source=&quot;{Binding ImageSource}&quot; Height=&quot;73&quot; Width=&quot;73&quot; VerticalAlignment=&quot;Top&quot; Margin=&quot;10,10,8,10&quot;/&gt;
        					&lt;StackPanel Width=&quot;370&quot;&gt;
        						&lt;TextBlock Text=&quot;{Binding Message}&quot; Margin=&quot;10&quot; TextWrapping=&quot;Wrap&quot; FontSize=&quot;18&quot; /&gt;
        					&lt;/StackPanel&gt;
        				&lt;/StackPanel&gt;
        			&lt;/DataTemplate&gt;
        		&lt;/ListBox.ItemTemplate&gt;
        	&lt;/ListBox&gt;
        	&lt;Image x:Name=&quot;header&quot; Height=&quot;196&quot; Source=&quot;Image3.png&quot; Stretch=&quot;Fill&quot; VerticalAlignment=&quot;Top&quot; Margin=&quot;-2,0,0,0&quot;/&gt;
        &lt;/Grid&gt;
    &lt;/Grid&gt;
&lt;/phoneNavigation:PhoneApplicationPage&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Xml.Linq;

namespace WindowsPhoneApplication2
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

		    private void lookup_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	WebClient twitter = new WebClient();
			twitter.DownloadStringCompleted += new DownloadStringCompletedEventHandler(twitter_DownloadStringCompleted);
        	twitter.DownloadStringAsync(new Uri(&quot;http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=&quot; + username.Text ));
		}

		void twitter_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
		{
			if(e.Error != null)
				return;

			XElement xmlTweets = XElement.Parse(e.Result);

			listBox1.ItemsSource = from tweet in xmlTweets.Descendants(&quot;status&quot;)
				select new TwitterItem
			{
				ImageSource = tweet.Element(&quot;user&quot;).Element(&quot;profile_image_url&quot;).Value,
				Message = tweet.Element(&quot;text&quot;).Value,
				UserName = tweet.Element(&quot;user&quot;).Element(&quot;screen_name&quot;).Value
			};
		}
    }
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/03/building-a-windows-phone-7-twitter-application-using-silverlight-in-blend-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reversing Gradient stops in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2010/01/reversing-gradient-stops-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2010/01/reversing-gradient-stops-in-silverlight/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:43:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[reverse gradient stop]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=1019</guid>
		<description><![CDATA[In this tutorial I will show how to reverse the gradient stops in Microsoft Blend. 
Complex gradients
A complex gradient is a gradient that has multiple gradient stops such as the image below which has 7.

Reverse Gradient stops button
You can perform a reversal of all your gradient stops by one simple click. In the image below [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I will show how to reverse the gradient stops in Microsoft Blend. <span id="more-1019"></span></p>
<p><font face="Georgia" color="#000000" size="4">Complex gradients</font><br />
A complex gradient is a gradient that has multiple gradient stops such as the image below which has 7.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/01/complex-gradient-silverlight.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/01/complex-gradient2-silverlight.jpg" alt="complex-gradient-silverlight" title="complex-gradient-silverlight" width="519" height="163" class="alignnone size-full wp-image-1022" /></a></p>
<p><font face="Georgia" color="#000000" size="4">Reverse Gradient stops button</font><br />
You can perform a reversal of all your gradient stops by one simple click. In the image below the arrow is pointing to the button in the properties panel to reverse the gradient stops.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reverse-gradient-stop-button-silverlight.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reverse-gradient-stop-button-silverlight.jpg" alt="reverse-gradient-stop-button-silverlight" title="reverse-gradient-stop-button-silverlight" width="262" height="141" class="alignnone size-full wp-image-1024" /></a></p>
<p><font face="Georgia" color="#000000" size="4">Perfect reversal</font><br />
As you can see the gradient stops have been reversed exactly, there is no need to guess.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reverse-gradient-stop-silverlight.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reverse-gradient-stop-silverlight.jpg" alt="reverse-gradient-stop-silverlight" title="reverse-gradient-stop-silverlight" width="260" height="69" class="alignnone size-full wp-image-1025" /></a></p>
<p><font face="Georgia" color="#000000" size="4">Reversed Gradient</font><br />
And in one simple click you can have a perfectly reversed gradient. </p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reversed-gradient-silverlight.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2010/01/reversed-gradient-silverlight.jpg" alt="reversed-gradient-silverlight" title="reversed-gradient-silverlight" width="517" height="167" class="alignnone size-full wp-image-1023" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2010/01/reversing-gradient-stops-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using RotationY to rotate Objects in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 05:34:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[planeprojection]]></category>
		<category><![CDATA[rotateY]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[sliderchanged]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=944</guid>
		<description><![CDATA[In this tutorial we will rotate an image left to right with a slider control. 
Steps
1- Place an image on the stage
2- on the image add a PlaneProjection, this can easily be done by editing the Projection / Rotation / Y in the properties panel
3- name the PlaneProjection to x:Name=&#8221;rotater&#8221;
4- add a slider to the [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will rotate an image left to right with a slider control. <span id="more-944"></span></p>
<p>Steps<br />
1- Place an image on the stage<br />
2- on the image add a PlaneProjection, this can easily be done by editing the Projection / Rotation / Y in the properties panel<br />
3- name the PlaneProjection to x:Name=&#8221;rotater&#8221;<br />
4- add a slider to the stage<br />
5- name the slider x:Name=&#8221;rotateYSlider&#8221;<br />
6- on the slider set ValueChanged=&#8221;changeRotateY&#8221;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/">Scaling Objects with a Slider control in Silverlight</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/">Using RotationX to rotate Objects in Silverlight</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/">Using RotationY to rotate Objects in Silverlight</a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Use the Rotate Y slider to rotate the image</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"><param name="source" value="http://www.paulyanez.com/interactive/blog/RotateY/rotatey.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;Image Margin=&quot;49,-14,54,96&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Source=&quot;hulu.jpg&quot; Stretch=&quot;Fill&quot; d:LayoutOverrides=&quot;Width&quot;&gt;
	&lt;Image.Projection&gt;
		&lt;PlaneProjection x:Name=&quot;rotater&quot; RotationX=&quot;1&quot; RotationY=&quot;1&quot;/&gt;
	&lt;/Image.Projection&gt;
&lt;/Image&gt;
&lt;Slider x:Name=&quot;rotateYSlider&quot; Height=&quot;26&quot; Margin=&quot;282,0,218,28&quot; VerticalAlignment=&quot;Bottom&quot;  Maximum=&quot;180&quot; ValueChanged=&quot;changeRotateY&quot; Style=&quot;{StaticResource SliderStyle1}&quot;/&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

private void changeRotateY(object sender, System.Windows.RoutedPropertyChangedEventArgs&lt;double&gt; e)
{
	rotater.RotationY = rotateYSlider.Value;
	rotater.RotationY = rotateYSlider.Value;
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedding fonts in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/embedding-fonts-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/embedding-fonts-in-silverlight/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 03:04:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[embedding fonts]]></category>
		<category><![CDATA[file size]]></category>
		<category><![CDATA[font family]]></category>
		<category><![CDATA[textblock]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=905</guid>
		<description><![CDATA[In this tutorial I will show how to embed a font in Silverlight and show the increase in file size that will occur when doing so. 
Placing a Textblock component on the stage and using a built-in Silverlight font such as &#8220;Arial&#8221; the xap file created will be 4 kb. However, if try to use [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I will show how to embed a font in Silverlight and show the increase in file size that will occur when doing so. <span id="more-905"></span></p>
<p>Placing a Textblock component on the stage and using a built-in Silverlight font such as &#8220;Arial&#8221; the xap file created will be 4 kb. However, if try to use a font such as &#8220;Myriad Pro&#8221; when you view the results panel you will see a message &#8220;The font, Myriad Pro, isn&#8217;t a built-in Silverlight font. You must embed this font for it to display in your Silverlight Application.&#8221;</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-embedding-fonts.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-embedding-fonts.jpg" alt="silverlight-embedding-fonts" title="silverlight-embedding-fonts" width="459" height="137" class="alignnone size-full wp-image-913" /></a></p>
<p>Embedding a font is as simple as selecting the &#8220;Embed&#8221; checkbox in the text properties panel.<br />
One thing to note when embedding the font &#8220;Myriad Pro&#8221; the xap file size becomes 831 kb.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-embedding-fonts2.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-embedding-fonts2.jpg" alt="silverlight-embedding-fonts2" title="silverlight-embedding-fonts2" width="345" height="165" class="alignnone size-full wp-image-914" /></a></p>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;TextBlock FontFamily=&quot;Fonts/Fonts.zip#Myriad Pro&quot; FontSize=&quot;16&quot; Foreground=&quot;White&quot; Text=&quot;TextBlock&quot; TextAlignment=&quot;Center&quot; TextWrapping=&quot;Wrap&quot;/&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/embedding-fonts-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using RotationX to rotate Objects in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:02:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[planeprojection]]></category>
		<category><![CDATA[rotateX]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[valuechanged]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=889</guid>
		<description><![CDATA[In this tutorial we will rotate an image with a slider control. This is the 2nd tutorial of image transformations, the first tutorial &#8216;Scaling Objects with a Slider control in Silverlight&#8217;
Steps
1- Place an image on the stage
2- on the image add a PlaneProjection, this can easily be done by editing the Projection / Rotation / [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will rotate an image with a slider control. This is the 2nd tutorial of image transformations, the first tutorial <a href="http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/">&#8216;Scaling Objects with a Slider control in Silverlight&#8217;</a><span id="more-889"></span></p>
<p>Steps<br />
1- Place an image on the stage<br />
2- on the image add a PlaneProjection, this can easily be done by editing the Projection / Rotation / X in the properties panel<br />
3- name RotationX to x:Name=&#8221;rotateX&#8221;<br />
4- add a slider to the stage<br />
5- name the slider x:Name=&#8221;rotateXSlider&#8221;<br />
6- on the slider set ValueChanged=&#8221;changeRotateX&#8221;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/">Scaling Objects with a Slider control in Silverlight</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/">Using RotationX to rotate Objects in Silverlight</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/">Using RotationY to rotate Objects in Silverlight</a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Use the Rotate X slider to rotate the image</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"><param name="source" value="http://www.paulyanez.com/interactive/blog/RotateX/rotatex.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;Image Margin=&quot;49,-14,54,96&quot; RenderTransformOrigin=&quot;0.5,0.5&quot; Source=&quot;hulu.jpg&quot; Stretch=&quot;Fill&quot; d:LayoutOverrides=&quot;Width&quot;&gt;
	&lt;Image.Projection&gt;
		&lt;PlaneProjection x:Name=&quot;rotateX&quot; RotationX=&quot;1&quot;/&gt;
	&lt;/Image.Projection&gt;
&lt;/Image&gt;
&lt;Slider x:Name=&quot;rotateXSlider&quot; Height=&quot;26&quot; Margin=&quot;282,0,218,32&quot; VerticalAlignment=&quot;Bottom&quot;  Maximum=&quot;180&quot; ValueChanged=&quot;changeRotateX&quot; Style=&quot;{StaticResource SliderStyle1}&quot;/&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

private void changeRotateX(object sender, System.Windows.RoutedPropertyChangedEventArgs&lt;double&gt; e)
{
	rotateX.RotationX = rotateXSlider.Value;
	rotateX.RotationX = rotateXSlider.Value;
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Silverlight Tip &#8211; Creating rounded corners in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-creating-rounded-corners-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-creating-rounded-corners-in-silverlight/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:37:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[horizontaltracklargechangedecreaserepeatbutton]]></category>
		<category><![CDATA[radiusX]]></category>
		<category><![CDATA[radiusY]]></category>
		<category><![CDATA[rectangle]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=868</guid>
		<description><![CDATA[In this tutorial I will show how to create a rounded corner on an object.  In a previous tutorial Scaling Objects with a Slider control in Silverlight, The design of the slider control I wanted had a rounded edge. Programmatically you can set the RadiusX and RadiusY properties but I wanted to do this [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I will show how to create a rounded corner on an object. <span id="more-868"></span> In a previous tutorial <a href="http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/">Scaling Objects with a Slider control in Silverlight</a>, The design of the slider control I wanted had a rounded edge. Programmatically you can set the RadiusX and RadiusY properties but I wanted to do this within Microsoft Blend design mode. </p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-scale-slider.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-scale-slider.jpg" alt="silverlight-scale-slider" title="silverlight-scale-slider" width="226" height="47" class="alignnone size-full wp-image-869" /></a></p>
<p>The object I wanted to edit was the &#8216;horizontaltracklargechangedecreaserepeatbutton&#8217; layer in the slider control. Once I was within the object I created a &#8216;Rectangle&#8217;, selected it and handles in the top left corner appeared. Simply drag in and out on the handles and all corners of the objects will go from square to rounded. FYI, the RadiusX and RadiusY of this control is 2.75.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-horizontaltracklargechangedecreaserepeatbutton1.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-horizontaltracklargechangedecreaserepeatbutton1.jpg" alt="silverlight-horizontaltracklargechangedecreaserepeatbutton" title="silverlight-horizontaltracklargechangedecreaserepeatbutton" width="281" height="202" class="alignnone size-full wp-image-870" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-creating-rounded-corners-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scaling Objects with a Slider control in Silverlight</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 01:03:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[scale]]></category>
		<category><![CDATA[scaletransform]]></category>
		<category><![CDATA[scalex]]></category>
		<category><![CDATA[scaley]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[transformgroup]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=848</guid>
		<description><![CDATA[In this tutorial we will scale an image with a slider control. 
Steps
1- Place an image on the stage
2- add a transform group to that image, this can easily be accomplished by editing the scale property
3- name ScaleX to x:Name=&#8221;scaleTransform&#8221;
4- add a slider to the stage
5- name the slider  x:Name=&#8221;scaleSlider&#8221;
6- on the slider set [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will scale an image with a slider control. <span id="more-848"></span></p>
<p>Steps<br />
1- Place an image on the stage<br />
2- add a transform group to that image, this can easily be accomplished by editing the scale property<br />
3- name ScaleX to x:Name=&#8221;scaleTransform&#8221;<br />
4- add a slider to the stage<br />
5- name the slider  x:Name=&#8221;scaleSlider&#8221;<br />
6- on the slider set ValueChanged=&#8221;changeScale&#8221;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/">Scaling Objects with a Slider control in Silverlight</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationx-to-rotate-objects-in-silverlight/">Using RotationX to rotate Objects in Silverlight</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/using-rotationy-to-rotate-objects-in-silverlight/">Using RotationY to rotate Objects in Silverlight</a></p>
<p></br><br />
<font face="Georgia" color="#000000" size="4">Use the slider to scale the image</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"><param name="source" value="http://www.paulyanez.com/interactive/blog/ScaleTransform/Scale.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p></br><br />
<font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
&lt;Rectangle Height=&quot;50&quot; Margin=&quot;288,176,288,0&quot; VerticalAlignment=&quot;Top&quot; d:LayoutOverrides=&quot;Height&quot; RenderTransformOrigin=&quot;0.5,0.5&quot;&gt;
	&lt;Rectangle.Fill&gt;
		&lt;ImageBrush ImageSource=&quot;hulumediaplayer.jpg&quot;/&gt;
	&lt;/Rectangle.Fill&gt;
	&lt;Rectangle.RenderTransform&gt;
		&lt;TransformGroup&gt;
			&lt;ScaleTransform ScaleX=&quot;7&quot; ScaleY=&quot;7&quot; x:Name=&quot;scaleTransform&quot;/&gt;
		&lt;/TransformGroup&gt;
	&lt;/Rectangle.RenderTransform&gt;
&lt;/Rectangle&gt;
&lt;Slider x:Name=&quot;scaleSlider&quot; Height=&quot;27&quot; Margin=&quot;278,0,222,36&quot; Style=&quot;{StaticResource SliderStyle1}&quot; VerticalAlignment=&quot;Bottom&quot; ValueChanged=&quot;changeScale&quot; Width=&quot;140&quot;/&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ScaleObject
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			InitializeComponent();
			scaleSlider.Value = 7;
		}

		private void changeScale(object sender, System.Windows.RoutedPropertyChangedEventArgs&lt;double&gt; e)
		{
			scaleTransform.ScaleX = scaleSlider.Value;
   			scaleTransform.ScaleY = scaleSlider.Value;
		}
	}
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/scaling-objects-with-a-slider-control-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Start Playing button for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 05:14:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[autoplay]]></category>
		<category><![CDATA[media element]]></category>
		<category><![CDATA[start button]]></category>
		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=803</guid>
		<description><![CDATA[In this tutorial we will create a start play button on launch of your Hulu inspired SilverLight video player. 
Steps
1- Set the media element&#8217;s AutoPlay=&#8221;False&#8221;
2- Place a button in the middle of the stage
3- Replace the graphics on normal and mouseover states
4- on click of start button set the buttons visibility to collapsed, set the [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will create a start play button on launch of your Hulu inspired SilverLight video player. <span id="more-803"></span></p>
<p>Steps<br />
1- Set the media element&#8217;s AutoPlay=&#8221;False&#8221;<br />
2- Place a button in the middle of the stage<br />
3- Replace the graphics on normal and mouseover states<br />
4- on click of start button set the buttons visibility to collapsed, set the media element to play</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/StartButton/HuluSilverLight-StartButton.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">
		&lt;Button x:Name=&quot;startButton&quot; Height=&quot;107.3&quot; Margin=&quot;261,81,261,83&quot; Style=&quot;{StaticResource ButtonStyle1}&quot; Content=&quot;Button&quot; Cursor=&quot;Hand&quot; Click=&quot;startPlaying&quot;/&gt;
		&lt;MediaElement x:Name=&quot;mp&quot; Source=&quot;http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv&quot; DownloadProgressChanged=&quot;downloadProgressHandler&quot; Margin=&quot;0,0,-1,-1&quot; IsMuted=&quot;{Binding IsChecked, ElementName=volumeControl, Mode=OneWay}&quot; Volume=&quot;{Binding Value, ElementName=vol, Mode=OneWay}&quot; AutoPlay=&quot;False&quot; /&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

	startButton.Visibility = Visibility.Collapsed;
	controlBar.Visibility = Visibility.Visible;
	mp.Play();
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Volume Slider for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 00:16:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[databind]]></category>
		<category><![CDATA[horizontalthumb]]></category>
		<category><![CDATA[media element]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[trackrectangle]]></category>
		<category><![CDATA[video player]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=769</guid>
		<description><![CDATA[In this tutorial we will edit a slider control and use it as our volume slider control. This volume slider will allow the user the ability to scrub the volume from 0-100%.
Steps
1- Place a slider control on the stage
2- Right click on the slider control and select &#8220;Edit Template/Edit a copy&#8221;
3- Replace the graphics for [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will edit a slider control and use it as our volume slider control. This volume slider will allow the user the ability to scrub the volume from 0-100%.<span id="more-769"></span></p>
<p>Steps<br />
1- Place a slider control on the stage<br />
2- Right click on the slider control and select &#8220;Edit Template/Edit a copy&#8221;<br />
3- Replace the graphics for &#8216;HorizontalThumb&#8217; and &#8216;TrackRectangle&#8217;<br />
4- Databind the Media Element control &#8216;volume&#8217; property to the volume slider<br />
5- Set the value property of the volume slider to 1</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/VolumeSlider/HuluSilverLight-VolumeSlider.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

		&lt;Slider x:Name=&quot;vol&quot; Height=&quot;19&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,0,14,5&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;74&quot; Maximum=&quot;1&quot; SmallChange=&quot;0.01&quot; Value=&quot;1&quot; Style=&quot;{StaticResource volumeSlider}&quot;/&gt;
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight Tip &#8211; Editing selections from the Objects and Timeline panel</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-editing-selections-from-the-objects-and-timeline-panel/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-editing-selections-from-the-objects-and-timeline-panel/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 02:13:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[custom component]]></category>
		<category><![CDATA[horizontalthumb]]></category>
		<category><![CDATA[objects and timeline]]></category>
		<category><![CDATA[silverlight tip]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=759</guid>
		<description><![CDATA[To me, it is the little things that make you more productive within a given environment that I constantly search for. Since I have only been working with Silverlight for less than 2 months there are cool things I find almost daily. I have not shared those little things since they are not full fledged [...]]]></description>
			<content:encoded><![CDATA[<p>To me, it is the little things that make you more productive within a given environment that I constantly search for. Since I have only been working with Silverlight for less than 2 months there are cool things I find almost daily. I have not shared those little things since they are not full fledged tutorials, but that I am changing that today. If it helped me than perphaps it can help someone else, and that is the main reason I started to blog. I was building a custom volume slider for my video player and I was having difficulty selecting the &#8216;HorizontalThumb&#8217; object from the Blend horizontal slider component and found a way to avoid wasting time.</p>
<p>When you are editing a Silverlight component within Blend to make your own custom component you will see multiple objects. Selecting the object you want to edit can become frustrating. Simply select the object you want to edit by selecting it from the Objects and Timeline layer and right click and do your editing.</p>
<p><a href="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-selection-objects-timeline.jpg"><img src="http://paulyanez.com/interactive/wp-content/uploads/2009/12/silverlight-selection-objects-timeline.jpg" alt="silverlight-selection-objects-timeline" title="silverlight-selection-objects-timeline" width="551" height="719" class="alignnone size-full wp-image-760" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/silverlight-tip-editing-selections-from-the-objects-and-timeline-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Transition Preview within Microsoft Blend</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/using-transition-preview-within-microsoft-blend/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/using-transition-preview-within-microsoft-blend/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 00:22:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[states]]></category>
		<category><![CDATA[transition preview]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=703</guid>
		<description><![CDATA[
In this video I demonstrate the Transition Preview within Microsoft Expression Blend. This will save lots of time when creating states and not having to run the project.   
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/bAWy9YMsafw&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/bAWy9YMsafw?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/></p>
<p>In this video I demonstrate the Transition Preview within Microsoft Expression Blend. This will save lots of time when creating states and not having to run the project.   </p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/using-transition-preview-within-microsoft-blend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building the Time Slider control for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:19:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dispatchertimer]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[media element]]></category>
		<category><![CDATA[naturalduration]]></category>
		<category><![CDATA[position.minutes]]></category>
		<category><![CDATA[position.seconds]]></category>
		<category><![CDATA[string.format]]></category>
		<category><![CDATA[textblock]]></category>
		<category><![CDATA[timespan]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=688</guid>
		<description><![CDATA[This is part 6 in our series of building a Hulu inspired video player. In this tutorial we will be building the slider time display control.
We will take the static design of  UI design
1- Replace a slider of type hSlider
2- Replace the design elements
View all parts of the tutorial
Part 1 &#8211; Building a Play-Pause [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 6 in our series of building a Hulu inspired video player. In this tutorial we will be building the slider time display control.<span id="more-688"></span></p>
<p>We will take the static design of  UI design</p>
<p>1- Replace a slider of type hSlider<br />
2- Replace the design elements</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/TimeDisplay/HuluSilverLight_TimeControl.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

		&lt;TextBlock x:Name=&quot;current&quot; Height=&quot;23&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,0,229,1&quot; VerticalAlignment=&quot;Bottom&quot; Width=&quot;59&quot; TextWrapping=&quot;Wrap&quot; Foreground=&quot;#FFFCFCFC&quot; FontSize=&quot;10.667&quot; TextAlignment=&quot;Right&quot;/&gt;
		&lt;TextBlock x:Name=&quot;total&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,0,158,0&quot; Width=&quot;61&quot; FontSize=&quot;10.667&quot; Foreground=&quot;#FFFCFCFC&quot; TextWrapping=&quot;Wrap&quot; Height=&quot;24&quot; VerticalAlignment=&quot;Bottom&quot;/&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HuluSilverLight
{
	public partial class hulu_player : UserControl
	{
		public double barSize;
		System.Windows.Threading.DispatcherTimer myDispatcherTimer = new System.Windows.Threading.DispatcherTimer();

		public hulu_player()
		{
			InitializeComponent();
			myDispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            myDispatcherTimer.Tick += new EventHandler(setTimeControl);
            myDispatcherTimer.Start();
		}

		private void setTimeControl(object o, EventArgs sender)
		{
			current.Text = String.Format(&quot;{0:00}:{1:00}:{2:00}&quot;, mp.Position.Hours, mp.Position.Minutes, mp.Position.Seconds);
		}

		private void downloadProgressHandler(object sender, System.Windows.RoutedEventArgs e)
		{

			total.Text = String.Format(&quot;{0:00}:{1:00}:{2:00}&quot;, mp.NaturalDuration.TimeSpan.Hours, mp.NaturalDuration.TimeSpan.Minutes, mp.NaturalDuration.TimeSpan.Seconds);
		}
	}
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Building a Volume Control for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 18:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[ischecked]]></category>
		<category><![CDATA[ismuted]]></category>
		<category><![CDATA[mute]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[toggle button]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=672</guid>
		<description><![CDATA[
This is Part 5 in a series of tutorials demonstrating how to build a Hulu inspired video player in Silverlight 3.
In this video we will show how to databind a media element&#8217;s isMuted property to a toggle button volume control&#8217;s isChecked property.   
View all parts of the tutorial
Part 1 &#8211; Building a Play-Pause [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/BLISWp3R7qA&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/BLISWp3R7qA?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This is Part 5 in a series of tutorials demonstrating how to build a Hulu inspired video player in Silverlight 3.<br />
In this video we will show how to databind a media element&#8217;s isMuted property to a toggle button volume control&#8217;s isChecked property.   <span id="more-672"></span></p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

		&lt;MediaElement x:Name=&quot;mp&quot; Source=&quot;http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv&quot; DownloadProgressChanged=&quot;downloadProgressHandler&quot; Margin=&quot;0,0,-1,-1&quot; AutoPlay=&quot;True&quot; IsMuted=&quot;{Binding IsChecked, ElementName=volumeControl, Mode=OneWay}&quot; /&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and Drop images from Filesystem to Silverlight 4 Applications</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/drag-and-drop-images-from-filesystem-to-silverlight-4-applications/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/drag-and-drop-images-from-filesystem-to-silverlight-4-applications/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 19:27:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[allowdrop]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[silverlight 4]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=615</guid>
		<description><![CDATA[
In this video I show how to drag and drop images from the filesystem into a Silverlight 4 application.
On an image component simply add a drop event and set AllowDrop=&#8221;True&#8221;
You will need to download the tools to build Silverlight 4 beta applications, make sure to download Microsoft Expression Blend 4.
XAML code


&#60;Image x:Name=&#34;img&#34; Height=&#34;640&#34; Width=&#34;426&#34; Source=&#34;Image2.png&#34; [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/32R5DZ6dyWA&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/32R5DZ6dyWA?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
In this video I show how to drag and drop images from the filesystem into a Silverlight 4 application.<br />
On an image component simply add a drop event and set AllowDrop=&#8221;True&#8221;<span id="more-615"></span><br />
You will need to download the tools to build <a href="http://silverlight.net/getstarted/silverlight-4-beta/">Silverlight 4 beta applications</a>, make sure to download Microsoft Expression Blend 4.</p>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;Image x:Name=&quot;img&quot; Height=&quot;640&quot; Width=&quot;426&quot; Source=&quot;Image2.png&quot; Stretch=&quot;Fill&quot; Drop=&quot;OnDropEvent&quot; AllowDrop=&quot;True&quot;/&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO;
using System.Windows.Media.Imaging;

namespace SilverlightApplication14
{
	public partial class IPhoneMain : UserControl
	{
		public IPhoneMain()
		{
			InitializeComponent();
		}

		private void OnDropEvent(object sender, DragEventArgs e)
		{
			FileInfo[] files = e.Data.GetData(DataFormats.FileDrop) as FileInfo[];

			foreach (FileInfo fileInfo in files)
			{
				FileStream fs = fileInfo.OpenRead();
				BitmapImage bi = new BitmapImage();
				bi.SetSource(fs);
				img.Source = bi;
				fs.Close();
			}
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/drag-and-drop-images-from-filesystem-to-silverlight-4-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Databinding controls in SilverLight 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/databinding-controls-in-silverlight-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/databinding-controls-in-silverlight-3/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 12:57:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[databinding]]></category>
		<category><![CDATA[progress bar]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=576</guid>
		<description><![CDATA[
In the following video I will show how to Databind a progressbar&#8217;s width to the position of a video. The Databinding feature in Microsoft Expression Blend 3 allows this interaction without the need to write one of code.
You can view my article on Databinding here
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/n8jEneFb21Y&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/n8jEneFb21Y?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>In the following video I will show how to Databind a progressbar&#8217;s width to the position of a video. The Databinding feature in Microsoft Expression Blend 3 allows this interaction without the need to write one of code.<span id="more-576"></span></p>
<p><a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">You can view my article on Databinding here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/databinding-controls-in-silverlight-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Download Progress Bar for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 18:16:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[DownloadProgress]]></category>
		<category><![CDATA[DownloadProgressChanged]]></category>
		<category><![CDATA[HorizontalAlignment]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[mediaelement]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=535</guid>
		<description><![CDATA[This is part 4 in our series of building a Hulu inspired video player. In this tutorial we will be building a download progress bar.
We will take the design of our download progress bar and set it&#8217;s width equal to the position of the video&#8217;s DownloadProgress property. To make this auto-update we will hook into [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 4 in our series of building a Hulu inspired video player. In this tutorial we will be building a download progress bar.<span id="more-535"></span></p>
<p>We will take the design of our download progress bar and set it&#8217;s width equal to the position of the video&#8217;s DownloadProgress property. To make this auto-update we will hook into the &#8216;DownloadProgressChanged&#8217; event.</p>
<p>1- Place a rectangle on the stage, on a layer below the progress bar<br />
2- Set the rectangle&#8217;s HorizontalAlignment to Left<br />
2- Set the rectangle&#8217;s color to white and its alpha to 20%<br />
3- On the DownloadProgressChanged event of the mediaElement we will execute code</p>
<p>The end result in code is: loadProgressBar.Width = mp.DownloadProgress * bar.ActualWidth;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/DownloadProgress/downloadProgress.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:local=&quot;clr-namespace:HuluSilverLight&quot;
	x:Class=&quot;HuluSilverLight.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;276&quot; mc:Ignorable=&quot;d&quot;&gt;
	&lt;Grid x:Name=&quot;LayoutRoot&quot; Margin=&quot;0,0,0,201&quot;&gt;
		&lt;MediaElement x:Name=&quot;mp&quot; Margin=&quot;0,-42,0,-240&quot; Source=&quot;http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv&quot; DownloadProgressChanged=&quot;downloadProgressHandler&quot;/&gt;
		&lt;local:hulu_player Height=&quot;32&quot; Margin=&quot;0,0,0,-199&quot; VerticalAlignment=&quot;Bottom&quot;/&gt;
                &lt;Rectangle x:Name=&quot;progressBar&quot; Fill=&quot;#3EFFFFFF&quot; Height=&quot;30&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;46,0,0,-198&quot; VerticalAlignment=&quot;Bottom&quot; RenderTransformOrigin=&quot;0,0.5&quot; Width=&quot;{Binding Position.TotalSeconds, ElementName=mp, Mode=OneWay}&quot;&gt;
			&lt;Rectangle.RenderTransform&gt;
				&lt;TransformGroup&gt;
					&lt;ScaleTransform ScaleX=&quot;2.5&quot;/&gt;
					&lt;SkewTransform/&gt;
					&lt;RotateTransform/&gt;
					&lt;TranslateTransform/&gt;
				&lt;/TransformGroup&gt;
			&lt;/Rectangle.RenderTransform&gt;
		&lt;/Rectangle&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HuluSilverLight
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			InitializeComponent();
		}

		private void downloadProgressHandler(object sender, System.Windows.RoutedEventArgs e)
		{
			loadProgressBar.Width = mp.DownloadProgress * bar.ActualWidth;
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Progress Bar for your Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 12:32:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mediaelement]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[totalseconds]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=522</guid>
		<description><![CDATA[This is part 3 in our series of building a Hulu inspired video player. In this tutorial we will be building a progress bar.
We will take the design of our progress bar and set it&#8217;s width equal to the position of the video&#8217;s current position. To make this dynamic and without needing to write any [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 3 in our series of building a Hulu inspired video player. In this tutorial we will be building a progress bar.<span id="more-522"></span></p>
<p>We will take the design of our progress bar and set it&#8217;s width equal to the position of the video&#8217;s current position. To make this dynamic and without needing to write any code we will use the concept of Binding.<br />
<a href="http://paulyanez.com/interactive/index.php/2009/11/databinding-controls-in-silverlight-3/"><br />
You can view a video on Databinding here</a><br />
1- Place a rectangle on the stage<br />
2- Set the rectangle&#8217;s HorizontalAlignment to Left<br />
2- Set the rectangle&#8217;s color to white and its alpha to 20%<br />
3- Bind the width property of the rectangle to the Position.TotalSeconds of the mediaElement</p>
<p>In design view<br />
Select the rectangle<br />
Click the yellow box next to the width property.<br />
Select &#8216;Databinding&#8217;<br />
Select the &#8216;Element Property&#8217; tab<br />
In the &#8220;Scene Elements&#8217; list, select the mediaElement control<br />
In the properties list select &#8216;Position / TotalSeconds&#8217;</p>
<p>The end result in XAML is:  Width=&#8221;{Binding Position.TotalSeconds, ElementName=mp, Mode=OneWay}&#8221;</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/ProgressBar/progressbar.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:local=&quot;clr-namespace:HuluSilverLight&quot;
	x:Class=&quot;HuluSilverLight.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;276&quot; mc:Ignorable=&quot;d&quot;&gt;
	&lt;Grid x:Name=&quot;LayoutRoot&quot; Margin=&quot;0,0,0,201&quot;&gt;
		&lt;MediaElement x:Name=&quot;mp&quot; Margin=&quot;0,-42,0,-240&quot; Source=&quot;http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv&quot; /&gt;
		&lt;local:hulu_player Height=&quot;32&quot; Margin=&quot;0,0,0,-199&quot; VerticalAlignment=&quot;Bottom&quot;/&gt;
                &lt;Rectangle x:Name=&quot;progressBar&quot; Fill=&quot;#3EFFFFFF&quot; Height=&quot;30&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;46,0,0,-198&quot; VerticalAlignment=&quot;Bottom&quot; RenderTransformOrigin=&quot;0,0.5&quot; Width=&quot;{Binding Position.TotalSeconds, ElementName=mp, Mode=OneWay}&quot;&gt;
			&lt;Rectangle.RenderTransform&gt;
				&lt;TransformGroup&gt;
					&lt;ScaleTransform ScaleX=&quot;2.5&quot;/&gt;
					&lt;SkewTransform/&gt;
					&lt;RotateTransform/&gt;
					&lt;TranslateTransform/&gt;
				&lt;/TransformGroup&gt;
			&lt;/Rectangle.RenderTransform&gt;
		&lt;/Rectangle&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HuluSilverLight
{
	public partial class hulu_player : UserControl
	{
		public hulu_player()
		{
			InitializeComponent();
		}

		private void pauseVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Pause();
		}

		private void playVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Play();
		}

	}
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Loading external video into your Hulu inspired Silverlight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 12:47:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mediaelement]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=515</guid>
		<description><![CDATA[This is part 2 in our series of building a Hulu inspired video player. This tutorial may well be the most important in the process of building a Silverlight video player.
In our previous example &#8220;Building a Play-Pause control for a Hulu inspired SilverLight video player&#8221; the video was included within the Silverlight file. This caused [...]]]></description>
			<content:encoded><![CDATA[<p>This is part 2 in our series of building a Hulu inspired video player. This tutorial may well be the most important in the process of building a Silverlight video player.<span id="more-515"></span></p>
<p>In our previous example <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">&#8220;Building a Play-Pause control for a Hulu inspired SilverLight video player&#8221;</a> the video was included within the Silverlight file. This caused a very bad user experience because the user had to wait to load the entire video before the file was shown.</p>
<p>By setting the video source to be remote, the Silverlight file is now 14k as compared to 6,700k. Now, the Silverlight file which simply contains a MediaElement is loaded almost instantaneously and the video plays as it loads.</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<p><font face="Georgia" color="#000000" size="4">You can play and pause the video</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/LoadExternalVideo/externalvideo.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:local=&quot;clr-namespace:HuluSilverLight&quot;
	x:Class=&quot;HuluSilverLight.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;276&quot; mc:Ignorable=&quot;d&quot;&gt;
	&lt;Grid x:Name=&quot;LayoutRoot&quot; Margin=&quot;0,0,0,201&quot;&gt;
		&lt;MediaElement x:Name=&quot;mp&quot; Margin=&quot;0,-42,0,-240&quot; Source=&quot;http://www.paulyanez.com/interactive/blog/HD/darkknight.wmv&quot; /&gt;
		&lt;local:hulu_player Height=&quot;32&quot; Margin=&quot;0,0,0,-199&quot; VerticalAlignment=&quot;Bottom&quot;/&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HuluSilverLight
{
	public partial class hulu_player : UserControl
	{
		public hulu_player()
		{
			InitializeComponent();
		}

		private void pauseVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Pause();
		}

		private void playVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Play();
		}

	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Play-Pause control for a Hulu inspired SilverLight video player</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 05:26:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[hulu]]></category>
		<category><![CDATA[mediaelement]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[togglebutton]]></category>
		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=491</guid>
		<description><![CDATA[The following example is the Part 1 in a series of tutorials demonstrating how to build a Hulu inspired video player in Silverlight 3. This tutorial shows how to create a play-pause button control utilizing the ToggleButton control.  
1- Place a ToggleButton on the stage
2- Right click and select &#8220;Edit Template / Edit a [...]]]></description>
			<content:encoded><![CDATA[<p>The following example is the Part 1 in a series of tutorials demonstrating how to build a Hulu inspired video player in Silverlight 3. This tutorial shows how to create a play-pause button control utilizing the ToggleButton control.  <span id="more-491"></span></p>
<p>1- Place a ToggleButton on the stage<br />
2- Right click and select &#8220;Edit Template / Edit a copy&#8221;<br />
3- Name your control<br />
4- Delete everything in the component &#8211; FocusVisualElement, DisabledVisualElement, contentPresenter and the Background. Do not delete the top level Grid.<br />
5- In the states panel add designs for the Normal, MouseOver and Pressed states.<br />
6- Add the Pause icon to the Unchecked CheckStates and the Play icon to the Checked CheckState.<br />
7- Add a MediaElement control and set it&#8217;s source.<br />
8- On your custom control add the code to pause and play the video on the Checked and UnChecked events.</p>
<p>View all parts of the tutorial<br />
Part 1 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/">Building a Play-Pause control</a><br />
Part 2 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/loading-external-video-into-your-hulu-inspired-silverlight-video-player/">Loading external video</a><br />
Part 3 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Progress Bar</a><br />
Part 4 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/11/building-a-download-progress-bar-for-your-hulu-inspired-silverlight-video-player/">Building a Download Progress Bar</a><br />
Part 5 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-control-for-your-hulu-inspired-silverlight-video-player/">Building a Volume Control</a><br />
Part 6 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-the-time-display-for-your-hulu-inspired-silverlight-video-player/">Building the Time Display</a><br />
Part 7 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-volume-slider-for-your-hulu-inspired-silverlight-video-player/">Volume Slider control</a><br />
Part 8 &#8211; <a href="http://paulyanez.com/interactive/index.php/2009/12/building-a-start-playing-button-for-your-hulu-inspired-silverlight-video-player/">Start playing button</a></p>
<p><font face="Georgia" color="#000000" size="4">You can play and pause the video</font></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="276"><param name="source" value="http://www.paulyanez.com/interactive/blog/PlayPause/play-pause.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:local=&quot;clr-namespace:HuluSilverLight&quot;
	x:Class=&quot;HuluSilverLight.MainPage&quot;
	Width=&quot;640&quot; Height=&quot;276&quot; mc:Ignorable=&quot;d&quot;&gt;
	&lt;Grid x:Name=&quot;LayoutRoot&quot; Margin=&quot;0,0,0,201&quot;&gt;
		&lt;MediaElement x:Name=&quot;mp&quot; Margin=&quot;0,-42,0,-240&quot; Source=&quot;IronMan.wmv&quot; /&gt;
		&lt;local:hulu_player Height=&quot;32&quot; Margin=&quot;0,0,0,-199&quot; VerticalAlignment=&quot;Bottom&quot;/&gt;
	&lt;/Grid&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace HuluSilverLight
{
	public partial class hulu_player : UserControl
	{
		public hulu_player()
		{
			InitializeComponent();
		}

		private void pauseVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Pause();
		}

		private void playVideo(object sender, System.Windows.RoutedEventArgs e)
		{
			(Application.Current.RootVisual as MainPage).mp.Play();
		}

	}
}
</pre>
<p><script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/building-a-play-pause-control-for-a-hulu-inspired-silverlight-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically creating thumbnails with WriteableBitmap and DispatcherTimer in Silverlight 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/dynamically-creating-thumbnails-of-video-frames-with-writeablebitmap-in-silverlight-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/dynamically-creating-thumbnails-of-video-frames-with-writeablebitmap-in-silverlight-3/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 20:43:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dispatchertimer]]></category>
		<category><![CDATA[mediaelement]]></category>
		<category><![CDATA[mediaended]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[timer]]></category>
		<category><![CDATA[writeablebitmap]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=479</guid>
		<description><![CDATA[In the previous example &#8220;Creating thumbnails of video frames with WriteableBitmap in Microsoft Expression Blend 3&#8243; the user was able to create thumbnails by clicking on the video display.
The following example shows how thumbnails could be dynamically created by using DispatcherTimer thereby eliminating the need to click. 
To stop the timer from firing, I simply [...]]]></description>
			<content:encoded><![CDATA[<p>In the previous example <a href="http://paulyanez.com/interactive/index.php/2009/11/creating-thumbnails-of-video-frames-with-writeablebitmap-in-microsoft-expression-blend/">&#8220;Creating thumbnails of video frames with WriteableBitmap in Microsoft Expression Blend 3&#8243;</a> the user was able to create thumbnails by clicking on the video display.</p>
<p>The following example shows how thumbnails could be dynamically created by using DispatcherTimer thereby eliminating the need to click. <span id="more-479"></span></p>
<p>To stop the timer from firing, I simply hooked into the MediaElement mediaEnded event. </p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="600" height="600"><param name="source" value="http://www.paulyanez.com/interactive/blog/Timer/ImageSnapshotTimer.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
	x:Class=&quot;ImageSnapshot.MainPage&quot;
	Width=&quot;605&quot; Height=&quot;610&quot; mc:Ignorable=&quot;d&quot; Background=&quot;Black&quot;&gt;

	&lt;StackPanel  Orientation=&quot;Vertical&quot; HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;10&quot;&gt;
		&lt;MediaElement x:Name=&quot;myMediaElement&quot; Source=&quot;/Movie.wmv&quot; Height=&quot;416&quot; d:LayoutOverrides=&quot;HorizontalMargin&quot; Cursor=&quot;Hand&quot; MediaEnded=&quot;stopTimer&quot;/&gt;
		&lt;ScrollViewer x:Name=&quot;scroller&quot; HorizontalScrollBarVisibility=&quot;Auto&quot; VerticalScrollBarVisibility=&quot;Hidden&quot; Height=&quot;160&quot; BorderBrush=&quot;{x:Null}&quot; Margin=&quot;8,0&quot;&gt;
			&lt;StackPanel x:Name=&quot;thumbs&quot; Orientation=&quot;Horizontal&quot; Margin=&quot;0,5,0,10&quot;  /&gt;
		&lt;/ScrollViewer&gt;
	&lt;/StackPanel&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace ImageSnapshot
{
	public partial class MainPage : UserControl
	{
		System.Windows.Threading.DispatcherTimer myDispatcherTimer = new System.Windows.Threading.DispatcherTimer();

		public MainPage()
		{
			InitializeComponent();

            myDispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            myDispatcherTimer.Tick += new EventHandler(takeSnapShot);
            myDispatcherTimer.Start();
		}
		private void takeSnapShot(object o, EventArgs sender)
		{
			WriteableBitmap snapShot = new WriteableBitmap(myMediaElement, null);

			Image image = new Image();
			image.Height = 89;
			image.Margin = new Thickness(10);
			image.Source = snapShot;

			thumbs.Children.Add(image);
			scroller.UpdateLayout();
			double scrollPos = thumbs.ActualWidth;
			scroller.ScrollToHorizontalOffset(scrollPos);
		}

		private void stopTimer(object sender, System.Windows.RoutedEventArgs e)
		{
			myDispatcherTimer.Stop();
		}
	}
}
</pre>
<p> <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/dynamically-creating-thumbnails-of-video-frames-with-writeablebitmap-in-silverlight-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating thumbnails of video frames with WriteableBitmap in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/creating-thumbnails-of-video-frames-with-writeablebitmap-in-microsoft-expression-blend/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/creating-thumbnails-of-video-frames-with-writeablebitmap-in-microsoft-expression-blend/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 08:03:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[writeablebitmap]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=441</guid>
		<description><![CDATA[Click on video to create thumbnails
The following example shows how to create thumbnails by using the WriteableBitmap class. 


        
 			  
		  
	    

XAML code


&#60;UserControl
	xmlns=&#34;http://schemas.microsoft.com/winfx/2006/xaml/presentation&#34;
	xmlns:x=&#34;http://schemas.microsoft.com/winfx/2006/xaml&#34;
	xmlns:d=&#34;http://schemas.microsoft.com/expression/blend/2008&#34; xmlns:mc=&#34;http://schemas.openxmlformats.org/markup-compatibility/2006&#34;
	x:Class=&#34;ImageSnapshot.MainPage&#34;
	Width=&#34;605&#34; Height=&#34;610&#34; mc:Ignorable=&#34;d&#34; Background=&#34;Black&#34;&#62;

	&#60;StackPanel  Orientation=&#34;Vertical&#34; HorizontalAlignment=&#34;Stretch&#34; Margin=&#34;10&#34;&#62;
		&#60;MediaElement x:Name=&#34;myMediaElement&#34; Source=&#34;/Movie.wmv&#34; MouseLeftButtonDown=&#34;takeSnapShot&#34; Height=&#34;416&#34; d:LayoutOverrides=&#34;HorizontalMargin&#34; Cursor=&#34;Hand&#34;/&#62;
		&#60;ScrollViewer x:Name=&#34;scroller&#34; HorizontalScrollBarVisibility=&#34;Auto&#34; VerticalScrollBarVisibility=&#34;Hidden&#34; Height=&#34;160&#34; [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Georgia" color="#000000" size="4">Click on video to create thumbnails</font><br />
The following example shows how to create thumbnails by using the WriteableBitmap class. <span id="more-441"></span></p>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="600" height="600"><param name="source" value="http://www.paulyanez.com/interactive/blog/WriteAbleBitmap/ImageSnapshot.xap"/><param name="onError" value="onSilverlightError" /><param name="background" value="white" /><param name="minRuntimeVersion" value="3.0.40624.0" /><param name="autoUpgrade" value="true" /><a href="http://go.microsoft.com/fwlink/?LinkID=149156&#038;v=3.0.40624.0" style="text-decoration:none"><br />
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/></p>
<p>		  </a><br />
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</p></form>
<p><font face="Georgia" color="#000000" size="4">XAML code</font></p>
<pre class="brush: xml;">

&lt;UserControl
	xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
	xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
	xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
	x:Class=&quot;ImageSnapshot.MainPage&quot;
	Width=&quot;605&quot; Height=&quot;610&quot; mc:Ignorable=&quot;d&quot; Background=&quot;Black&quot;&gt;

	&lt;StackPanel  Orientation=&quot;Vertical&quot; HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;10&quot;&gt;
		&lt;MediaElement x:Name=&quot;myMediaElement&quot; Source=&quot;/Movie.wmv&quot; MouseLeftButtonDown=&quot;takeSnapShot&quot; Height=&quot;416&quot; d:LayoutOverrides=&quot;HorizontalMargin&quot; Cursor=&quot;Hand&quot;/&gt;
		&lt;ScrollViewer x:Name=&quot;scroller&quot; HorizontalScrollBarVisibility=&quot;Auto&quot; VerticalScrollBarVisibility=&quot;Hidden&quot; Height=&quot;160&quot; BorderBrush=&quot;{x:Null}&quot; Margin=&quot;8,0&quot;&gt;
			&lt;StackPanel x:Name=&quot;thumbs&quot; Orientation=&quot;Horizontal&quot; Margin=&quot;0,5,0,10&quot;  /&gt;
		&lt;/ScrollViewer&gt;
	&lt;/StackPanel&gt;
&lt;/UserControl&gt;
</pre>
<p><font face="Georgia" color="#000000" size="4">C# code</font></p>
<pre class="brush: cpp;">

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace ImageSnapshot
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			InitializeComponent();
		}

		private void takeSnapShot(object sender, MouseButtonEventArgs e)
		{
			WriteableBitmap snapShot = new WriteableBitmap(myMediaElement, null);

			Image image = new Image();
			image.Height = 89;
			image.Margin = new Thickness(10);
			image.Source = snapShot;

			thumbs.Children.Add(image);
			scroller.UpdateLayout();
			double scrollPos = thumbs.ActualWidth;
			scroller.ScrollToHorizontalOffset(scrollPos);
		}
	}
}
</pre>
<p> <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null &#038;&#038; sender != 0) {
              appSource = sender.getHost().Source;
            }</p>
<p>            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;</p>
<p>            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }</p>
<p>            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;</p>
<p>            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";</p>
<p>            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }</p>
<p>            throw new Error(errMsg);
        }
    </script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/creating-thumbnails-of-video-frames-with-writeablebitmap-in-microsoft-expression-blend/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Introduction to Animation in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/introduction-to-animation-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/introduction-to-animation-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:07:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[keyframes]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[storyboard]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=360</guid>
		<description><![CDATA[
In this video I discuss a few keys topics of animation in Microsoft Expression Blend 3. Topics include storyboards, creating keyframes, setting transforms on objects and previewing within the Blend IDE.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/GFIcrV8KI-c&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/GFIcrV8KI-c?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
In this video I discuss a few keys topics of animation in Microsoft Expression Blend 3. Topics include storyboards, creating keyframes, setting transforms on objects and previewing within the Blend IDE.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/introduction-to-animation-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Importing graphics from Adobe Illustrator into Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/importing-graphics-from-adobe-illustrator-into-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/importing-graphics-from-adobe-illustrator-into-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 23:11:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[importing]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=347</guid>
		<description><![CDATA[
In this video I show how to import vector graphics from Adobe Illustrator and load it into a user control in Blend 3.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/OJyeFc-UPw8&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/OJyeFc-UPw8?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
In this video I show how to import vector graphics from Adobe Illustrator and load it into a user control in Blend 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/importing-graphics-from-adobe-illustrator-into-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing a custom hit area in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-hit-area-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-hit-area-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 05:24:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[hit area]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=324</guid>
		<description><![CDATA[
In the following video I show how to implement a custom hit area in Microsoft Expression Blend 3.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/KDhpTnEJmtI&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/KDhpTnEJmtI?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
In the following video I show how to implement a custom hit area in Microsoft Expression Blend 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-hit-area-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing a custom cursor in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-cursor-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-cursor-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 12:13:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[custom cursor]]></category>
		<category><![CDATA[hand cursor]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=315</guid>
		<description><![CDATA[
In The following video I show how to implement a custom mouse cursor in Microsoft Expression Blend 3.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/isOxlLiDuQw&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/isOxlLiDuQw?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
In The following video I show how to implement a custom mouse cursor in Microsoft Expression Blend 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-cursor-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring the Gradient tool in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-gradient-tool-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-gradient-tool-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 00:53:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=312</guid>
		<description><![CDATA[
The following video shows how to work with the gradient tool in MIcrosoft Expression Blend 3. The video goes in depth of gradient stops, reversing gradients, and the xaml output.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/zNgjrgt_gRY&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/zNgjrgt_gRY?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
The following video shows how to work with the gradient tool in MIcrosoft Expression Blend 3. The video goes in depth of gradient stops, reversing gradients, and the xaml output.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-gradient-tool-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exploring the Canvas control in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-canvas-control-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-canvas-control-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 08:42:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=309</guid>
		<description><![CDATA[
This video will show you how to use the canvas control in Microsoft Expression Blend 3. The canvas control allows for absolute positioning and the ability to stack objects on top of each other. This control is the designers best friend when creating interfaces in Blend 3.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/O2RWfCVQnCY&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/O2RWfCVQnCY?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This video will show you how to use the canvas control in Microsoft Expression Blend 3. The canvas control allows for absolute positioning and the ability to stack objects on top of each other. This control is the designers best friend when creating interfaces in Blend 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-canvas-control-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Creating a Silverlight video player in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-video-player-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-video-player-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 03:20:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=306</guid>
		<description><![CDATA[
This video will show you how to add a video player in Microsoft Expression Blend 3. Adding video to Silverlight projects ia as simple as placing a media element control from the assets panel on the stage and setting the media element&#8217;s source to a video file.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3_TQtrG44lE&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/3_TQtrG44lE?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This video will show you how to add a video player in Microsoft Expression Blend 3. Adding video to Silverlight projects ia as simple as placing a media element control from the assets panel on the stage and setting the media element&#8217;s source to a video file.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-video-player-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exploring the Objects panel in Microsoft Expression Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-objects-panel-in-microsoft-expression-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-objects-panel-in-microsoft-expression-blend-3/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 07:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[object panel]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[wpf]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=282</guid>
		<description><![CDATA[
This video will show you a few tips on the object panel in Expression Blend 3. 
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/hBULfhIvVHY&#038;hl&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/hBULfhIvVHY&#038;hl?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This video will show you a few tips on the object panel in Expression Blend 3. </p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/exploring-the-objects-panel-in-microsoft-expression-blend-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Silverlight button with Microsoft Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-button-with-microsoft-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-button-with-microsoft-blend-3/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:39:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[gradient]]></category>
		<category><![CDATA[mouseover]]></category>
		<category><![CDATA[pressed]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[transitions]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=275</guid>
		<description><![CDATA[
This video tutorial will show how to create a custom button, modify its normal, mouse over and pressed states. Also add animation effects between those states. 
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Z8dhIs_OxdI&#038;hl&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/Z8dhIs_OxdI&#038;hl?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This video tutorial will show how to create a custom button, modify its normal, mouse over and pressed states. Also add animation effects between those states. <br/></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-button-with-microsoft-blend-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Resource Dictionary with Microsoft Blend 3</title>
		<link>http://paulyanez.com/interactive/index.php/2009/10/creating-a-resource-dictionary-with-microsoft-blend-3/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/10/creating-a-resource-dictionary-with-microsoft-blend-3/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 23:49:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Video Tutorials]]></category>
		<category><![CDATA[blend 3]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[resource dictionary]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[styles]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=259</guid>
		<description><![CDATA[
This video tutorial will show how to create a resource dictionary for your Microsoft Expression 3 projects. In this video you will see how a gradient could be externalized into the resource dictionary and be used by other objects in your project.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="645" height="390" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/OT1e04Gs2FE&#038;hl&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1&amp;autoplay=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="645" height="390" src="http://www.youtube.com/v/OT1e04Gs2FE&#038;hl?autoplay=0&amp;hl=en&amp;fs=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br/><br />
This video tutorial will show how to create a resource dictionary for your Microsoft Expression 3 projects. In this video you will see how a gradient could be externalized into the resource dictionary and be used by other objects in your project.<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/10/creating-a-resource-dictionary-with-microsoft-blend-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

