Latest post: Fri 1:23 PM 1 post Can unity for silverlight be Configured in the XAML?

Sep 16, 2011 at 5:29 AM

Hi,I had a Problem.

Can Unity be Configured in a XAML config file in Silverlight just like in the desktop version's XXX.config?

like this:

      <extension type="Interception"/>
      <register type="ICalculator" mapTo="Calculator">
        <interceptor type="InterfaceInterceptor"/>
        <interceptionBehavior type="BinaryBehavior"/>
      <register type="BinaryBehavior">

Now , I had to do this in the code

like this:

container = new UnityContainer();
                new Interceptor<VirtualMethodInterceptor>(),
                new InterceptionBehavior<PolicyInjectionBehavior>());
Sep 17, 2011 at 11:32 AM

Hi Songlei,

This functionality is not currently supported as what Chris Tavares mentioned on this link. However, there is a project on Codeplex similar to that. Take a look on


Noel Angelo Bolasoc
Avanade Software
Avanade, Inc.
Contact Us

Sep 20, 2011 at 1:16 AM

OK, Thanks a lot.