<?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/tag/silverlight/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>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 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>Microsoft blows past Flash and unleashes Silverlight 4 Beta</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/microsoft-blows-past-flash-and-unleashes-silverlight-4-beta/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/microsoft-blows-past-flash-and-unleashes-silverlight-4-beta/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 23:50:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=604</guid>
		<description><![CDATA[For the past 2 weeks I have been saying Adobe Flash is done because of Silverlight 3 part1 and part 2. Now, Microsoft releases the beta of Silverlight 4 and I can honestly say that Adobe Flash should get out of the RIA arena entirely. Is this a stretch?, why did anyone think an animation [...]]]></description>
			<content:encoded><![CDATA[<p>For the past 2 weeks I have been saying Adobe Flash is done because of Silverlight 3 <a href="http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/">part1</a> and <a href="http://paulyanez.com/interactive/index.php/2009/11/the-end-of-adobe-flash-part-2/">part 2</a>. Now, Microsoft releases the beta of Silverlight 4 and I can honestly say that Adobe Flash should get out of the RIA arena entirely. <span id="more-604"></span>Is this a stretch?, why did anyone think an animation product could compete in the RIA space in the first place? </p>
<p>The manner in which Microsoft released the beta of Silverlight 4 at the Professional Developer Conference on Nov 18th shows me one thing, Microsoft is not only very serious about being the leader in the RIA arena but they are looking to crush the competition, namely Adobe Flash.</p>
<p>First, the speed in which this beta was announced, just 3 months after the release of Silverlight 3. The release of Silverlight 3 was huge, but this beta just completely blows it away. The demos presented at the PDC conference by Scott Guthrie were simply great and just sent the developers into a frenzy.</p>
<p>Secondly, the new features in Silverlight 4 are simply unbelievable. The new features include:<br />
<strong>Webcam and microphone support<br />
Printing<br />
Library sharing with WPF<br />
Rich Text<br />
Clipboard access<br />
Right click support<br />
Mouse wheel<br />
Drag and Drop from desktop<br />
MVVM<br />
WCF RIA Services<br />
New Windowing API&#8217;s<br />
Notification pop-up support<br />
HTML support<br />
Keyboard in Fullscreen mode<br />
Hardware device access</strong></p>
<p>The planned release of Silverlight 4 is in the first half of 2010.</p>
<p>I love how folks are not agreeing with me on the end of Adobe Flash and sending me emails, the bottom line is that I see this as the modern day &#8220;Browser wars&#8221; when Microsoft went all out against Netscape and crushed them. I see Microsoft doing the same in the RIA space and Microsoft is going all out to win. Microsoft doing a release like this in 3 months, I ask myself how many resources were ported over from other products to this release?</p>
<p>Developers can start building apps but the player is not pubicly available<br />
<a href="http://silverlight.net/getstarted/silverlight-4-beta/">Silverlight 4 Beta Information &#8211; Get all your downloads here</a><br />
<a href="http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx">Silverlight 4 Beta – A guide to the new features</a><br />
<a href="http://silverlight.dlservice.microsoft.com/download/F/6/5/F653F7FD-AD4D-411D-8B1F-9C4B1BD69881/Silverlight_Developer.exe">Silverlight 4 runtime</a></p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/microsoft-blows-past-flash-and-unleashes-silverlight-4-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The End of Adobe Flash &#8211; Part 2</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/the-end-of-adobe-flash-part-2/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/the-end-of-adobe-flash-part-2/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 13:13:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[seesmic]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=582</guid>
		<description><![CDATA[This is an update to my article on &#8216;SilverLight will be the Adobe Flash killer&#8217;.  Tomorrow will be 2 weeks since I have written the article and two very big things have already occurred.
The first is that Adobe cut 9% percent of its workforce on Nov 10th, this is the second huge cut by [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update to my article on <a href="http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/">&#8216;SilverLight will be the Adobe Flash killer&#8217;</a>.  Tomorrow will be 2 weeks since I have written the article and two very big things have already occurred.<span id="more-582"></span></p>
<p>The first is that <a href="http://www.techcrunch.com/2009/11/10/layoffs-reported-at-adobe/">Adobe cut 9% percent of its workforce</a> on Nov 10th, this is the second huge cut by Adobe in the past year. In my opinion, Adobe is a Desktop publishing company and not a software devleopment company and when/if further cuts occur, they will happen on the Flash teams, not the Photoshop teams. </p>
<p>The second big thing to occur is the <a href="http://www.techcrunch.com/2009/11/17/seesmic-launches-native-twitter-client-for-windows/">yesterday&#8217;s article by Techcrunch</a> on was the announcement of a &#8216;Seesmic for Windows&#8217; client. The entire article seems like a huge jab/left hook at Adobe Air and it&#8217;s limitations and all the new capabilities Seesmic will have because of the switch to the Windows platform. </p>
<p>What you will see as a result of Seesmic moving to Windows is a constant reminder of the Windows platform due to the nature in which Loic delivers releases, which seems to be almost weekly.</p>
<p>In my <a href="http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/">original article</a> I basically stated that you could do the same exact things in Silverlight that you could do in Flash. I was hesistant to state that Silverlight was more powerful because I wanted to reach the flash community in a calm rational approach. </p>
<p>Seesmic coming out like this will be the first in many to come on the limitations the Flash/Adobe Air platform as compared to the Microsoft platform.</p>
<p>Two weeks ago I believed it would be 2 years before all the real applications/games on the web would be in Silverlight and Flash would be used for nothing more than creating banners. I think it will be sooner than that now.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/the-end-of-adobe-flash-part-2/feed/</wfw:commentRss>
		<slash:comments>2</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>SilverLight will be the Adobe Flash killer</title>
		<link>http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/</link>
		<comments>http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 02:03:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://paulyanez.com/interactive/?p=370</guid>
		<description><![CDATA[Prediction
I am making a very big prediction, it is the beginning of the end of Adobe Flash. When I first saw Flash 12 years ago I knew immediately that this was it, it was light years ahead of anything on the web. It is rare that you see something and know immediately that this is [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Georgia" color="#000000" size="4">Prediction</font><br />
I am making a very big prediction, it is the beginning of the end of Adobe Flash. When I first saw Flash 12 years ago I knew immediately that this was it, it was light years ahead of anything on the web. It is rare that you see something and know immediately that this is going to be big. In the years 1998, 99, 2000 the Flash community was awesome, it was like we were in the wild west just discovering new stuff. I really felt I was in on something and could not believe that other people could not see the same. </p>
<p><font face="Georgia" color="#000000" size="4">The Debate</font><br />
You may have seen numerous articles on the Flash vs Silverlight debate such as this <a href="http://www.bigspaceship.com/blog/labs/thoughts-on-silverlight/">one</a>. I believe that the articles being written and discussions that are taking place are simply asking the wrong questions.</p>
<p>The discussions should not be between the specific details of Flash and Silverlight. But it should be at a higher level, such as &#8220;How long will it take me to become a professional in Silverlight?&#8221;, by professional, I mean someone is compensated for their work. Just think of the possibilities that are opened up by learning this product, you basically open yourself up to a whole new industry. </p>
<p><font face="Georgia" color="#000000" size="4">Learning Curve</font><br />
So if I am right, the million dollar question is &#8211; How long is it going to take to learn this new software product?<br />
In my honest opinion if you are a Flash developer as soon as you start the program you will know about 60% of it right out of the box. Simply due to the similarities between Flash and Blend, practically the same tools, timeline, stage, properties, layout code etc. The following videos I have made are about 30 minutes in total length and will get you up to about 80%. Think about that, 80% knowledge of a new product and you have invested less than an hour. </p>
<p><font face="Georgia" color="#000000" size="2">Animation</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/introduction-to-animation-in-microsoft-expression-blend-3/">Introduction to Animation in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Integration with Adobe</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/importing-graphics-from-adobe-illustrator-into-microsoft-expression-blend-3/">Importing graphics from Adobe Illustrator into Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Customizing Cursors</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-cursor-in-microsoft-expression-blend-3/">Implementing a custom hit area in Microsoft Expression Blend 3  </a></p>
<p><font face="Georgia" color="#000000" size="2">Drawing</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/exploring-the-gradient-tool-in-microsoft-expression-blend-3/">Exploring the Gradient tool in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Layout</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/exploring-the-canvas-control-in-microsoft-expression-blend-3/">Exploring the Canvas control in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Video</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-video-player-in-microsoft-expression-blend-3/">Creating a Silverlight video player in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Layers</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/exploring-the-objects-panel-in-microsoft-expression-blend-3/">Exploring the Objects panel in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Creating Buttons</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/creating-a-silverlight-button-with-microsoft-blend-3/">Creating a Silverlight button with Microsoft Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Styles</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/creating-a-resource-dictionary-with-microsoft-blend-3/">Creating a Resource Dictionary with Microsoft Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="2">Hit Area</font><br />
<a href="http://paulyanez.com/interactive/index.php/2009/10/implementing-a-custom-hit-area-in-microsoft-expression-blend-3/">Implementing a custom hit area in Microsoft Expression Blend 3 </a></p>
<p><font face="Georgia" color="#000000" size="4">Money</font><br />
When all is said and done, it comes down to money. If a developer is as knowledgeable in Flash and SilverLight, the Silverlight developer will be compensated more, PERIOD. The flash job opportunities mostly come by way of the Advertising field and game development worlds and the projects built are measured in days.</p>
<p>The Silverlight opportunities will come by way of Engineering based companies. Engineering companies mostly work on projects that are measured in years.</p>
<p><font face="Georgia" color="#000000" size="4">The Bottom Line&#8230;</font><br />
For the last 10 plus years when asked what I do, I would proudly say &#8220;I am a flash developer that &#8230;.<br />
Moving forward my answer will be &#8220;I create user experiences and I use products a,b,c.</p>
<p>Try <a href="http://www.microsoft.com/expression/try-it/Default.aspx#PageTop">Silverlight</a> for 60 days for free. I feel like it&#8217;s 1998 all over again and can&#8217;t believe more people aren&#8217;t aware of this movement. I am going to do everything I can to push Silverlight in front of everyone whether they are developers, users or clients.</p>
<p>Either way we will be the winners from this, us the developers. Microsoft and Adobe will be forced to improve.</p>
]]></content:encoded>
			<wfw:commentRss>http://paulyanez.com/interactive/index.php/2009/11/silverlight-will-be-the-adobe-flash-killer/feed/</wfw:commentRss>
		<slash:comments>2</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>

