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

<channel>
	<title>Silverlight &#124; WPF &#124; Microsoft.Net &#187; SetTargetProperty</title>
	<atom:link href="http://joel.neubeck.net/tag/settargetproperty/feed/" rel="self" type="application/rss+xml" />
	<link>http://joel.neubeck.net</link>
	<description>Simplifing structure without changing results</description>
	<lastBuildDate>Wed, 26 May 2010 18:43:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Updating samples to Silverlight 2 Beta 2</title>
		<link>http://joel.neubeck.net/2008/06/updating-samples-to-silverlight-2-beta-2/</link>
		<comments>http://joel.neubeck.net/2008/06/updating-samples-to-silverlight-2-beta-2/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 06:27:24 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[SetTargetProperty]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://joel.neubeck.net/?p=151</guid>
		<description><![CDATA[It took a bit of time, but I got most of my recent samples updated to the latest bits. In most cases it required opening the solution and allowing VS2008 to fix a few things automatically, than a recompile to generate an updated .xap file. Issue #1 All of my samples are loaded into a [...]]]></description>
			<content:encoded><![CDATA[<p>It took a bit of time, but I got most of my recent samples updated to the latest bits.  In most cases it required opening the solution and allowing VS2008 to fix a few things automatically, than a recompile to generate an updated .xap file.</p>
<h2>Issue #1</h2>
<p>All of my samples are loaded into a page via an IFRAME and a static html page.  As a result, I had to change the following to target the new mime type.</p>
<p><a href="http://joel.neubeck.net/wp-content/uploads/2008/06/default_b2_change1.png"><img class="aligncenter size-full wp-image-153" title="default_b2_change1" src="http://joel.neubeck.net/wp-content/uploads/2008/06/default_b2_change1.png" alt="" width="500" height="66" /></a></p>
<h2>Issue #2</h2>
<p>Another place that a few of my samples imploded was situations where I was building up a Storyboard procedurally, and targeting a specific dependency property.  Beta 2 now uses a custom object called &#8220;PropertyPath&#8221;<br />
<strong>Beta 1</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c-sharp" style="font-family:monospace;">Storyboard.SetTargetProperty(daX, &quot;(ScaleX)&quot;);</pre></div></div>

<p><strong>Beta 2</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c-sharp" style="font-family:monospace;">Storyboard.SetTargetProperty(daX, new PropertyPath(&quot;(ScaleX)&quot;));</pre></div></div>

<h2>Issue #3</h2>
<p>A third place that caused an issue was the setting of a value for a Dependency Property.  In Beta 1 I was forced to convert the value to a string regardless of the properties data type.  Beta 2 now enforces strong data typing at execution time (Compiling had no issue since &#8220;SetValue&#8221; takes an object)</p>
<p><strong>Beta 1</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c-sharp" style="font-family:monospace;">tile.SetValue(Grid.ColumnProperty, col.ToString());</pre></div></div>

<p><strong>Beta 2</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c-sharp" style="font-family:monospace;">tile.SetValue(Grid.ColumnProperty, col);</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://joel.neubeck.net/2008/06/updating-samples-to-silverlight-2-beta-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
