Some Silverlight Unity questions

Feb 15, 2010 at 5:52 PM

Hi all,

I am trying to gain a better understanding of how to best use Unity with Silverlight.  Also I am new to both DI and Unity so please humor me if the answer(s) seem painfully obvious to you.

First and foremost are there any other Silverlight - Unity examples besides the Stoplight example?

Using the MVVM (a variation of the MVP) pattern, I can see how one might easily inject the Model and the Presentation or ViewModel but that injecting the View is not going to happen mainly because the view in a WPF/XAML world will always contain XAML and is not your typical concrete object.  Is this a correct statement?

It is also my understanding that Silverlight Unity does not provide any XML based configuration, is this true?  If so how does one inject anything without having to hard code it into the code?  Can you use program logic at runtime to load objects based on variable information coming into the code?

Thanks in Advance,