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 similar to the ASP.NET MasterPage/Content area approach.

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.

  1. Live in a module (a module is a separate project)
  2. Take up 100% of the height and width of the shell. – Its a prism term – long post and screencasts coming soon.

I could make the map do 1 or 2 but not 1 and 2…that is until I got some help from @sharpgis

http://forums.esri.com/Thread.asp?c=158&f=2455&t=290394&mc=4

So, the key is to use

 HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 eric.polerecky.com Suffusion theme by Sayontan Sinha