views:

756

answers:

2

I normally use StructureMap.dll (from MvcContrib) for dependency injection in .NET.

Is there an equivalent for Silverlight, or any tools anyone uses? I can do it by hand, obviously, and it's not difficult. But I wondered if there was something formalised like StructureMap but for Silverlight.

+2  A: 

Ninject does. Some resources:

http://jonas.follesoe.no/YouCardRevisitedImplementingDependencyInjectionInSilverlight.aspx

Tim Heuer
Thanks I'll look into that
joshcomley
After looking into Ninject, it looks like exactly what I'm after so thanks again
joshcomley
A: 

AutoFAC does as well (and is faster than NInject according to benchmarks I've seen).

http://code.google.com/p/autofac/downloads/list

Adam Greene