Vista, Visual Studio and DEP

I’m done. Here is how to disable DEP

  1. Right Click on Command Prompt
  2. Click on Run as Administrator
  3. Click the Allow button if it asks you for permission
    bcdedit.exe /set {current} nx AlwaysOff
  4. Enter and: Operation Completed Successfully
  5. Reboot

Related posts:

  1. Visual Studio 2008, F2, Rename
  2. Visual Studio “The path is not of a legal form” bug Fixed (for me)
  3. Visual Studio, Wizards, Project Templates and Unsigned DLLS

read more

Silverlight, Actions and Prism

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:

<Image Height="40" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="40" Source="/SilverlightDemo.MainToolbar;Component/Images/i_chart.png" Stretch="Fill" Canvas.Left="222" Canvas.Top="55">                <i:Interaction.Triggers>                        <i:EventTrigger EventName="MouseLeftButtonDown">                                <Actions:ToggleCollapseAction

                            TargetName="HERE:/SilverlightDemo.Modules.TargetModule;Views/TargetModuleView"                             CollapseHorizontal="False"                             CollapseVertical="False"/>                        </i:EventTrigger>                </i:Interaction.Triggers>            </Image>

Related posts:

  1. ESRI Silverlight Map vs. Prism Regions
  2. Thoughts on Silverlight
  3. AutoMapper.Silverlight

read more

ESRI Silverlight Map vs. Prism Regions

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"

Related posts:

  1. Silverlight, Actions and Prism
  2. Thoughts on Silverlight
  3. AutoMapper.Silverlight

read more

Geometry data type support

LINQ to SQL and Entity Framework don’t support the geometry data type…

boo…

No related posts.

read more