Can unity for silverlight be Configured in the XAML?

Topics: Silverlight Integration Pack
Sep 16, 2011 at 4:23 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 2:52 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